Skip to content
Snippets Groups Projects
Commit 5779e4a1 authored by Jan David Mol's avatar Jan David Mol
Browse files

Added notebook to start all devices known to SC

parent f906862e
No related branches found
No related tags found
No related merge requests found
%% Cell type:code id:social-massachusetts tags:
``` python
def force_start(device):
if device.state() == DevState.FAULT:
device.Off()
if device.state() == DevState.OFF:
device.initialise()
if device.state() == DevState.INIT:
device.Standby()
if device.state() == DevState.STANDBY:
device.On()
return device.state()
```
%% Cell type:code id:defined-apache tags:
``` python
for d in devices:
print("Device %s is now in state %s" % (d, force_start(d)))
```
%% Output
Device PCC(lts/pcc/1) is now in state FAULT
Device SDP(lts/sdp/1) is now in state ON
%% Cell type:code id:superior-wheel tags:
``` python
```
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment