Skip to main content
Control DAC (Digital-to-Analog Converter) output on your device. The DAC command sets a precise analog voltage on a DAC net, useful for generating reference voltages, bias signals, or test stimuli.

Syntax

Global Options

Arguments

  • NET - Name of the DAC Net to control
  • VOLTAGE - Voltage value in volts to output

Supported Hardware

Channel Naming

When creating DAC nets, the channel name depends on the hardware: LabJack T7: DAC0, DAC1, or numeric 0, 1 MCC USB-202: DAC0, DAC1, AOUT0, AOUT1, or numeric 0, 1

Default Net

Set a default DAC net to avoid specifying the name each time:
Then:

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
  • Both supported hardware models output 0-5V
  • USB-202 channels can be specified as 0-1, DAC0-DAC1, or AOUT0-AOUT1

See Also

  • ADC — Analog-to-digital converter input (the complement of DAC)
  • Python DAC API — Set DAC output in Python scripts