Shutdown hal runs at startup.
- jyeomans
- Offline
- Junior Member
-
Less
More
- Posts: 24
- Thank you received: 0
02 Mar 2025 02:38 #322986
by jyeomans
Shutdown hal runs at startup. was created by jyeomans
so i have an issue where the shutdown hal is not doing what i need.
i suspect that when i shut down the loadusr python file may be removed befor the comand run?
but in my testin my shutdown file runs at start up too.
from my main hal file.
from my shutdown hal file
i know the setp commands work when i run them form the HAL comand in the Gui.
butt i all so get the data form the shutdown hal at startup. so
i suspect that when i shut down the loadusr python file may be removed befor the comand run?
but in my testin my shutdown file runs at start up too.
from my main hal file.
loadusr -W /home/john/Desktop/DragonCNC2/myMQTT.py
setp myMQTT.shutdown false
from my shutdown hal file
setp myMQTT.shutdown true
i know the setp commands work when i run them form the HAL comand in the Gui.
butt i all so get the data form the shutdown hal at startup. so
Please Log in or Create an account to join the conversation.
- jyeomans
- Offline
- Junior Member
-
Less
More
- Posts: 24
- Thank you received: 0
02 Mar 2025 02:49 #322987
by jyeomans
Replied by jyeomans on topic Shutdown hal runs at startup.
Ok, I used hal show, and I can see that the pin changes just before hal show closes.
So I think that my componit is destroyed before it can fire the message it is designed to do.
not sure how to fix that
So I think that my componit is destroyed before it can fire the message it is designed to do.
not sure how to fix that
Please Log in or Create an account to join the conversation.
- unknown
- Offline
- Elite Member
-
Less
More
- Posts: 194
- Thank you received: 69
02 Mar 2025 06:02 #322994
by unknown
Replied by unknown on topic Shutdown hal runs at startup.
Please Log in or Create an account to join the conversation.
- MaHa
- Offline
- Platinum Member
-
Less
More
- Posts: 413
- Thank you received: 170
02 Mar 2025 08:23 #323001
by MaHa
Replied by MaHa on topic Shutdown hal runs at startup.
Here is an example, how atexit can be applied.
forum.linuxcnc.org/38-general-linuxcnc-q...ting-linuxcnc#178821
forum.linuxcnc.org/38-general-linuxcnc-q...ting-linuxcnc#178821
The following user(s) said Thank You: Aciera, jyeomans
Please Log in or Create an account to join the conversation.
- jyeomans
- Offline
- Junior Member
-
Less
More
- Posts: 24
- Thank you received: 0
02 Mar 2025 13:58 #323016
by jyeomans
Replied by jyeomans on topic Shutdown hal runs at startup.
Im sorry i got a little of target here.
My real questions are: should the shutdown.hal run at start up?
Is this expected behavior?
How fast are loaded user components removed after a shutdown?
Is there a way to pause for a few seconds after the shutdown.hal is called before user components are removed?
All that being said.
Maha thanks for the link. i had missed a python library for at exit. this will almost fix my issue. i had looked at that a while ago to answer other question i had, for got what he was working on.
My real questions are: should the shutdown.hal run at start up?
Is this expected behavior?
How fast are loaded user components removed after a shutdown?
Is there a way to pause for a few seconds after the shutdown.hal is called before user components are removed?
All that being said.
Maha thanks for the link. i had missed a python library for at exit. this will almost fix my issue. i had looked at that a while ago to answer other question i had, for got what he was working on.
Please Log in or Create an account to join the conversation.
Time to create page: 0.066 seconds