Hi,
I am using LabView and M Series board PCI-6221 to read 4 analog inputs in RSE (Refenced Single-Ended) mode. The frequency of the signals are up to 500Hz (not so high).
I am using the DAQmx tasks to set the parameters for this measurements. My objective is to use this information in a closed-loop control system.
To read the channels, I wrote a code in a while loop and I am reading 4 samples per channel each time. Then, I average the results and use these results as the values for each input. To start the measurements, I used internal clock as trigger (HW trigger). I tested this method with DC signals and it worked fine.
I am having problems when reading the 500Hz signals. As this frequency is not so high, I set the trigger for 50kHz and also for 100kHz (I also used a buffer). I thought that would be easy task, but for some reason, the signals I am reading does not correspond to the real ones (as read in a scope).
So, my question is: can you help me with this issue? How can I synchronize these measurements and acquire then in a fixed period (constant period sampling)?
I really appreciate your help.
Thanks
Jeferson