mux16 is not working for me

More
1 year 1 month ago #335216 by juergen-home
I'm struggling with mux16, I wanted to implement an decoder for a gamepad.
I although I changed this example code for easy reading and running.

If I use mux8 it is running, if I use mux16 it's not and give me the error: "./mux16.hal:11: parameter or pin 'mux_encoder.in0' not found" . Something there I missed?

mux8
Code:
# ----- # selection of incremental values # ----- loadrt mux8 names=mux_encoder # for  incremental steps addf mux_encoder servo-thread # add these to the servo-thread so it can be used net demo_input joint.0.homed # Set the incremental step values for the mux4 component setp mux_encoder.in0 0        # Increment setp mux_encoder.in1 1        # Increment setp mux_encoder.in2 2        # Increment  setp mux_encoder.in3 3        # Increment setp mux_encoder.in4 4        # Increment  setp mux_encoder.in5 5        # Increment  setp mux_encoder.in6 6        # Jog setp mux_encoder.in7 7        # Jog #setp mux_encoder.in8 8        # Jog #setp mux_encoder.in9 9        # Jog #setp mux_encoder.in10 10    # Jog #setp mux_encoder.in11 11    # Jog #setp mux_encoder.in12 12    # Jog net mux-set-increment halui.axis.x.increment mux_encoder.out # connect the buttons with the multiplexer net demo_input mux_encoder.sel0 net demo_input mux_encoder.sel1 net demo_input mux_encoder.sel2 #net demo_input mux_encoder.sel3 # -----

mux16
Code:
# ----- # selection of incremental values # ----- loadrt mux16 names=mux_encoder # for  incremental steps addf mux_encoder servo-thread # add these to the servo-thread so it can be used net demo_input joint.0.homed # Set the incremental step values for the mux4 component setp mux_encoder.in0 0        # Increment setp mux_encoder.in1 1        # Increment setp mux_encoder.in2 2        # Increment  setp mux_encoder.in3 3        # Increment setp mux_encoder.in4 4        # Increment  setp mux_encoder.in5 5        # Increment  setp mux_encoder.in6 6        # Jog setp mux_encoder.in7 7        # Jog setp mux_encoder.in8 8        # Jog setp mux_encoder.in9 9        # Jog setp mux_encoder.in10 10    # Jog setp mux_encoder.in11 11    # Jog setp mux_encoder.in12 12    # Jog net mux-set-increment halui.axis.x.increment mux_encoder.out # connect the buttons with the multiplexer net demo_input mux_encoder.sel0 net demo_input mux_encoder.sel1 net demo_input mux_encoder.sel2 net demo_input mux_encoder.sel3 # -----

error log
Code:
Print file information: RUN_IN_PLACE=no LINUXCNC_DIR= LINUXCNC_BIN_DIR=/usr/bin LINUXCNC_TCL_DIR=/usr/lib/tcltk/linuxcnc LINUXCNC_SCRIPT_DIR= LINUXCNC_RTLIB_DIR=/usr/lib/linuxcnc/modules LINUXCNC_CONFIG_DIR= LINUXCNC_LANG_DIR=/usr/lib/tcltk/linuxcnc/msgs INIVAR=inivar HALCMD=halcmd LINUXCNC_EMCSH=/usr/bin/wish8.6 LINUXCNC - 2.9.4 Machine configuration directory is '/home/cnc/linuxcnc/configs/sim.axis' Machine configuration file is 'axis_mm.ini' INIFILE=/home/cnc/linuxcnc/configs/sim.axis/axis_mm.ini VERSION=1.1 PARAMETER_FILE=sim_mm.var TPMOD= HOMEMOD= TASK=milltask HALUI=halui DISPLAY=axis COORDINATES=X Y Z KINEMATICS=trivkins Starting LinuxCNC... Starting LinuxCNC server program: linuxcncsvr Loading Real Time OS, RTAPI, and HAL_LIB modules Starting LinuxCNC IO program: io Starting HAL User Interface program: halui linuxcnc TPMOD=tpmod HOMEMOD=homemod EMCMOT=motmod Found file(lib): /usr/share/linuxcnc/hallib/core_sim.hal Found file(lib): /usr/share/linuxcnc/hallib/sim_spindle_encoder.hal Found file(lib): /usr/share/linuxcnc/hallib/axis_manualtoolchange.hal Found file(lib): /usr/share/linuxcnc/hallib/simulated_home.hal Found file(REL): ./mux16.hal Shutting down and cleaning up LinuxCNC... Removing HAL_LIB, RTAPI, and Real Time OS modules Removing NML shared memory segments Debug file information: Note: Using POSIX realtime Unexpected realtime delay on task 0 with period 1000000 This Message will only display once per session. Run the Latency Test and resolve before continuing. ./mux16.hal:11: parameter or pin 'mux_encoder.in0' not found 103825 Stopping realtime threads Unloading hal components Note: Using POSIX realtime

 

Please Log in to join the conversation.

More
1 year 1 month ago #335217 by Hakan
Replied by Hakan on topic mux16 is not working for me
Try in00, in01 and so on.

Please Log in to join the conversation.

More
1 year 1 month ago #335218 by juergen-home
Thank you for your fast reply  Now it's working.

setp mux_encoder.in00 0        # Increment
...
setp mux_encoder.in12 12    # Jog

net mux-set-increment halui.axis.x.increment mux_encoder.out-f  <-- and I've forgotten the -f .
 

Please Log in to join the conversation.

More
1 year 1 month ago #335479 by juergen-home
I just found out that I am subscribed to your youtube channel since over 4 years ago. Very interesting videos about your mill and linuxcnc. Thanks a lot.

Please Log in to join the conversation.

Time to create page: 0.614 seconds
Powered by Kunena Forum