- Timestamp:
- 06/10/13 11:58:36 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/scripts/Startup.js
r16384 r16790 129 129 130 130 // ----------------------------------------------------------------- 131 // Now we check the clock conditioner 132 // ----------------------------------------------------------------- 133 134 var sub_counter = new Subscription("FTM_CONTROL/COUNTER"); 135 var counter = sub_counter.get(3000, false).counter; 136 dim.send("FTM_CONTROL/REQUEST_STATIC_DATA"); 137 v8.timeout(3000, function() { if (sub_counter.get(0, false).counter>counter) return true; }); 138 if (sub_counter.get(0, false).qos&0x100==0) 139 throw new Error("Clock conditioner not locked."); 140 sub_counter.close(); 141 142 // ----------------------------------------------------------------- 131 143 // Now we can safely try to connect the FAD boards. 132 144 // ----------------------------------------------------------------- … … 218 230 dim.wait("FEEDBACK", "Connected", 60000); 219 231 220 console.out("Calibration took "+(new Date()-now)+"ms");232 console.out("Calibration finished ["+(new Date()-now)+"ms]"); 221 233 222 234 console.out("Wait for voltage to be off"); … … 272 284 [ "LID_CONTROL", [ "Open", "Closed" ] ], 273 285 [ "DRIVE_CONTROL", [ "Armed", "Tracking", "OnTrack", "Locked" ] ], 274 [ "FTM_CONTROL", [ " Idle", "TriggerOn"] ],286 [ "FTM_CONTROL", [ "Valid", "TriggerOn" ] ], 275 287 [ "FAD_CONTROL", [ "Connected", "WritingData" ] ], 276 288 ]; … … 283 295 "happened..."); 284 296 } 285 286
Note:
See TracChangeset
for help on using the changeset viewer.