Changeset 17028 for trunk/FACT++/scripts/Startup.js
- Timestamp:
- 08/19/13 16:38:55 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/scripts/Startup.js
r16995 r17028 217 217 function makeCurrentCalibration() 218 218 { 219 dim.send("BIAS_CONTROL/SET_GLOBAL_DAC", 1); 220 dim.wait("BIAS_CONTROL", "VoltageOn", 3000); 221 222 var now = new Date(); 223 dim.send("FEEDBACK/CALIBRATE_CURRENTS"); 224 225 // FIXME: Timeout! 226 console.out("Wait for calibration to start"); 227 dim.wait("FEEDBACK", "Calibrating", 5000); 228 229 console.out("Wait for calibration to end"); 230 dim.wait("FEEDBACK", "Connected", 60000); 231 232 console.out("Calibration finished ["+(new Date()-now)+"ms]"); 233 234 console.out("Wait for voltage to be off"); 235 dim.send("BIAS_CONTROL/SET_ZERO_VOLTAGE"); 236 dim.wait("BIAS_CONTROL", "VoltageOff", 5000); 219 dim.send("BIAS_CONTROL/SET_ZERO_VOLTAGE"); 220 dim.wait("BIAS_CONTROL", "VoltageOff", 15000); 221 222 var now = new Date(); 223 dim.send("FEEDBACK/CALIBRATE"); 224 225 console.out("Wait for calibration to start"); 226 dim.wait("FEEDBACK", "Calibrating", 5000); 227 228 console.out("Wait for calibration to end"); 229 dim.wait("FEEDBACK", "Calibrated", 60000); 230 231 console.out("Calibration finished ["+(new Date()-now)+"ms]"); 232 233 console.out("Wait for voltage to be off"); 234 dim.wait("BIAS_CONTROL", "VoltageOff", 5000); 237 235 } 238 236 … … 260 258 261 259 service_calibration.close(); 260 261 // ================================================================ 262 263 dim.send("BIAS_CONTROL/SET_EXPERT_MODE", true); 264 dim.send("BIAS_CONTROL/EXPERT_LOAD_MAP_FILE", "/home/fact/operation/GAPDmap_with_spare_module-new.txt"); 265 dim.send("BIAS_CONTROL/SET_EXPERT_MODE", false); 266 dim.send("FEEDBACK/ENABLE_OLD_ALGORITHM", false); 262 267 263 268 // ================================================================ … … 279 284 [ "AGILENT_CONTROL", [ "VoltageOn" ] ], 280 285 [ "BIAS_CONTROL", [ "VoltageOn", "VoltageOff" ] ], 281 [ "FEEDBACK", [ "C onnected"] ],286 [ "FEEDBACK", [ "Calibrated" ] ], 282 287 [ "RATE_SCAN", [ "Connected" ] ], 283 288 [ "RATE_CONTROL", [ "Connected" ] ],
Note:
See TracChangeset
for help on using the changeset viewer.