Syntax
Global Options
Arguments
NET- Name of the DAC Net to controlVOLTAGE- Voltage value in volts to output
Supported Hardware
The CLI accepts values from 0 to 5 V, the widest of these ranges. The box then checks the range of the net’s instrument and refuses a value outside it.
LabJack U3
- The output range is 0.04 V to 4.95 V, not 0 V to 5 V. The box refuses a value outside that range and does not clamp it. You cannot set a U3 DAC to 0 V.
- A U3 has no DAC readback.
lager dac NETwithout a voltage returns the last value that the box set on that net. - If the box has no value to report, the read fails with a
has no readbackerror. This happens, for example, after alager pythonscript ran. Set a value first.
Channel Naming
When you create a DAC net, use a channel name thatlager instruments lists for the instrument:
LabJack T7: DAC0, DAC1
LabJack U3: DAC0, DAC1
MCC USB-202: DAC0, DAC1
Read the Output
Omit the voltage to read the output value of the net:Default Net
Set a default DAC net to avoid specifying the name each time:Examples
Troubleshooting
Notes
- Net names (e.g.,
VOLTAGE_OUTPUT,POWER_RAIL) refer to names assigned when setting up your testbed - Voltage values are specified in volts
- Only works with nets of type
dac - Ensure the target box has DAC nets properly configured
- DAC outputs provide precise voltage control for analog circuits
- LabJack T7 and USB-202 output 0-5V. LabJack U3 outputs 0.04-4.95V.
See Also
- ADC — Analog-to-digital converter input (the complement of DAC)
- Python DAC API — Set DAC output in Python scripts

