source: trunk/FACT++/ScriptsForDimCtrl/ServiceScripts/PrepareBiasForDataTaking.dim@ 14262

Last change on this file since 14262 was 14196, checked in by Jens Buss, 12 years ago
added error messages and timeouts for awaited states
File size: 1.6 KB
Line 
1#!dimctrl --exec
2
3# ==========================================================================
4# check feedback state before switching BIAS ON and ramping up to nominal Voltage
5# ==========================================================================
6
7> checking feedback state
8.s FEEDBACK 12 10000 60 # Current Control?
9.j 61
10
11:60
12> ===================================================
13> feedback is not in state "CurrentControl"
14>
15> OPERATOR:
16> goto feedback console and check the state of
17> feedback by typing [st] to find out what the
18> current state means and maybe needs to be done
19>
20> this script will wait for state "CurrentControl"
21> ===================================================
22.s FEEDBACK 12 # Current Control?
23
24:61
25> ... Current/Temp control active and voltage output enabled
26
27> switching on bias ...
28BIAS_CONTROL/SET_GLOBAL_DAC 1
29
30> checking biasctrl state
31.s BIAS_CONTROL 9 10000 70 # Voltage ON
32.j 71
33
34:70
35> ===================================================
36> switching on bias not successfull
37> biasctrl is not in state "VoltageOn"
38>
39> OPERATOR:
40> goto biasctrl console and check the state of
41> biasctrl by typing [st] to find out what the
42> current state means and maybe needs to be done
43>
44> this script will wait for state "VoltageOn"
45> ===================================================
46.s BIAS_CONTROL 9 # Voltage ON
47
48:71
49> ...set 1 DAC
50
51.s BIAS_CONTROL 5 # Ramping
52> ...ramping
53.s BIAS_CONTROL 9 # Voltage ON
54> ...bias ON
55
56
57# here one should wait 30..45sec according to TB
58> bias is on, and feedback-program is working, but we wait 45sec for the current readings...
59.w 45000
60> ... done
Note: See TracBrowser for help on using the repository browser.