06-07-2018 08:13 AM - edited 06-07-2018 08:14 AM
Dear Labviewers,
I am working on a project for the measurement of the voltage that it is triggered using a digital counter event.
I am using the NI 9361 a digital input counter and the cDAQ-9184.
I would like to get measurement at every rising edge for a duration of 6 seconds.
In the script below, I used a comparison between the actual and the previous value of the counting edge value. if the current count is greater than the actual edge... the analog input module start the measurements and it stops when the while loop return the value using Shift register after 6 seconds.
The problem is that, the measurement then will be not synchronized with the real process...
Please any solution will be very appreciated 🙂
Thank you in advance
Regards,
Tanieta
06-11-2018 04:41 AM
As I understand what you said, you have a digital input and an analog input. You want to measure the analog input for 6 seconds after the digital input goes high. Right?
Why not use analog acquisition with a digital trigger (there are examples...)
Mike...
06-11-2018 04:49 AM
Hello mikeporter,
Thank you for your reply.
Yes exactly for each rising edge I want to get measurements for 6 seconds.
I have for that the ni 9361 counter.... I used before the change detection and digital edge VIs for that.. but i didn't work... I cannot perform this task using the counter that I have comparing to the NI 9401 as I found in some examples 😕
That's why I used this script...
Is there any other possible solution ??!!
Thank you in advance 🙂
Tania