Import
Methods
| Method | Description |
|---|---|
output(voltage) | Set analog output voltage |
get_voltage() | Read configured output voltage |
input() | Alias for get_voltage() |
Method Reference
Net.get(name, type=NetType.DAC)
Get a DAC net by name.
| Parameter | Type | Description |
|---|---|---|
name | str | Name of the DAC net |
type | NetType | Must be NetType.DAC |
output(voltage)
Set the analog output voltage.
| Parameter | Type | Description |
|---|---|---|
voltage | float | Output voltage in volts |
get_voltage()
Read the currently configured output voltage.
float - Configured voltage in volts
input()
Alias for get_voltage(). Returns the currently configured output voltage.
float - Configured voltage in volts
Examples
Set Reference Voltage
Generate Ramp Signal
Voltage Sweep Test
Set and Verify
Supported Hardware
| Hardware | Channels | Range |
|---|---|---|
| LabJack T7 | DAC0-DAC1 | 0-10 V |
| MCC USB-202 | AOUT0-AOUT1 | 0-5 V |
Pin Naming
LabJack T7:| Pin Input | Channel |
|---|---|
0-1 | DAC0-DAC1 |
"DAC0"-"DAC1" | DAC0-DAC1 |
| Pin Input | Channel |
|---|---|
0-1 | AOUT0-AOUT1 |
"DAC0"-"DAC1" | AOUT0-AOUT1 |
"AOUT0"-"AOUT1" | AOUT0-AOUT1 |
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 forget_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

