View Single Post
  #1  
Old 12-17-2009, 02:43 PM
ursi ursi is offline
Member
 
Join Date: Dec 2009
Posts: 11
Implement LabJack

Hi, I'm new in working with vizard and not that familiar with python yet.

What we want to do is to send an event trigger out of vizard (keydown event) to a data collection program so that we can synchronize our recordings with the event occurred in our virtual world.

As far as I know, using LabJack to send a voltage signal out would be the best solution and so to directly connect with the AD transducer.
May you help me implementing LabJack in our 'World' code?

What we want to do is to move the room relative to the global system on a keydwon event. So, for our data analysis we need know the exact time of this event relativ to our data recordings:

--------------------
def onkeydown(key):
if key == 't':
# ANIMATION PATH (to move the room itself)
...
...
vizact.ontimer(0.1,pathFWBWs.play)

# HERE WE WANT TO SEND OUT OUR TRIGGER EVENT TO LABJACK...

viz.callback(viz.KEYDOWN_EVENT,onkeydown)
--------------------

Thank's for your help!
Reply With Quote