SAMPLE_HOLD(9)
β¨ SAMPLE_HOLD(9) β¨
okay bestie, welcome to the sample_hold page β it's a HAL Component and honestly it does exactly what it says on the tin: it samples, and then it holds. iconic behavior fr fr π
It's all about grabbing a value and just... keeping it. No cap.
π NAME π
sample_hold β Sample and Hold π
Like, it samples. And then it holds. Main character energy, truly.
πΈ SYNOPSIS πΈ
loadrt sample_hold [count=N|names=name1[,name2...]]
Load it up with loadrt, and you can either say how many you want with count=N or name them yourself with names=name1[,name2...]. Your call, queen π
π¦ FUNCTIONS π¦
sample-hold.Nβ this is the function, and yes theNstands in for the instance number. One per copy you loaded. slay β¨
π PINS π
sample-hold.N.ins32inβ the s32 value that's coming in. This is the thing being sampled, bestie.sample-hold.N.holdbitinβ a bit that says whether to hold. That's the whole vibe.sample-hold.N.outs32outβ the s32 value going out. The held one. periodt.
π SEE ALSO π
tristate(9)β go read this one too, iykyk π
π AUTHOR π
Stephen Wille Padnos wrote this. absolute legend, we stan π«Ά
π LICENSE π
GPL β free as in freedom, bestie π
okay that's the whole page, you ate that π this was LinuxCNC Documentation dropping knowledge on 2026-03-17, and that's the version we're on. mwah π β¨
π¦ where this page comes from
- 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
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms