06-19-2017 01:29 AM - edited 06-19-2017 01:40 AM
I need to generate a single pulse on two channels with precise timing to trigger lab equipment. Please see image below. I haven't found any examples with multiple channel pulse generation.
Hardware:
We are currently using a myDAQ. We also have a NI-9401 digital IO module but supervisor would prefer to use myDAQ if possible.
Work so far:
(Please see LabVIEW attached)
I've tried writing a LabVIEW program using two "ctr" (so it wouldn't run on myDAQ). Channel 2 triggers off channel 1. One issue already is that initalDelay2 must be greater than initialDelay1. I haven't been able to test it but I do have an error with simulated hardware (ERROR: "Lines 0 through 3 of this port are configured for input. Cannot configure these lines for output at this time.")
Questions:
1. Can myDAQ be used? Or do we need multiple "ctr" (e.g. NI-9401)?
2. Am I on the right track? (considering adding analog input and other control later)
Thanks!
06-20-2017 11:01 AM
myDAQ has just one CTR , therefore the 9401 will be needed. On the other side, I see that your code follows a correct structure, I dont think adding another analog input would generate any issue.
07-06-2017 05:31 PM
How precise should it be?
You can generate 2 synced pulses, using 2 hardware timed analog outputs. Your timing step will be 5 us (200 kHz).
07-06-2017 05:37 PM
PS, if you need more precise timing, you can start counter pulse by analog output pulse
06-25-2020 02:52 AM
Hi!
I would like to use this HW (9401) to trigger up to 6 instruments with adjustable delay times (0-5000ms) between the trigger pulses.
What do you think is possible? Maybe with timer-controlled digital patterns?
Thanks