GladeVCP HAL pin not found

More
9 years 7 months ago #90120 by Chre9
Hey guys,

I need some help setting up a GladeVCP panel on gmoccapy. I haven't done this before and LinuxCNC can't find the HAL Pin, that should be created by Glade.

I created a panel (status.glade) with 3 LEDs and want to connect the first one to a physical HAL pin. What is the name of the HAL pin, that is created by Glade? gladevcp.hal_led1? Every time I try to open gmocoapy there is an error, that the pin wouldn't exist. I also tried to set the name in hal-pin-changed.

In Ini I use:
EMBED_TAB_NAME = status
EMBED_TAB_LOCATION = box_cooling
EMBED_TAB_COMMAND = gladevcp -x {XID} -H custom_postgui.hal status.glade

Postgui-file includes:
net button_1 gladevcp.hal_led1 <= hm2_5i20.0.gpio.054.in_not

What am I missing?
I hope this is all the relevant information, if you need more just ask ;)

Greetings, Christian

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

More
9 years 7 months ago #90132 by andypugh
Replied by andypugh on topic GladeVCP HAL pin not found
In the custom_postgui HAL file put the line

show pin

right at the top.

Then start LinuxCNC from the command line (command "linuxcnc") and you should get a list of all the pins that exist at that point.

My guess is that the pin in gladevcp.hal-led1 not gladevcp.hal_led1, but this test will confirm.

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

More
9 years 7 months ago #90171 by cmorley
Replied by cmorley on topic GladeVCP HAL pin not found
also check the INI file, under the HAL heading that you are not loading a custom_postgui.hal file there.

That is a common entry but won't work if you wish to load that file through gladevcp.

Chris M
The following user(s) said Thank You: Chre9

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

More
9 years 7 months ago #90172 by cmorley
Replied by cmorley on topic GladeVCP HAL pin not found
I am meaning that you can't load the same HAL file in two places.

Chris M

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

More
9 years 7 months ago #90193 by Chre9
Replied by Chre9 on topic GladeVCP HAL pin not found
custom_postgui.hal is not in the hal heading, so this should not be the problem.

I added "show pin" to the top of the file and as long as I have

#net button_1 gladevcp.hal_led1 <= hm2_5i20.0.gpio.054.in_not

I can see, that the pin is called "status.hal_led1".
The problem is as soon as I remove the # in front of the line linuxcnc crashes again while starting,
telling me, that status.hal_led1 does not exist.

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

More
9 years 7 months ago #90194 by andypugh
Replied by andypugh on topic GladeVCP HAL pin not found

Chre9 wrote: et button_1 gladevcp.hal_led1 <= hm2_5i20.0.gpio.054.in_not

I can see, that the pin is called "status.hal_led1".
The problem is as soon as I remove the # in front of the line linuxcnc crashes again while starting,
telling me, that status.hal_led1 does not exist.


Some confusion here.

The HAL line that is commented out does not reference a pin called "status.hal_led1" it references one called "gladevcp.hal_led1". It is very unlikely that uncommenting a line in HAL will cause an error message to appear that references a pin that is not part of the commented-out line.

What happens if you edit that HAL line to refer to status.hal_led1 and then uncomment it?

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

Moderators: HansU
Time to create page: 0.145 seconds
Powered by Kunena Forum