LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Get Duty Cycle from Analog Voltage input DAQ module

Solved!
Go to solution

Hello.

 

I am new to labview. I have an analog voltage input DAQ module. I am trying to get the duty cycle from a squarewave (generated from a function generator). What is the best way to go about this? When I use the vi to aquire duty cycle from an analog wave the values are incorrect.

0 Kudos
Message 1 of 5
(2,642 Views)

Have you tried the Pulse Measurements.vi from the Signal Processing >> Waveform Measurements palette? 

 

To get good answers you need to ask good questions. Simply saying that "the values are incorrect" does not give us any specific information about what you have tried, why you think the values are wrong, whether you get any error messages, and so on.

 

Please post your VI with some data saved as default. Also tell us what the duty cycle should be. Have you measured it independently (with an oscilloscope) to verify that it generates what you think it does?

 

Lynn

0 Kudos
Message 2 of 5
(2,632 Views)

Hey Lynn,

 

Thank you for the response and sorry for being so vauge. I have tried using the Pulse Measurements.vi and I have also checked the signal on the scope and it checks out. The issue with the Pulse Measurements.vi is that it does not give me the correct duty cycle, when duty cycle is changed on the function generator the Pulse Measurements.vi outputs a 50% duty cycle. I assume that its becuase its the duty cycle off the sampling.

 

I am not sure if there is some waveform function to get the duty cycle from a digitized square wave or if have have to do some sort manipulation and then get the futy cycle.

0 Kudos
Message 3 of 5
(2,581 Views)
Solution
Accepted by topic author momo2000

Please post your VI along with some actual data from your signals so we can see what is going on.

 

Lynn

0 Kudos
Message 4 of 5
(2,575 Views)

Thanks for you help I just ended up getting an NI 9401 module.

0 Kudos
Message 5 of 5
(2,440 Views)