LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Digital input counter, shift register

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 

0 Kudos
Message 1 of 3
(2,585 Views)

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...


Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 2 of 3
(2,539 Views)

 

 

0 Kudos
Message 3 of 3
(2,531 Views)