08-16-2018 09:42 AM
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.
.
08-16-2018
06:38 PM
- last edited on
11-27-2024
07:24 PM
by
Content Cleaner
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.