12-21-2007 03:22 AM
12-21-2007 03:24 AM
12-22-2007 02:35 AM
While it's true that no much LV fellows are following this forum, I can tell you how I accomplished the same task in CVI: you should be able to easily adapt this concepts to LV.
Basically I used two counters to calculate the duty cycle, the first to calculate the period and the second to calculate pulse width lenght. Connect your signal to the gate of counter 0 and setup the acquisition for period measurement, next setup a pulse width acquisition on counter1, additionally setting it's input to counter0 gate. Start the two acquisitions and wait for completion: the duty cycle is pulse width / period measurement.
12-26-2007 01:29 PM
Hi Lab Test
I have tried what Roberto suggested and it works fine in LabVIEW. I would suggest using the examples programs found at Help >> Find Examples titled: “Meas Pulse Width-Buffered-Cont.vi” and “Meas Buffered Semi-Period-Continuous.vi” Just change the polymorphic instance of the DAQmx Create Channel VI from CI Semi Period to CI Period.
Once you have them acquiring pulse width and period data simultaneously, divide the pulse width by period, and then use that to output your voltage.
For future LabVIEW questions please use the LabVIEW Forums located at http://forums.ni.com/ni/board?board.id=170
Chris_K