How can I continuously run the script on EPIC like it is a strategy in PAC control?
I have tried putting the code with a continuous loop so EPIC can always check the button state and response as programmed.
- when the shell window is opened, the script is running continuously.
- when I close the shell window on my laptop, the script on EPIC stops too.
- EPIC with SSH access
- Python script in the secured area of EPIC
- SSH access from bash terminal on VS code
#ledControl.py import optommp grvEpic = optommp.O22MMP() while True: #check pushbutton on module 0 channel 1 if grvEpic.GetDigitalPointState(0, 1) == 1: grvEpic.SetDigitalPointState(1, 0, 1) #turn on pushbutton LED else : grvEpic.SetDigitalPointState(1, 0, 0) #turn off pushbutton LED grvEpic.close()