IBTERM(1)

πŸ“¦
version 4.3.7 Β· 2 versions
, in ubuntu stonking

✨ IBTERM(1) ✨

okay bestie, welcome to the IBTERM(1) page from the Linux-GPIB User Manual β€” yes it's giving old-school, yes it's iconic, and yes we're gonna read the whole thing together πŸ’–


🌸 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 πŸ’…

So basically: it's an interactive terminal program that sends commands to a device over an IEEE-488 general purpose instrument bus, and then prints whatever the device says back. That's the whole vibe. You type, it tells the instrument, instrument yaps back, you read it. Main character energy fr fr πŸ‘‘


✨ OPTIONS ✨

  • -d address β€” Sets the device's primary address (aka the pad). This address has to be between 0 and 30. No exceptions, no cap.
  • -m number β€” Says which minor number of the device file this interface board is gonna use. 0 = /dev/gpib0, 1 = /dev/gpib1, etc. Defaults to 0.
  • -s address β€” Sets the device's secondary address (the sad, and yes that's the real name 😭). It must be 0 (which means disabled) or between 96 and 126 (0x60 and 0x7e in hexadecimal). Defaults to 0.
  • -i 0|1 β€” Assert EIO with the last byte sent. Defaults to 1 (true).
  • -e code β€” The ASCII code of the end-of-string (eos) character. The code has to be between 0 and 255. Defaults to 0 (no code).
  • -r 0|1 β€” The terminate read on eos character (reos) flag. Defaults to 0 (false).
  • -b 0|1 β€” Binary eos character match mode (bin) flag. Defaults to 0 (false).
  • -x 0|1 β€” Assert EOI when transmitting eos (xeos) flag. Defaults to 0 (false).
  • -t timeout β€” Sets the IO timeout for the device. The timeout must be one of the values in the list below. The default value is 10, which corresponds to 300 milliseconds. ⏳
  • -p string β€” Sets the prompt. Defaults to ibterm>.
  • -u string β€” Send Untalk/Unlisten after each read and write.
  • -f file β€” Command history file. Defaults to .ibterm_hist_<primary_address>.
  • -N β€” No automatic read on device β€” you enter return at the prompt to read.
  • -X β€” Force hexadecimal output.
  • -h β€” Print help and exit.

⏰ the timeout lore (the whole list, no skipping, periodt)

  • 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

πŸ“ NOTES πŸ“

  • To quit the program, enter the EOF character (Ctrl+D) at the prompt. That's the exit door bestie πŸšͺ
  • For interactivity, the timeout should not be greater than 13 β€” that's 10 secs. Anything bigger and the vibes get sluggish.
  • A device read can always be triggered by hitting enter at the prompt. πŸ‘€
  • > ⚠️ Interrupting the program while reading from the device may cause hangs. Like, it can genuinely get stuck. Be careful out there 😭

🧚 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. iykyk ✨


Copyright Β© 2003-2006, 2008 Frank Mori Hess


and that's a wrap on the IBTERM(1) page from linux-gpib 4.3.7, dated 07/06/2026 β€” ty for reading, go slay some instrument commands, mwah πŸ’–πŸŽ€πŸ¦‹

πŸ“¦ where this page comes from