Changeset 20082 for trunk/FACT++
- Timestamp:
- 04/19/21 11:20:33 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/scripts/crateReset.js
r18219 r20082 37 37 [ 38 38 [ "MCP" ], 39 [ "F TM_CONTROL" ],39 [ "FPGAFTM_CONTROL" ], 40 40 [ "FAD_CONTROL" ], 41 41 ]; 42 42 if (!checkStates(table, 3000)) 43 throw new Error("Either MCP, F TM_CONTROL or FAD_CONTROL not online.");43 throw new Error("Either MCP, FPGAFTM_CONTROL or FAD_CONTROL not online."); 44 44 45 45 // No data taking should be in progress … … 64 64 [ "MCP", [ "Idle", "Connected" ]], 65 65 [ "FTM_CONTROL", [ "Valid" ] ], 66 [ "FPGAFTM_CONTROL", [ "Valid" ] ], 66 67 [ "FAD_CONTROL", [ "Disengaged", "Disconnected", "Connecting", "Connected" ] ], 67 68 ]; 68 69 if (!checkStates(table, 3000, true)) 69 throw new Error("Either MCP, FTM_CONTROL or FAD_CONTROL not in a state in which it ought to be.");70 throw new Error("Either MCP, FTM_CONTROL, FPGAFTM_CONTROL or FAD_CONTROL not in a state in which it ought to be."); 70 71 71 72 // FTUs must be switched off … … 102 103 103 104 dim.log("Sending reset."); 104 105 dim.send("FTM_CONTROL/FAD_RESET"); 106 /* 105 107 if (cnt==4) 106 108 dim.send("FTM_CONTROL/RESET_CAMERA"); … … 114 116 } 115 117 } 118 */ 119 120 116 121 117 122 // We have to wait a bit
Note:
See TracChangeset
for help on using the changeset viewer.