USB Port Power Management
The AT1000 provides control over its two USB 3.0 ports, allowing engineers to power cycle devices under test (DUTs) and measure current and voltage consumption.
USB communication
This API controls USB power. For direct communication with USB devices, use their normal libraries inside a standalone project. Access to a USB device from a project requires a standalone project created on firmware 0.7.0 or newer.
USB Power Control​
Each USB port can be individually powered up or down. This allows for controlled testing of USB-powered devices.
- NodeJS
- Python
- Rust
await tester.power.usb(1).enable(); // Power up the USB power supply channel 1
await tester.power.usb(1).disable(); // Power down the USB power supply channel 1
tester.power.usb(1).enable() # Power up the USB power supply channel 1
tester.power.usb(1).disable() # Power down the USB power supply channel 1
let usb = tester.power.usb(1)?;
usb.enable()?; // Power up the USB power supply channel 1
usb.disable()?; // Power down the USB power supply channel 1
Reading USB Voltage and Current​
The AT1000 allows real-time measurement of voltage and current supplied to a USB-powered device.
- NodeJS
- Python
- Rust
// Read voltage on USB port 1
let usb_voltage = await tester.power.usb(1).read_voltage();
console.log("USB Power Voltage:", usb_voltage, "V");
let usb_current = await tester.power.usb(1).read_current();
console.log("USB Power Current:", usb_current, "A");
# Read voltage on USB port 1
usb_voltage = tester.power.usb(1).read_voltage()
print(f"USB Power Voltage: {usb_voltage} V")
usb_current = tester.power.usb(1).read_current()
print(f"USB Power Current: {usb_current} A")
let usb = tester.power.usb(1)?;
// Read voltage on USB port 1
let usb_voltage = usb.read_voltage()?;
println!("USB Power Voltage: {usb_voltage} V");
let usb_current = usb.read_current()?;
println!("USB Power Current: {usb_current} A");