- Posts: 1916
- Thank you received: 394
I wonder if this is because you are trying to use data.estopped before the periodic is turned on?
you could check the task state directly through
self.gscreen.emc_status.emcstat.poll()
estop = self.gscreen.emc_status.task_state == self.gscreen.emc_status..emc.STATE_ESTOP
Hope I got that code right...
There may be other ways - I just don't have time to check sorry.
Please Log in or Create an account to join the conversation.
newbynobi wrote:
I wonder if this is because you are trying to use data.estopped before the periodic is turned on?
you could check the task state directly through
self.gscreen.emc_status.emcstat.poll()
estop = self.gscreen.emc_status.task_state == self.gscreen.emc_status..emc.STATE_ESTOP
Hope I got that code right...
There may be other ways - I just don't have time to check sorry.
Hallo Chris,
I found ot that it must be:
Code:self.gscreen.status.emcstat.poll() estop = self.gscreen.status.emcstat.task_state == self.gscreen.status.emc.STATE_ESTOP
to get the correct value.
But I am asking myself, when will periodic begin to run?
I checked the state of self.data.estopped now on_window1.realize() and do get the wrong value. If I get it directly with the code you gave me, I get the correct value.
Should this be corrected in the feature? By running the first periodic from gscreen bevor starting the gui?
Norbert
Norbert
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.