Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

how to reduce time from one task with one daq to another

IM using NI 9401 to trigger a shutter and a NI 9215 to record the signal from that effect

I have read that i cant sync these two modules with daqmx because its C series and one is analog input and the other is digital out
and that i need to place them as separated tasks

is this true?

and if it is, how do i reduce the time form sending the trigger to start reading from the analog signal,
now the data i get when it starts recording at the analog input only shows me half of the effect that i want to see because it starts to record to late

i dont know how to or if its possible to buffer sooner to allow me to have all the signal i want

any way you could have to start recording data in sync would be appreciated

thank you
0 Kudos
Message 1 of 2
(2,633 Views)
Hi delcasmx,

If both of these modules are in the same chassis, all you would need to do to synchronize the two modules is set the sample clock of one of the tasks to the other. For example, you have an analog input task and you set the clock for the task. This will generate a signal called ai/SampleClock. This clock can then be set as the clock source for the digital output task in the DAQmx timing function. A good example of this can be found in the Example Finder which can be accessed through the Help menu in LabVIEW. This example can be found browsing by task under Hardware Input and Output » DAQmx » Synchronization » Multi-Function » Multi-Function-Synch AI-Read Dig Chan.vi. You would just have to modify this example to do digital output rather than digital input. Let me know if this helps.

Regards,
Kent
Applications Engineer
0 Kudos
Message 2 of 2
(2,616 Views)