Changeset 15026
- Timestamp:
- 03/11/13 09:40:25 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/scripts/Main.js
r15016 r15026 649 649 dim.wait("DRIVE_CONTROL", "OnTrack", 300000); 650 650 651 OpenLid(); 652 653 service_feedback.voltageOn(); 654 service_feedback.waitForVoltageOn(); 655 651 656 // Checking if system is Ready for Data Taking, which is in this case 652 657 // the same as Ready for RateScan. 653 // 654 // this part might be simply wrong here, since I should be able to expect 655 // the system to be able for data taking. And if not, then it is not here, 656 // to bring the system into a better state, correct? 657 658 // [TB] Either here the system have to be brought to the correct state, or 659 // it has to be ensured that the previous code brought the system to a correct 660 // state. In this case checkStates could be used (but is a bit of obsolete) 661 // Doing non-throwing checks without checking the return value does not make 662 // sense at all. 663 dim.wait("FEEDBACK", "CurrentControl", -100); 664 dim.wait("BIAS_CONTROL", "VoltageOn", -100); 665 dim.wait("FAD_CONTROL", "Connected", -100); 666 667 dim.wait("RATE_SCAN","Connected", 5000); 658 console.out(" Checking states [ratescan]"); 659 var table = 660 [ 661 [ "TNG_WEATHER" ], 662 [ "MAGIC_WEATHER" ], 663 [ "CHAT" ], 664 [ "SMART_FACT" ], 665 [ "DATA_LOGGER", [ "NightlyFileOpen", "WaitForRun", "Logging" ] ], 666 [ "FSC_CONTROL", [ "Connected" ] ], 667 [ "MCP", [ "Idle" ] ], 668 [ "TIME_CHECK", [ "Valid" ] ], 669 [ "PWR_CONTROL", [ "SystemOn" ] ], 670 [ "AGILENT_CONTROL", [ "VoltageOn" ] ], 671 [ "BIAS_CONTROL", [ "VoltageOn", "Ramping" ] ], 672 [ "FEEDBACK", [ "CurrentControl" ] ], 673 [ "RATE_SCAN", [ "Connected" ] ], 674 [ "RATE_CONTROL", [ "Connected", "InProgress" ] ], 675 [ "LID_CONTROL", [ "Open" ] ], 676 [ "DRIVE_CONTROL", [ "Tracking", "OnTrack" ] ], 677 [ "FTM_CONTROL", [ "Idle", ] ], 678 [ "FAD_CONTROL", [ "Connected", "WritingData" ] ], 679 ]; 680 681 if (!checkStates(table)) 682 { 683 throw new Error("Something unexpected has happened. One of the servers"+ 684 "is in a state in which it should not be. Please,"+ 685 "try to find out what happened..."); 686 } 687 688 // Start rate scan 668 689 dim.send("RATE_SCAN/START_THRESHOLD_SCAN", 50, 1000, -10); 669 690
Note:
See TracChangeset
for help on using the changeset viewer.