![]() |
|
#1
|
|||
|
|||
The problem still remains...
Code:
def ExtTrigg(): print 'trigger > 2.0' ###+++++++++++++++++++++++++++ def checkTrigger(): trigg = d.eAnalogIn(0) # AI0 if trigg > 2.0: ExtTrigg() vizact.onupdate(0, checkTrigger) Why does it not work to feed in a voltage? |
#2
|
|||
|
|||
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) |
![]() |
Thread Tools | |
Display Modes | Rate This Thread |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Implement LabJack | ursi | Vizard | 4 | 01-07-2010 03:14 PM |
Updating viewpoint via external computer | Rachel | Vizard | 1 | 02-04-2008 06:23 PM |
labjack plugin | Jerry | Vizard | 1 | 03-14-2007 04:36 PM |
collision events trigger | Eunice | Vizard | 1 | 01-03-2006 10:39 AM |
A hotspot id of -1 will never trigger. | jrodman | Vizard | 1 | 01-27-2004 03:22 PM |