How To Use DAQ Assistant For Analog Output on Multiple Channels

Updated Nov 17, 2023

Environment

Driver

  • NI-DAQmx

Other

Primary Software: LabVIEW Development Systems>>LabVIEW Full Development System 7.0

I am using DAQ Assistant in LabVIEW. If I use it to do Analog Output on one channel, I can wire the Data input correctly and it works fine. If I want to do analog output on two different channels, how should I wire this Data input, and how can I use DAQ Assistant for this?

In order to input more than one channel to the Data input terminal of the DAQ Assistant, you will need to use the Build Array function to build a 2D array where each row represents a channel. For example, the following snippet shows how a 2D array of numerics is built from numeric controls. The DAQ Assistant is configured to generate N Samples for each channel. Since the incoming array is of size 2 X 5, 5 points of data will be generated on each channel:


Please note that due to the nature of the DAQ Assistant's Analog Output mode (it opens a reference to the hardware, generates the data then closes the references), this is not an optimal method to use for continuous generation of data. Refer to the shipping examples located in Help»Find Examples»Instrument Input and Output»DAQmx»Analog Output for examples better suited to implement this functionality.