PYVCP format help
22 Apr 2011 22:31 #9271
by piasdom
Replied by piasdom on topic Re:PYVCP format help
and i'm guessing i can't connect pins/signals in sim mode(at home)
Please Log in or Create an account to join the conversation.
22 Apr 2011 22:40 #9272
by BigJohnT
Replied by BigJohnT on topic Re:PYVCP format help
Sure, if they are there and not connected to something already... It helps to look in Show Hal Configuration in Axis to see if the pin is there and if it is connected to something.
John
John
Please Log in or Create an account to join the conversation.
22 Apr 2011 23:52 #9276
by piasdom
Replied by piasdom on topic Re:PYVCP format help
i tried to connect to the pins, said not there. will
try again as i know i can't make the same mistake twice. )
try again as i know i can't make the same mistake twice. )
Please Log in or Create an account to join the conversation.
23 Apr 2011 01:11 #9277
by piasdom
Replied by piasdom on topic Re:PYVCP format help
ok, from what ya'll taught me, this should work i have HALUI = halui, PYVCP = MyVCP.xml
and HALFILE = MyVCP.xml in my ini file. i get the error msg "pyvcp.on-led" doesn't exist.
what am i missing ? i moved PYVCP and HALUI around in the ini file thinking one needs to
be first. PYVCP is in [DISPLAY] section and HALUI in in[HAL] section. and i have
HALFILE = postgui_custom.hal. .but since it is giving me "doesn't exist" i must have all
this right.
postgui_custom.hal - =
net on-mach pyvcp.on-led halui.machine.is-on
MyVCP.xml =
<led>
<halpin>"on-led"</halpin>
<size>22</size>
<on_color>"green"</on_color>
<off_color>"gray"</off_color>
</led>
and HALFILE = MyVCP.xml in my ini file. i get the error msg "pyvcp.on-led" doesn't exist.
what am i missing ? i moved PYVCP and HALUI around in the ini file thinking one needs to
be first. PYVCP is in [DISPLAY] section and HALUI in in[HAL] section. and i have
HALFILE = postgui_custom.hal. .but since it is giving me "doesn't exist" i must have all
this right.
postgui_custom.hal - =
net on-mach pyvcp.on-led halui.machine.is-on
MyVCP.xml =
<led>
<halpin>"on-led"</halpin>
<size>22</size>
<on_color>"green"</on_color>
<off_color>"gray"</off_color>
</led>
Please Log in or Create an account to join the conversation.
23 Apr 2011 11:06 - 23 Apr 2011 11:14 #9280
by BigJohnT
Replied by BigJohnT on topic Re:PYVCP format help
The xml file is not a hal file it is a pyvcp file and only goes with PYVCP= in the display section.
Take a gander at the sections again in the manual it shows what goes where...
www.linuxcnc.org/docview/html/config_ini_config.html
John
Take a gander at the sections again in the manual it shows what goes where...
www.linuxcnc.org/docview/html/config_ini_config.html
John
Last edit: 23 Apr 2011 11:14 by BigJohnT.
Please Log in or Create an account to join the conversation.
23 Apr 2011 18:40 - 23 Apr 2011 20:46 #9283
by piasdom
Replied by piasdom on topic Re:PYVCP format help
oops, misspoke...
axis.ini =
[DISPLAY]
PYVCP = MyVCP.xml
[HAL]
postgui_custom.hal <
does the file name need to be postgui_ and underscored ?
HALUI = halui
p.s. forgot to state that all the buttons/leds show in axis.
axis.ini =
[DISPLAY]
PYVCP = MyVCP.xml
[HAL]
postgui_custom.hal <
does the file name need to be postgui_ and underscored ?
HALUI = halui
p.s. forgot to state that all the buttons/leds show in axis.
Last edit: 23 Apr 2011 20:46 by piasdom.
Please Log in or Create an account to join the conversation.
23 Apr 2011 21:42 #9284
by BigJohnT
Replied by BigJohnT on topic Re:PYVCP format help
No, but it will never get loaded without the tag.
John
John
Please Log in or Create an account to join the conversation.
23 Apr 2011 23:03 #9285
by piasdom
Replied by piasdom on topic Re:PYVCP format help
tag is there....just missed it here. sorry
axis.ini =
[DISPLAY]
PYVCP = MyVCP.xml
[HAL]
HALFILE = postgui_custom.hal <
does the file name need to be postgui_ and underscored ?
HALUI = halui
axis.ini =
[DISPLAY]
PYVCP = MyVCP.xml
[HAL]
HALFILE = postgui_custom.hal <
does the file name need to be postgui_ and underscored ?
HALUI = halui
Please Log in or Create an account to join the conversation.
23 Apr 2011 23:14 - 23 Apr 2011 23:15 #9287
by BigJohnT
Replied by BigJohnT on topic Re:PYVCP format help
As far as I know it can be anything you desire:
HALFILE = bob.hal
or whatever you like... but if you want to be loaded after the GUI then you have to use a different tag like so
POSTGUI_HALFILE = bob.hal
Short read on that section is here:
www.linuxcnc.org/docview/html/config_ini_config.html#sub:[HAL]-section
John
HALFILE = bob.hal
or whatever you like... but if you want to be loaded after the GUI then you have to use a different tag like so
POSTGUI_HALFILE = bob.hal
Short read on that section is here:
www.linuxcnc.org/docview/html/config_ini_config.html#sub:[HAL]-section
John
Last edit: 23 Apr 2011 23:15 by BigJohnT.
Please Log in or Create an account to join the conversation.
23 Apr 2011 23:23 #9289
by piasdom
Replied by piasdom on topic Re:PYVCP format help
cool... i meant having the "word" POSTGUI_ in the name.
like postgui_whatever.hal
meaning i need the first part(postgui_) in the name.
like postgui_whatever.hal
meaning i need the first part(postgui_) in the name.
Please Log in or Create an account to join the conversation.
Time to create page: 0.079 seconds