LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I read the duty cycle of a 1D Boolean array

Solved!
Go to solution

I am trying to read a digital signal using one line of a PCI-6503. The input I want to capture will run at 1 Hz with a 50% duty cycle. Otherwise it will be either always on or always off. So I need to be able to tell if it goes into this flashing, from either steady on or steady off.

 

I have tried various ways of converting this signal to a digital wave and then to an analog, so I could use the Pulse Measurements vi that will tell me the duty cycle, but no luck. So I have thrown the whole thing away and am hollering for help.

 

Smiley Sad

0 Kudos
Message 1 of 3
(2,708 Views)
Solution
Accepted by topic author slipstick

A starting point:

 

BooleanDutyCycle.png

 

Message 2 of 3
(2,702 Views)

Ah, I bow to the superior math whiz. Smiley Happy

 

Excellent starting point!

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