I have defined a number of background-logic tasks.
Is it possible to stop and start them from within a KAREL program ?
Kind regards
Luc
I have defined a number of background-logic tasks.
Is it possible to stop and start them from within a KAREL program ?
Kind regards
Luc
I don't think stopping an starting is possible, but I have a lot of background tasks that have a first line like :
IF DO[ x ] = OFF JMP LBL[end of program]
So, only when I put output x ON, the task is running.
of course this works with inputs and flags as well.
You can look at $MIX_BG[n].$STATUS to determine the status of a background logic program, where "n" is the # in the background logic list of the program. So then 1= Stopped, 2=Running(normal), 3=Running(Fast), & 4=Error.
But if you look in the variable manual at the $MIX_BG area, it appears all of those are for monitoring, not starting or stopping.
Hi,
Thanks for answering.
I will use the trick with the output to switch on-off my BG task.
Kind regards
Luc
You can look at $MIX_BG[n].$STATUS to determine the status of a background logic program, where "n" is the # in the background logic list of the program. So then 1= Stopped, 2=Running(normal), 3=Running(Fast), & 4=Error.
But if you look in the variable manual at the $MIX_BG area, it appears all of those are for monitoring, not starting or stopping.
So then 1= Stopped, 2=Running(normal), 3=Running(Fast), & 4=Error.
Hello!
I found now in a Programme :
WAIT $MIX_BG[1].$status<>10
Do we have more status than that 4 status 1Stopped, 2 running normal, 3 running fast, 4 error ?
BR