Summary: In this exercise, the objective is to output an analog voltage using a DAQ device. Complete the following steps to finish a VI that outputs voltage from 0 to 9.5 V in 0.5 V steps.
Voltage Output VI located in the
C:\Exercises\LabVIEW Basics I directory. The
front panel is already built.
![]() |
Voltage Output displays the current voltage
output.
![]() |
The Wait Until Next ms
Multiple function located on the
Functions>>All Functions>>Time & Dialog
palette causes the For Loop to execute
every 500 ms.
The Select VI located on
the Functions>>Arithmetic &
Comparison>>Express Comparison palette checks if
the loop is in its last iteration. If the loop is in its
last iteration, then the DAQ device outputs 0
volts. This is a good technique to reset the output
voltage to a known level. It is always a good idea to
reset the output voltage to something that will not
damage a device that is connected to the DAQ device.
![]() |
DAQ Assistant Express
VI, located on the Functions>>Output
palette, in the For Loop. Complete the
following steps to configure this Express VI to generate an
analog output voltage.
Analog Output>>Voltage for the
measurement to make.
Dev1>>ao0 for the physical channel
and click the Finish button.
Analog Output Voltage Task
Configuration dialog box that appears, configure
the Task Timing to Generate 1
Sample. Change the output range minimum to
0 and maximum to 10.
OK button to close the
Analog Output Voltage Task Configuration
dialog box. This saves the settings specified for the
task in the DAQ Assistant Express VI.
0.0
and maximum to 10.0.
Voltmeter
VI and double-click the DAQ Assistant
Express VI to open the Analog Input Voltage
Task Configuration dialog box.
Voltage in the Channel
List section and select Change Physical
Channel. Select ai1 for the channel
because you wired the DAQ signal accessory to output a
voltage on Analog Out CH0 and acquire the
voltage from Analog In CH1.
No Scale from the Custom
Scaling pull-down menu.
0 to
10.
OK button to close the dialog
box.
Voltmeter
VI.
Voltage Output VI.
The Voltage Output VI
outputs the voltage in 0.5 V increments from 0 to 9.5
V. When the For Loop executes its last iteration, the VI
outputs 0 V to reset the analog output channel.
![]() |
"A full introductory course on programming with LabVIEW."