probe_basic_postgui.hal conflicts with my gamepad*.hal

More
16 Nov 2025 12:02 #338501 by juergen-home
I try to integrate my gamepad (which is working under axis) into Probe Basic.
When I read the error report correct "not: already exists" is the complaint.
I tried to format the not function in an other way in the probe_basic_postgui.hal, but that doesn't work.
Even if I only add a simple halfile = not.hal (instead of gamepad-encoder-16.hal) with a single not function I get an error.

Please Log in or Create an account to join the conversation.

More
16 Nov 2025 12:17 #338502 by Aciera
By default it is not possible to 'loadrt' the same hal component twice.
Try enabling TWOPASS:
linuxcnc.org/docs/html/hal/twopass.html
The following user(s) said Thank You: juergen-home

Please Log in or Create an account to join the conversation.

More
16 Nov 2025 13:20 #338509 by juergen-home
TWOPASS was already on.

Please Log in or Create an account to join the conversation.

More
17 Nov 2025 01:50 #338556 by Lcvette
You're loading not in the main hal file but with only one name (instance), you need to add the complete list of names (each instance it is used) and loadrt not should only be in one hal file.
The following user(s) said Thank You: juergen-home, tommylight

Please Log in or Create an account to join the conversation.

More
22 Nov 2025 17:12 - 22 Nov 2025 18:42 #338981 by juergen-home
Thanks for your help.
I forgott that twopass is not working for POSTGUI_HALFILE.
So I moved the declaration of the "not" function to the core.sim3.hal (which I had to change into the "names=" format) and change the function names accordingly.


in probe_basic_postgui.hal:
comment out:
#loadrt not
#addf not.0 servo-thread
and in core.sim3.hal insert:
loadrt not names=not1
addf not1 servo-thread


in probe_basic_postgui.hal:
comment out:
#net prog-running not.0.in <= halui.program.is-idle
#net cycle-timer time.0.start <= not.0.out
change in:
net prog-running not1.in <= halui.program.is-idle
net cycle-timer time.0.start <= not1.out



in probe_basic_postgui.hal:
# changed due to a conflict
# halui.program.is-paused is used is gamepad-encoder-16.hal and in probe_basic_postgui.hal
#net prog-paused halui.program.is-paused => time.0.pause
net net-halui-program-is-paused => time.0.pause


I have another problem with pb, but in a new thread.
Last edit: 22 Nov 2025 18:42 by juergen-home.

Please Log in or Create an account to join the conversation.

More
22 Nov 2025 18:05 #338987 by Lcvette
great glad you got it sorted out! what thread for the other issue, i do not see it in the qtpyvcp section?

Please Log in or Create an account to join the conversation.

More
22 Nov 2025 18:19 #338988 by juergen-home
Found it out myself: it was: Is it a known problem that in "linuxcnc probe basic sim" jogging is not working after a program was run.

Workaround: clicking the “Manual” button after stop.

Please Log in or Create an account to join the conversation.

More
22 Nov 2025 18:31 #338990 by Lcvette
yeah, think that is all machines, but could be wrong

Please Log in or Create an account to join the conversation.

Moderators: KCJLcvette
Time to create page: 0.096 seconds
Powered by Kunena Forum