hal und postgui.hal Timing with extra Panel

More
27 May 2019 20:29 #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:
# 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:
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:
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 or Create an account to join the conversation.

More
28 May 2019 03:27 #135112 by cmorley
please post your config files.

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

More
28 May 2019 04:46 #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 or Create an account to join the conversation.

More
28 May 2019 20:30 #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 or Create an account to join the conversation.

Moderators: newbynobiHansU
Time to create page: 0.061 seconds
Powered by Kunena Forum