Triggering 2 cameras | LabJack
 

Triggering 2 cameras

4 posts / 0 new
Last post
Reza
besharatreza's picture
Triggering 2 cameras

Hello,

 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? 

Thanks

LabJack Support
labjack support's picture
Can you reframe your question

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?

 

Reza
besharatreza's picture
Thanks for your fast response

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

LabJack Support
labjack support's picture
Here is the general idea, and

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.