I'm working with labjack T7 PRO and I'm fairly new to this. I have been setting and resetting the port pins(say port pin EIO1) using an external pause command (meaning a pause command in python in this case). However, that becomes tricky when I have an interrupt to set any other pin of labjack.
So I am looking for a pause() command in labjack module which can hold the pin high/low for some time and then I can toggle the state of the pin. Please let me know your inputs.
P.S. Also, I am looking if I can program labjack in an interrupt mode (which can see if there is an interrupt to set or reset any port pin).
Thanks in advance!
To watch for a trigger/interrupt signal, you could setup a counter on a DIO and poll DIO#_EF_READ_A_AND_RESET in a loop:
https://labjack.com/support/datasheets/t-series/digital-io/extended-feat...
To minimize latency, the best way to handle your delay would probably be in an embedded Lua script using our Lua interval functions to determine when to change the DIO state:
https://labjack.com/support/datasheets/t-series/scripting/labjack-librar...
If the timing does not need to be more precise than a millisecond or so you could use the Python threading library interval function:
https://docs.python.org/3/library/threading.html#timer-objects
You could also manually probe the LabJack core timer in a loop and change your DIO state after a certain number of ticks are observed (accounting for timer roll):
https://labjack.com/support/datasheets/t-series/hardware-overview