As of May 2, 2022 the LabJack forums have been set to read-only.
If you are in need of support, please contact us via one of the methods described on our contact page.
I want to trigger 2 Basler cameras using LabJack T7 for simultaneous image acquisition with a built-in script. Anyone could help me or link me to a relevant address, please?
Can you reframe your question in T7 terms? Basically, what do you mean by "trigger". Does trigger mean you want to make a positive pulse on a digital output ... that is set a DO high and then low?
What you mentioned 'positive pulse on a digital output' results in triggering and that's what I need. To be more precise, since I have 2 devices, means that I need 2 pulses with 15 Hz frequency at the same time (with the least delay). I don't want a computer to be involved, therefore I need to do it with a script but I don't know how.
Here is the general idea, and then we can provide more help if needed. Look at one of our example scripts that uses CheckInterval to execute some code at a periodic interval, and set it to run every 67 milliseconds to get you about 15 Hz. Then in that loop you write a couple registers to set a couple DO high and then write a couple registers to set those DO low. Actually, why not just use 1 DO and wire it to both your devices?
Have you considered using DIO-EF rather than a script? You can use the Register Matrix in Kipling to write the registers to enable a PWM output that pulses at 15 Hz, and then use the Power-Up Defaults tab to save your configuration.
Can you reframe your question in T7 terms? Basically, what do you mean by "trigger". Does trigger mean you want to make a positive pulse on a digital output ... that is set a DO high and then low?
Thanks for your fast response,
What you mentioned 'positive pulse on a digital output' results in triggering and that's what I need. To be more precise, since I have 2 devices, means that I need 2 pulses with 15 Hz frequency at the same time (with the least delay). I don't want a computer to be involved, therefore I need to do it with a script but I don't know how.
Thanks in advance
Here is the general idea, and then we can provide more help if needed. Look at one of our example scripts that uses CheckInterval to execute some code at a periodic interval, and set it to run every 67 milliseconds to get you about 15 Hz. Then in that loop you write a couple registers to set a couple DO high and then write a couple registers to set those DO low. Actually, why not just use 1 DO and wire it to both your devices?
Have you considered using DIO-EF rather than a script? You can use the Register Matrix in Kipling to write the registers to enable a PWM output that pulses at 15 Hz, and then use the Power-Up Defaults tab to save your configuration.