sim_pin(1)
π sim_pin(1) β the LinuxCNC girlies' HAL button board π
okay bestie, sit down, we're doing sim_pin today and it's genuinely one of my faves. it's a lil GUI that shows you your HAL inputs and lets you set them. one or more of them. at once. iconic behavior honestly.
β¨ NAME β¨
sim_pin β a GUI for displaying and setting one or more HAL inputs π
πΈ SYNOPSIS πΈ
sim_pin [Options] name1 [name2 [name3 ...]]
Options:
--help (shows help text)
--title title_string
so for bit items specifically, the name can carry a /mode= specifier on the end, like this:
namei/mode=[pulse | toggle | hold]
and if you don't say anything? default is toggle, no thoughts head empty, that's just how it is π
π¦ DESCRIPTION π¦
HAL boolean items (aka bit) and numerical items (u32, s32, float) are both supported. the whole squad.
if the named input is a numerical type, the GUI shows you:
- Entry β an Entry widget for a value, or for a valid Tcl expression π
- Set β a Pushbutton that sets the new value from the Entry (or you can just hit
<RETURN>, same energy) - Reset β a Pushbutton that resets back to the value that was there when everything started up
if the input is a bit type, you get a single pushbutton instead, and it's controlled by radio-button selectors:
mode=pulseβ pulses the input to 1 on every pushbutton press β‘mode=toggleβ toggles the input on every pushbutton press πmode=holdβ sets the input to 1 while the pushbutton is held down π«³
and here's a lil secret: if the bit item's mode starts with an uppercase letter, the radio buttons for picking other modes just don't show up. lowkey exclusive. main character mode only.
π NOTE π
LinuxCNC or a standalone HAL application has to be running. like, it must. this is non-negotiable bestie, no HAL no party π
also a named item can be a pin, a param, or a signal. but it has to be writable, and the rules are:
- pin β has to be
INorI/O(and not connected to a signal that has a writer, ok?? not connected, periodt) - param β has to be
RW - signal β has to be connected to a writable pin
π USAGE π
you can run sim_pin interactively from a shell command line, or you can have it start automatically from a configuration INI file. both are valid, both are slay.
β EXAMPLE β
here's the INI file usage vibe:
[APPLICATIONS]
DELAY = 5
APP = sim_pin \
halui.machine.off/mode=pulse \
ini.traj_arc_blend_enable \
motion-command-handler-tmax
look at those three items getting set up at once. multitasking queen π
and that's the whole page bestie!! this one came from the LinuxCNC Documentation crew, dated 2014-12-18 β so yeah, it's been serving since 2014 and it's still eating. go press some buttons, you got this πβ¨ππ¦πΈπ
π«Ά
π¦ where this page comes from
- debian bookworm: linuxcnc-uspace 2.9.0~pre1+git20230208.f1270d6ed7-1+deb12u2 Β· GFDL-1.1-or-later
- debian trixie: linuxcnc-uspace 1:2.9.4-2+deb13u1 Β· GFDL-1.1-or-later
- ubuntu questing: linuxcnc-uspace 1:2.9.4-2ubuntu2
- ubuntu resolute: linuxcnc-uspace 1:2.9.4-2ubuntu4 Β· GFDL-1.1-or-later
- ubuntu stonking: linuxcnc-uspace 1:2.9.4-2ubuntu4 Β· GFDL-1.1-or-later
- Copyright (c) 2014 Dewey Garrett
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms