list - List Channels
Description
The list command displays all available channels and their current values. It provides a quick overview of the hardware state and can be filtered to show specific channels.
Syntax
list [options]
Optional Options
| Option | Short | Description | Default |
|---|---|---|---|
--filter |
-f |
Apply a regular expression filter to channel names | (none) |
--disabled |
-d |
Show disabled channels in addition to enabled ones | false |
Examples
List All Enabled Channels
list
List All Channels (Including Disabled)
list --disabled
Filter by Pattern
list --filter "VOLTAGE.*"
list -f "GPIO_[0-9]+"
Combine Filter and Disabled
list --filter "TEMP.*" --disabled
Output Format
Channels are displayed in the format:
<channel_alias> <value>
For example:
VOLTAGE_SENSOR_1 3.3
GPIO_PIN_5 1
I2C_BUS_MAIN (<data>)
TEMPERATURE_AMBIENT 25.4
DISABLED_CHANNEL (disabled)
Output Colors
- Green: Enabled channels with values
- Cyan: Special data channels (ByteStream, I2C, UART, etc.)
- Gray: Disabled channels
Special Channel Types
Some channel types display (<data>) instead of actual values:
- ByteStream channels
- I2C channels
- UART channels
- SPI channels
- Socket channels
- Waveform channels
- NumericResult channels
Performance Information
At the end of the output, query execution time is displayed:
Query took 45.23 ms
Behavior
- Retrieves all channels from the hardware
- Orders channels alphabetically by alias
- Filters by disabled state if requested
- Applies regex filter if provided
- Queries values for all enabled channels
- Displays results with color coding
Filter Patterns
The filter option supports standard .NET regular expressions:
| Pattern | Matches |
|---|---|
VOLTAGE.* |
All channels starting with "VOLTAGE" |
.*_SENSOR |
All channels ending with "_SENSOR" |
GPIO_[0-9]+ |
GPIO channels with numeric suffixes |
(TEMP\|VOLT).* |
Channels starting with TEMP or VOLT |
^ADC_CH[0-7]$ |
Exactly ADC_CH0 through ADC_CH7 |
Notes
- Requires an active connection (use
initfirst) - Large channel lists may take time to query
- Values are fetched in a single bulk operation for efficiency
- Disabled channels don't have values queried
Error Handling
Common errors:
- Not connected: Run
initcommand first - Invalid regex: Check filter pattern syntax
Performance Tips
- Use filters to reduce output and query time
- Disabled channels are skipped by default for faster results
- Query time scales with number of enabled channels