SAMPLE_HOLD(9)

πŸ“¦
version 2.9.4 Β· 4 versions
, in ubuntu resolute, ubuntu stonking

✨ 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 the N stands in for the instance number. One per copy you loaded. slay ✨

πŸ’œ PINS πŸ’œ

  • sample-hold.N.in s32 in β€” the s32 value that's coming in. This is the thing being sampled, bestie.
  • sample-hold.N.hold bit in β€” a bit that says whether to hold. That's the whole vibe.
  • sample-hold.N.out s32 out β€” 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