- Posts: 38
- Thank you received: 0
hal und postgui.hal Timing with extra Panel
- MatthiasF1210
- Topic Author
- Offline
- Junior Member
-
Less
More
7 years 5 months ago #135088
by MatthiasF1210
hal und postgui.hal Timing with extra Panel was created by MatthiasF1210
Hi,
I have a strange behavior with my newly programmed panel.
My panel is a glade panel with a dedicated python panel. Inside the python file are some pins defined:
After starting halscope the pins are visible.
With my postgui halfile the pins are connected as followed:
In my virtual machine linuxcnc is running fine with the panel without errors. If I move the config to my real machine it is not working, with the following error:
So i think there is a different timing on my real machine!
What can I do to be sure that all the python halcomp's are ready before the postgui.hal is loaded?
Thanks
Matthias
I have a strange behavior with my newly programmed panel.
My panel is a glade panel with a dedicated python panel. Inside the python file are some pins defined:
Code:
# Hal Pins Anlegen
self.halcomp = hal.component("serviceCon")
self.halcomp.newpin( "spindle_TS", hal.HAL_S32, hal.HAL_IN)
self.halcomp.newpin( "runTimeOA_TS", hal.HAL_S32, hal.HAL_IN)
self.halcomp.newpin( "totalWayOfTravel", hal.HAL_FLOAT, hal.HAL_IN)
After starting halscope the pins are visible.
With my postgui halfile the pins are connected as followed:
Code:
net saveRT_TS => serviceCon.runTimeOA_TS
net saveST_TS => serviceCon.spindle_TS
net twoTravel => serviceCon.totalWayOfTravel
In my virtual machine linuxcnc is running fine with the panel without errors. If I move the config to my real machine it is not working, with the following error:
Code:
PIN: 'serviceCon.runTimeOA_TS' does not exist
So i think there is a different timing on my real machine!
What can I do to be sure that all the python halcomp's are ready before the postgui.hal is loaded?
Thanks
Matthias
Please Log in to join the conversation.
7 years 5 months ago #135112
by cmorley
Replied by cmorley on topic hal und postgui.hal Timing with extra Panel
please post your config files.
Please Log in to join the conversation.
7 years 5 months ago #135119
by newbynobi
Replied by newbynobi on topic hal und postgui.hal Timing with extra Panel
No need to post your files, as that is a known behavior.
Timing is as follows:
LinuxCNC hal files as per your ini
Postgui.hal
Glade panel
So you need to do the named connections in a separate hal file, witch you load together with the panel . use parameter -H for that purpose within the load line in your ini file.
Norbert
Timing is as follows:
LinuxCNC hal files as per your ini
Postgui.hal
Glade panel
So you need to do the named connections in a separate hal file, witch you load together with the panel . use parameter -H for that purpose within the load line in your ini file.
Norbert
Please Log in to join the conversation.
- MatthiasF1210
- Topic Author
- Offline
- Junior Member
-
Less
More
- Posts: 38
- Thank you received: 0
7 years 5 months ago #135191
by MatthiasF1210
Replied by MatthiasF1210 on topic hal und postgui.hal Timing with extra Panel
Hi Norbert,
Life can be so easy
Thanks a lot Works perfect
Matthias
So you need to do the named connections in a separate hal file, witch you load together with the panel . use parameter -H for that purpose within the load line in your ini file.
Life can be so easy
Matthias
Please Log in to join the conversation.
Time to create page: 0.094 seconds
