- Posts: 104
- Thank you received: 0
Button on Linuxcnc interface that switches an output on Mesa 7i76e on and off
In my Display Section ii this ->
GLADEVCP= -u ./hitcounter.py /home/cnc/linuxcnc/configs/Fräse/test.ui
BUT i receive the "hitcounter.py" error from my post before
Today i did a Sudo ... update and upgrade. During the upgrade i got these errors. Somewhere there the problem?
Error during glade install
Please Log in to join the conversation.
My Ini already had the POSTGUI_HALFILE = custom_postgui.hal
In my Display Section ii this ->
GLADEVCP= -u ./hitcounter.py /home/cnc/linuxcnc/configs/Fräse/test.ui
BUT i receive the "hitcounter.py" error from my post before
Today i did a Sudo ... update and upgrade. During the upgrade i got these errors. Somewhere there the problem?
Not sure why you keep hacking away at your setup.
Any particular reason for not trying the example.ui I have attached?
Please Log in to join the conversation.
I used this command in the ini/Display for the ui... correct? Itś stored under that folder
GLADEVCP = /home/cnc/linuxcnc/configs/Fräse/example.ui
Still get errors
Please Log in to join the conversation.
custom_postgui.hal:4: setp requires 2 arguments, 1 given
That means you have a very basic error in line 4 of custom_postgui.hal
Please Log in to join the conversation.
But still many errors...
Please Log in to join the conversation.
ok now setp gladevcp.table1 1
ok now net button gladevcp.button1 halui.machine.on
not ok net led halui.machine.is-on gladevcp.led1
The last row still creates an error -> custom_postgui.hal:6: Pin 'halui.machine.is-on' was already linked to signal 'machine-is-on'
This is now correct
setp gladevcp.table1 1
net button gladevcp.button1 halui.machine.on gladevcp.led1
Please Log in to join the conversation.
The last row still creates an error -> custom_postgui.hal:6: Pin 'halui.machine.is-on' was already linked to signal 'machine-is-on'
A bit of HAL backgroumd. A HAL "net" command is the word "net" followed by a "signal name" and one or more HAL pins.
The signal name can be chosen fairly freely, and serves as the reference for interconneting HAL pins. There can be may HAL pins in the same net, but only one of them can be a "writer" (This might typically be called an "output" but that gets a but confusing as physical inputs are "output" HAL pins (they output a value) and physical outputs are "inputs" as they accept a value from output HAL pin)
Back to your error. It means that the HAL pin "halui.machine.is-on" is already connected to a HAL "net" somewhere else in the HAL files, and that it is connected to the net "machine-is-on".
The fix for this is to just use "machine-is-on" as the net name for anything that you want to connect to "halui.machine.is-on"
I can't see your problem HAL line from inside this editor, but if, for example, the line causing the problem was:
(Note that the => <= and <=> don't mean anything to the computer and can be left out, but can help readabilty for humans)
Please Log in to join the conversation.
Please Log in to join the conversation.
Try repeating after typing
Today i did a Sudo ... update and upgrade. During the upgrade i got these errors. Somewhere there the problem?
sudo apt purge raspi-firmware
If you still gets errors, share the output of uname -r as it appears it is trying to install an incorrect kernel version.
Please Log in to join the conversation.
How do i do it?
Please Log in to join the conversation.
