07-22-2021 10:09 PM
Contrary to my previous statement, with those two modules, you may able to use the master timebase of either to synchronize the devices. I can't tell where the issue is in your code. Can you simplify that code? Ideally, we want to be able to verify that a time waveform acquired from the 9234 is synchronized with a waveform from the 9237. That should not require the use of averaging, filtering, shared variables, or even a timed loop. Build up the analysis once synchronization is verified.
07-23-2021 11:04 AM
Hi Doug,
Thank you very much. Here I am attaching my revised VI.
07-23-2021 11:45 AM
Have you tried Channel Expansion? I don't have the hardware to test but I think it would work. LabVIEW 2018 version attached.
mcduff
07-23-2021 01:06 PM
Just before the DAQmx Perform Bridge Offset Nulling Calibration.vi in mcduff's simplified VI, I had to add DAQmx Timing VI to avoid error -201087.
I ran the VI with simulated hardware.
07-23-2021 02:04 PM
Hi mcduff,
Thank you for your VI, I need to check the phase error by running a few tests. Can I add one additional channel (NI 9205) for an LVDT to this method like the following figure?
07-23-2021 02:38 PM
Channel Expansion should work for most cDAQ modules in the same chassis. So go ahead and add the 9205. You may have to play around with the order as @dsb@NI showed.
Note your channels will be phase locked and synchronous BUT you may have a constant phase offset between them that you can remove later. You will have to look in your manual for details. See this thread for details.
mcduff