hal und postgui.hal Timing with extra Panel

More
7 years 5 months ago #135088 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:
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.

More
7 years 5 months ago #135112 by cmorley
please post your config files.

Please Log in to join the conversation.

More
7 years 5 months ago #135119 by newbynobi
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

Please Log in to join the conversation.

More
7 years 5 months ago #135191 by MatthiasF1210
Hi Norbert,

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 ;) Thanks a lot Works perfect

Matthias

Please Log in to join the conversation.

Time to create page: 0.094 seconds
Powered by Kunena Forum