04-11-2025 12:57 PM
Greetings, using DAQmx, I am attempting to trigger an analog read on my 9221 module in my cDAQ (9188) when a specific acceleration value is reached on my 9234 module, also in the same cDAQ chassis.
I'm having trouble understanding how I would accomplish this, as I expect a signal to be generated on my UUT within a specific time window once the correct acceleration value is measured.
In DAQmx, I have looked at the trigger nodes, but my understanding is that the trigger VI only provides setup to trigger the physical channel that the signal is received on to begin measurement.
Ideally, the 9234 module reaches X m/s and then triggers the 9221 to initiate a read of t milliseconds at that instant.
A separate attempt that I tried was to simply put both physical channels into the same task, and initiate a continuous measurement so that I could do post processing, but there is a time delay between the signals even with this approach.
If anyone can provide a diagram or even an example of how to do this kind of operation I would really appreciate it.
Unfortunately I'm unable to provide the code that I'm currently working on as it's on an isolated machine that doesn't allow file transfer off of the system.
04-11-2025 01:10 PM - edited 04-11-2025 01:10 PM
Synchronize the 9234 and 9221 tasks so their clocks and starts are locked together. Use a software trigger on the 9234, and employ your post-processing strategy to look for the reference level trigger (implemented in software) on the 9234. At the level trigger, process your synchronized 9221 data.