Discussion:
duty cycle measurement with a low frequency
(too old to reply)
Bill23
2008-03-06 00:10:07 UTC
Permalink
Hi,
I'm new to LabView and am having trouble measuring the duty cycle of my signal, currently i'm using a cDAQ board with the NI 9205 analog input module to receieve the PWM signal. I've tried using the Pulse Measurement block from LabView 8.5 but it would appear that my period is too long so comes with the error "The waveform did not cross the mid reference level enough times to perform this measurement. Check the signal length, reference levels, and ref level units". Is there anyway around this or perhaps another way to calculate the duty cycle on a real time basis?
 
The frequency of my signal is around 0.8Hz so  the period is ~1.25s. I'm just using DAQ assistant which outputs the data in dynamic data format (thick striped blue line) and plugging it into the pulse measurement block which appears to accept brown lines so there is a coersion dot in the way, would that affect anything? The indicators appear as arrays.
 
I have tried changing the continuous sampling rate to as low as 10Hz but still comes with an error and displays dubious values before it does. The signal ranges between 0-5V and is quite well defined.   
Bill23
2008-03-07 18:10:44 UTC
Permalink
It says:
Error -20308 occurred at  (waveform index 0 of 1)
Possible reason(s):
Analysis:  The waveform did not cross the mid reference level enough times to perform this measurement. Check the signal length, reference levels, and ref level units.
Nick_CH
2008-03-07 18:11:04 UTC
Permalink
Hi Bill, Just have a look at this forum:
Pulse Measurement problemhttp://forums.ni.com/ni/board/message?board.id=170&message.id=81330&requireLogin=FalseBest regardsNick_CH
suneelkv
2008-08-13 05:40:20 UTC
Permalink
Nick,
 
Could you please save the VI above for 8.2.1 labview version and send it across....
 
-Suneel.VMessage Edited by suneelkv on 08-13-2008 12:11 AM
tnek
2008-08-13 22:40:18 UTC
Permalink
Hi Suneel,&nbsp;Here is the block diagram along with the VI.&nbsp;<img src="Loading Image..." border="0"> &nbsp;Regards,KentApplications Engineer Message Edited by tnek on 08-13-2008 05:15 PM


Analog_PWM.vi:
http://forums.ni.com/ni/attachments/ni/170/349157/1/Analog_PWM.vi


Analog_PWM.png:
http://forums.ni.com/ni/attachments/ni/170/349157/2/Analog_PWM.png
Loading...