Hello,
I want to read and determine the delays between each pulse of a waveform from an external source.
To do this, in my VI, I measure the time/delay between each pulse and, at the same time, the voltage value of the signal. This is so that I can reconstruct the signal.
To do this, I used the “CITime” function to determine the high and low times of each pulse, and at the same time, I used the analog reading of the signal to obtain the voltage value. I created the VI attached to the email.
It does not quite meet my needs. The reading of these two pieces of information is not triggered at the same time.
Despite setting the “task start” function for reading the times (CITime) after triggering the voltage reading, so that both tasks start on the same trigger signal, which is located on the voltage reading task, the two tasks are not triggered at the same time.
I noticed that the CITime function starts as soon as the VI starts, while the AI reading is triggered on demand. So I tried to add a trigger to start the CITime function, but it does not accept the addition of this function. CITime is a function integrated into DAQmx in the virtual task creation function.
Do you have a solution? As a reminder, I am looking to trigger two different information readings, one from the analog reading of the AI, and the other from the time between each pulse from a counter, from an external source. The goal is to reconstruct the recovered signal in order to analyze it.
If you have any ideas or explanations, I would love to hear your thoughts.
And I use USB-6351 Card
Did.rider38