LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Digital Input Timing

Hello,

 

I have an Digital Input signal coming to my Daq, which is 4sec ON and 10sec OFF.

 

But I would like to compare the 4sec ON, if the high signal was high for more on equal to 2sec, if send a true signal, if it was less then 2sec then a false.

I know i have to use case structure to have true & false conditions, but I dont know how can i check how long the signal was high.

 

 

Any help would be appreciated.

 

Kind regards,

0 Kudos
Message 1 of 2
(2,606 Views)

Hi Sky

You can use DAQmx to measure the period of the digital input:

https://decibel.ni.com/content/docs/DOC-12160

 

Then just add a case structure for the conditions and the actions

 

Hope that helps

 

Jimbo

0 Kudos
Message 2 of 2
(2,545 Views)