I have multiple port assemblies connected to a port array module. One of my states turns on the port leds, and another state that turns them off. Based on how the task runs it will sometimes end in the state with the leds on and I am wondering how to turn these off automatically within the script.
I know I can do a manual override by typing ['W' 0 0 0 0] into the Bpod console, but would prefer this is done within the script itself. How would I go about shutting these off within the script.
Thank you,
Nick