GladeVCP HAL pin not found
23 Mar 2017 14:47 #90120
by Chre9
GladeVCP HAL pin not found was created 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![;) ;)](/media/kunena/emoticons/wink.png)
Greetings, Christian
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
![;) ;)](/media/kunena/emoticons/wink.png)
Greetings, Christian
Please Log in or Create an account to join the conversation.
23 Mar 2017 17:32 #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.
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.
24 Mar 2017 03:45 #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
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.
24 Mar 2017 03:46 #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
Chris M
Please Log in or Create an account to join the conversation.
24 Mar 2017 12:30 #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.
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.
24 Mar 2017 12:37 #90194
by andypugh
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?
Replied by andypugh on topic GladeVCP HAL pin not found
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.
24 Mar 2017 12:44 #90195
by Chre9
Replied by Chre9 on topic GladeVCP HAL pin not found
Right, I changed gladevcp.hal_led1 to status.hal_led1 after seeing, that it's the name of the pin.
Sorry for being so unclear!
So if I uncomment it I get the error
Sorry for being so unclear!
So if I uncomment it I get the error
Please Log in or Create an account to join the conversation.
24 Mar 2017 12:47 #90197
by andypugh
Replied by andypugh on topic GladeVCP HAL pin not found
So, it tells you that the pin does exist in the pin list, then tells you that it doesn't exist in an error message?
Are you _absolutely_ sure that the INI file is not referencing the same postgui HAL file?
Maybe change the name of this HAL file, just to be certain.
Are you _absolutely_ sure that the INI file is not referencing the same postgui HAL file?
Maybe change the name of this HAL file, just to be certain.
The following user(s) said Thank You: Chre9
Please Log in or Create an account to join the conversation.
24 Mar 2017 13:10 #90202
by Chre9
Replied by Chre9 on topic GladeVCP HAL pin not found
You were kind of right, the Ini refers to a file called "postgui_call_list.hal", which includes the line "source custom_postgui.hal".
I don't know why it's in there, but it seems to have caused the problem.
I changed the name of the file and it works now.
Thanks for your help!
I don't know why it's in there, but it seems to have caused the problem.
I changed the name of the file and it works now.
Thanks for your help!
![;) ;)](/media/kunena/emoticons/wink.png)
Please Log in or Create an account to join the conversation.
Moderators: HansU
Time to create page: 0.122 seconds