| IBTERM(1) | Linux-GPIB User Manual | IBTERM(1) |
NAME¶
ibterm - Interactive GPIB terminal
SYNOPSIS¶
ibterm {-d primary_address} [-m minor] [-s secondary_address] [-i eoi] [-e eos] [-r reos] [-b bin] [-x xeos] [-t timeout] [-p prompt] [-f history_file] [-N] [-X] [-h]
DESCRIPTION¶
An interactive terminal program for sending commands to a device over an IEEE-488 general purpose instrument bus and printing the responses.
OPTIONS¶
-d address
-m number
-s address
-i 0|1
-e code
-r 0|1
-b 0|1
-x 0|1
-t timeout
| timeout | Length |
| 0 | Never timeout |
| 1 | 10 microseconds |
| 2 | 30 microseconds |
| 3 | 100 microseconds |
| 4 | 300 microseconds |
| 5 | 1 millisecond |
| 6 | 3 milliseconds |
| 7 | 10 milliseconds |
| 8 | 30 milliseconds |
| 9 | 100 milliseconds |
| 10 | 300 milliseconds |
| 11 | 1 second |
| 12 | 3 seconds |
| 13 | 10 seconds |
| 14 | 30 seconds |
| 15 | 100 seconds |
| 16 | 300 seconds |
| 17 | 1000 seconds |
-p string
-u string
-f file
-N
-X
-h
NOTES¶
To quit the program enter the EOF character (Ctrl+D) at the prompt.
For interactivity, timeout should not be greater than 13 i.e. 10 secs.
A device read can always be triggered by hitting enter at the prompt. Interrupting the program while reading from the device may cause hangs.
Implementation details¶
The program is implemented as follows:
loop: Print prompt to stdout Read a line of text from stdin Write the text (if any) to the device at pad If -N is not set, or no text was entered:
Attempt to read response from the device
If no response is received before timeout:
go to loop
else:
print the response on stdout Go back to loop.
SEE ALSO¶
See the readline(3) man page for editing input and searching history.
COPYRIGHT¶
Copyright © 2003-2006, 2008 Frank Mori Hess
| 11/28/2025 | linux-gpib 4.3.7 |