Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

using 9219 to measure voltage

I have taken over a LabVIEW program using the NI 9219 to measure voltages.

DAQmx is not my strong suit.

 

Attached is the VI in question.

 

Is it correct?

The task is stopped, yet the WHILE loop keeps reading from the DAQ module.

 

 

.

 

 

 

0 Kudos
Message 1 of 2
(1,854 Views)

I think this isn't correct. Once the task is stopped, the device cannot keep reading.

In addition, you don't close device reference using "DAQmx Clear Task". This would cause reference leak.

 

I recommend you to refer example which is shipped with LabVIEW.

NI-DAQmx Example Locations for LabVIEW and Text-Based in Windows

 

C:\Program Files\National Instruments\LabVIEW 201x\examples\DAQmx\Analog Input\Voltage - Continuous Input.vi

is the best one.

Certified LabVIEW Developer
There are only two ways to tell somebody thanks: Kudos and Marked Solutions

GCentral
0 Kudos
Message 2 of 2
(1,837 Views)