diff --git a/install_ccd.sh b/install_ccd.sh new file mode 100755 index 0000000000000000000000000000000000000000..eed25f38dc17b1f3d12a66b556c1e2bea5d2ba49 --- /dev/null +++ b/install_ccd.sh @@ -0,0 +1,3 @@ +#!/bin/bash +sudo python3.11 setup.py install +sudo systemctl restart ccdtr.service diff --git a/install_services_ccd.sh b/install_services_ccd.sh new file mode 100755 index 0000000000000000000000000000000000000000..69f044bbe508892135616aae6211bc3f1d09a528 --- /dev/null +++ b/install_services_ccd.sh @@ -0,0 +1,4 @@ +#!/bin/bash +sudo cp bin/*.service /lib/systemd/system/. +sudo systemctl daemon-reload +sudo systemctl enable ccdtr.service diff --git a/scripts/CCDon.py b/scripts/CCDon.py new file mode 100644 index 0000000000000000000000000000000000000000..f9e68b34aa6ad29c3238fa1bfdb722f5caa7c56e --- /dev/null +++ b/scripts/CCDon.py @@ -0,0 +1,23 @@ +from test_common import * +connect("opc.tcp://localhost:4843/") + +#callmethod("APSCT_off") +#time.sleep(1) +callmethod("CCD_on") +#callmethod("APSCT_160MHz_on") +for x in range(10): + busy=get_value("CCDTR_translator_busy_R") + print(busy) + if not(busy): break + time.sleep(0.1) + +#time.sleep(1) +#callmethod("CLK_PLL_setup") +#exit() +#time.sleep(1) +#callmethod("RCU_on") +#callmethod("RCU_on") +#time.sleep(1) +#callmethod("ADC_on") + +disconnect();