Syntax
Arguments
Level Values
The following values are accepted (case-insensitive):Options
Usage
Hold Mode
The box keeps the device session open, so the pin keeps its level after the command exits. Older scripts that pass--hold still run: the option is hidden from --help, has no effect,
and prints a note.
To release a pin, set it to the other level.
Power-Up Level
A level thatlager gpo sets on a LabJack is lost when the LabJack loses power. At power-on, every LabJack pin is an input with a pull-up, so it reads HIGH. To make a LabJack T7 or U3 pin power up at a known level, declare the level with lager nets set-power-up. Then write it with lager nets apply-power-up.
Supported Hardware
The pin column lists the exact channel tokens that
lager nets add accepts. On a
multi-channel FTDI part, the net’s interface selects channel A, B, C or D.
LabJack U3 Pins
FIO0-FIO3are not offered asgpiochannels. On a U3-HV they are fixed high-voltage analog inputs.- Lager treats every U3 as a U3-HV, so a U3-LV also loses these four digital lines.
- A write sets the pin to digital mode and to output.
- A
gpionet saved onFIO0-FIO3before version 0.46.1 still lists, but fails when you use it. Delete that net.
Aardvark Pin Mapping
The Aardvark I2C/SPI adapter exposes 6 GPIO pins on its 10-pin header. Give the signal name as the channel:FT232H Pin Mapping
The FT232H and FT2232H offer 12 GPIO channels.AD0-AD3 are not offered as gpio
channels:
Examples
Related Commands
lager gpi- Read GPIO input state
Notes
- GPO is for setting output pins only
- Use
lager gpito read input pins - Default net can be set with
lager defaults add --gpio-net - Pin must be configured as output in net configuration
- Toggle reads current state and inverts it
- USB-202 channels are
DIO0-DIO7 - The command sets the output level and exits immediately; the pin retains its state until the next command
- A level does not survive a LabJack power cycle unless the net declares it with
lager nets set-power-up

