probe_basic_postgui.hal conflicts with my gamepad*.hal

More
11 months 2 weeks ago #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 to join the conversation.

More
11 months 2 weeks ago #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

Please Log in to join the conversation.

More
11 months 2 weeks ago #338509 by juergen-home
TWOPASS was already on.

Please Log in to join the conversation.

More
11 months 2 weeks ago #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.

Please Log in to join the conversation.

More
11 months 1 week ago #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.

Please Log in to join the conversation.

More
11 months 1 week ago #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 to join the conversation.

More
11 months 1 week ago #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 to join the conversation.

More
11 months 1 week ago #338990 by Lcvette
yeah, think that is all machines, but could be wrong

Please Log in to join the conversation.

Time to create page: 0.191 seconds
Powered by Kunena Forum