Skip to main content
Set analog voltage outputs using DAC pins. Supports LabJack T7 and MCC USB-202 hardware.

Import

Methods

Method Reference

Net.get(name, type=NetType.DAC)

Get a DAC net by name.
Parameters: Returns: DAC Net instance

output(voltage)

Set the analog output voltage.

get_voltage()

Read the currently configured output voltage.
Returns: float - Configured voltage in volts

input()

Alias for get_voltage(). Returns the currently configured output voltage.
Returns: float - Configured voltage in volts

Examples

Set Reference Voltage

Generate Ramp Signal

Voltage Sweep Test

Set and Verify

Supported Hardware

Pin Naming

LabJack T7: MCC USB-202:

Notes

  • DAC nets work directly without enable()/disable() calls
  • LabJack T7 output range: 0-10 V
  • USB-202 output range: 0-5 V
  • input() is an alias for get_voltage() and returns the configured output value
  • Output values are maintained until changed or power cycle
  • Net names must match those configured on the Lager Box