From the course: Data Acquisition with LabVIEW

Unlock this course with a free trial

Join today to access over 25,300 courses taught by industry experts.

On demand analog input

On demand analog input

- [Tutor] To demonstrate using the DACmx API, I'll build a very simple task to acquire a single analog input sample on demand with software timing, starting from a blank VI. The DAQmx API can be found on the functions palette, under Measurement IO, NI DAQmx. And since most of the VI's I'll be using are on this sub palette, I'll click the pin icon to hold it open. The first one I'll need is the DAQmx create virtual channel VI. This is what's called a polymorphic VI, meaning there are multiple instances of it with different inputs and outputs, and it will select which one to use based on the channel type. By default, it's configured to create the virtual channel for an analog input voltage measurement but if I click this selector, I can choose among all the different types of analog and digital and counter, inputs and outputs. For this example, I'll leave it as analog input voltage. If I press Control + H to bring up the…

Contents