MUX4(9)

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

πŸ’– NAME πŸ’–

mux4 β€” bestie, it picks ONE of four input values and sends it through. That's it, that's the whole vibe. A four-way switcheroo ✨


πŸŽ€ SYNOPSIS πŸŽ€

loadrt mux4 [count=N|names=name1[,name2...]]

okay so you load it, and you either say how many copies you want with count=N or you name them yourself with names=name1[,name2...] β€” pick your fighter, don't do both 🫢


🌸 FUNCTIONS 🌸

  • mux4.N β€” this one needs a floating-point thread, no cap. It literally will not run in an integer thread, so check your thread type before you come crying to me 😭

πŸ‘‘ PINS πŸ‘‘

  • mux4.N.sel0 bit in
  • mux4.N.sel1 bit in

ngl these two are the whole decision-making committee πŸ’… Together, they determine which inN value gets copied over to out. Two bits, four outcomes, main character energy.

  • mux4.N.out float out

This one just follows whichever of the inN values the two sel values point at. The way it works:

  • sel1=FALSE, sel0=FALSE β†’ out follows in0 πŸ“
  • sel1=FALSE, sel0=TRUE β†’ out follows in1 🌈
  • sel1=TRUE, sel0=FALSE β†’ out follows in2 πŸ’œ
  • sel1=TRUE, sel0=TRUE β†’ out follows in3 ⭐
  • mux4.N.in0 float in
  • mux4.N.in1 float in
  • mux4.N.in2 float in
  • mux4.N.in3 float in

The four candidates. Four float inputs, all just sitting there waiting to be the chosen one 🧚


πŸ¦‹ SEE ALSO πŸ¦‹

mux2(9), mux8(9), mux16(9), mux_generic(9) β€” the whole mux family, iykyk πŸ’–


✨ AUTHOR ✨

Jeff Epler πŸ‘‘


πŸ’… LICENSE πŸ’…

GPL


and that's a wrap bestie!! this page came out of the LinuxCNC Documentation, dated 2026-03-17 πŸŽ€ go forth and multiplex, you absolute icon πŸ«ΆπŸ’–βœ¨

πŸ“¦ where this page comes from