Hi everyone, I am trying to implement a logic to make sure my program is not running without background program.
Below I have the code that is not working, I've 5 background program, I want to make sure all my task are running.
I've tried manually stopping one of my background program on submit interpreter screen but $PRO_STATE0 variable never changes at all and always stays #P_ACTIVE
Only changes to #P_STOP if all my submit interpreter is stopped.
IF ($PRO_STATE0 <> #P_ACTIVE) THEN
HALT
BRAKE
;BACKGROUND PROGRAM STOPPED RUNNING. PLEASE START BACKGROUND PROGRAM.
ENDIF