WorldViz User Forum  

Go Back   WorldViz User Forum > Search Forums

Showing results 1 to 4 of 4
Search took 0.00 seconds.
Search: Posts Made By: Jeff
Forum: Plug-in development 01-20-2010, 04:40 PM
Replies: 10
Views: 16,850
Posted By Jeff
What do you get if you try the following? This...

What do you get if you try the following? This should print out the voltage once a second. Do you notice any errors in Vizard's input/output window?
def checkTrigger():
trigg = d.eAnalogIn(0)...
Forum: Plug-in development 01-20-2010, 09:42 AM
Replies: 10
Views: 16,850
Posted By Jeff
Please use the code tags when you post code to...

Please use the code tags when you post code to preserve the indentation. This line
trigg = d.eAnalogIn(0) # AI0
should be inside your checkTrigger function if you want to be continuously checking...
Forum: Plug-in development 01-18-2010, 05:06 PM
Replies: 10
Views: 16,850
Posted By Jeff
The line of code vizact.onupdate(0,...

The line of code
vizact.onupdate(0, checkTrigger)

already registers the checkTrigger function and that will be called every frame. Have you tried running that on it's own without the code you...
Forum: Plug-in development 01-15-2010, 03:11 PM
Replies: 10
Views: 16,850
Posted By Jeff
You could use vizact.onupdate to check every...

You could use vizact.onupdate to check every frame if the trigger has occurred and then either do something there or call another function

def checkTrigger():

trigg = d.eAnalogIn(0)
if...
Showing results 1 to 4 of 4

 
Forum Jump

All times are GMT -7. The time now is 01:07 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC