Ignore:
Timestamp:
08/19/13 16:38:55 (11 years ago)
Author:
tbretz
Message:
Updated to the recent changes in the feedback (still untested)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/FACT++/scripts/Startup.js

    r16995 r17028  
    217217function makeCurrentCalibration()
    218218{
    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);
    237235}
    238236
     
    260258
    261259service_calibration.close();
     260
     261// ================================================================
     262
     263dim.send("BIAS_CONTROL/SET_EXPERT_MODE", true);
     264dim.send("BIAS_CONTROL/EXPERT_LOAD_MAP_FILE", "/home/fact/operation/GAPDmap_with_spare_module-new.txt");
     265dim.send("BIAS_CONTROL/SET_EXPERT_MODE", false);
     266dim.send("FEEDBACK/ENABLE_OLD_ALGORITHM", false);
    262267
    263268// ================================================================
     
    279284 [ "AGILENT_CONTROL", [ "VoltageOn"                       ] ],
    280285 [ "BIAS_CONTROL",    [ "VoltageOn", "VoltageOff"         ] ],
    281  [ "FEEDBACK",        [ "Connected"                       ] ],
     286 [ "FEEDBACK",        [ "Calibrated"                      ] ],
    282287 [ "RATE_SCAN",       [ "Connected"                       ] ],
    283288 [ "RATE_CONTROL",    [ "Connected"                       ] ],
Note: See TracChangeset for help on using the changeset viewer.