Import
Methods
| Method | Description |
|---|---|
input() | Read analog voltage |
Method Reference
Net.get(name, type=NetType.ADC)
Get an ADC net by name.
| Parameter | Type | Description |
|---|---|---|
name | str | Name of the ADC net |
type | NetType | Must be NetType.ADC |
input()
Read the analog voltage.
float - Voltage in volts
Examples
Single Reading
Continuous Monitoring
Data Logging
Multiple Sensors
Supported Hardware
| Hardware | Channels | Range | Resolution |
|---|---|---|---|
| LabJack T7 | 14 (AIN0-AIN13) | +/-10 V | 16-bit (~0.3 mV/LSB) |
| MCC USB-202 | 8 (CH0-CH7) | +/-10 V | 12-bit (~4.9 mV/LSB) |
Pin Naming
LabJack T7:| Pin Input | Channel |
|---|---|
0-13 | AIN0-AIN13 |
"AIN0"-"AIN13" | AIN0-AIN13 |
| Pin Input | Channel |
|---|---|
0-7 | CH0-CH7 |
"CH0"-"CH7" | CH0-CH7 (case-insensitive) |
Notes
- ADC nets work directly without
enable()/disable()calls - Returns voltage as a float in volts
- Both devices have a +/-10 V input range (bipolar)
- LabJack T7 shares a connection handle with DAC, GPIO, and SPI operations
- USB-202 opens and closes the connection on each read
- Net names must match those configured on the Lager Box

