![]() |
|
|
This VI is a very simple bit of example code that uses a task created in Measurement and Automation Explorer (MAX) and acquires data.
The task shown here is what is being used in this example. In this case, because the task is only performing a finite acquisition the read is only performed once, instead of within a loop.
Performing a continuous read, would of course, require the use of a while loop with a stop condition around the DAQmx Read VI.
Tasks in MAX can be used in LabVIEW very simply. You can either drag a task from MAX straight into your block diagram or you can place a Task Constant from the functions palette. The Task Constant can be found under Measurement I/O»NI-DAQmx. From here all you need to do for an acquisition task is connect the task to a DAQmx Start VI and then to a DAQmx Read VI and then to a DAQmx Stop VI.
There are benefits of using a task from MAX instead of using a DAQ Assistant
There are also benefits of using a task from MAX instead of setting up your task completely in LabVIEW
There are no comments on this document