Sending triggers to PyCorder by means of LabJack
I'm wondering if anyone has tried to use a LabJack (U3 in our case) to send trigger codes to PyCorder?
The code that I have to crib off of provides no explanation of what it's doing, but essentially...
At the beginning, I have an inline script which imports & inits the labjack:
labjack = u3.U3()
That works fine, no errors thrown (I have try/excepts inserted that would tell me otherwise)
Later on, after presenting some stimuli, I have an in-line script which attempts to send the trigger:
trigger = var.cue_trigger_value
trigger = [trigger, 0, 0]
labjack.getFeedback(u3.PortStateWrite(State = trigger))
print "failed to send trigger"
Again, no errors thrown, and none of my debug statements print.
But, in PyCorder, where I would normally see a lablled tic for every trigger sent, nothing appears...
Anybody here with experience with this kind of setup that could point out what I'm missing here?
Thanks in advance,