View Single Post
  #8  
Old 01-20-2010, 04:40 PM
Jeff Jeff is offline
WorldViz Team Member
 
Join Date: Aug 2008
Posts: 2,471
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?
Code:
def checkTrigger():		
	trigg = d.eAnalogIn(0) # AI0
	print trigg['voltage']

vizact.ontimer(1, checkTrigger)
Reply With Quote