LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

VI to read both analog and PWM signals

I would like to read both analog and PWM siginals from a DAQCard-Al-16E-4 in a LabView VI.
Is this possible and how should I structure the program?
I currently have the VI running for analog input and I want to add a PWM siginal, however I am confused about where the timing for the PWM measurement will take place, (In the DAQ card, in the VI using the PC clock...)

Thank you for for assistance.
Andrew
0 Kudos
Message 1 of 2
(3,671 Views)
The DAQ-STC circuit of the DAQcard has several counters. The timing for AI, AO and counter operation are controlled by this circuit. For more detail have a look on page 324 of the 2001 catalog or at http://digital.ni.com/manuals.nsf/caba5d53e9b015a186256793004eebb7/e929838d7d0ee50986256728007feadf?OpenDocument

The timing for your PWM measurement will be controlled by this circuit on your DAQCard. This means that the timing is hardware and not software.

Search for "pulse width measurement" in the LabVIEW help. You can use the "Measure Buffered Pulse (DAQ-STC).vi".

If your AI and PWM have to be exactly simultaneous you will need to modify these VIs (compilation of both in one new VI). The general idea is:
1) Configure the AI
2) Configure the PWM
3) Start the AI and the PWM
simultaneously
...
0 Kudos
Message 2 of 2
(3,670 Views)