Changeset 15052 for trunk/FACT++
- Timestamp:
- 03/13/13 12:47:22 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/scripts/CheckFTU.js
r14763 r15052 3 3 var service_ftm = new Subscription("FTM_CONTROL/FTU_LIST"); 4 4 5 // Make sure that we receive a 'Yes, we are connected ' event5 // Make sure that we receive a 'Yes, we are connected and names are available' event 6 6 service_ftm.get(5000); 7 8 // Wait for the format string to be available9 // FIXME: Timeout10 while (!dim.send("FTM_CONTROL"))11 v8.sleep();12 7 13 8 // Check for all FTUs to be connected when the next event arrives … … 36 31 37 32 // Wait for 1 second for the answer 38 var timeout = new Thread( 1000, function(){ if (service_ftm.isOpen) throw new Error(""); });33 var timeout = new Thread(3000, function(){ if (service_ftm.isOpen) throw new Error("Could not check that all FTUs are ok within 3s."); }); 39 34 while (service_ftm.isOpen) 40 35 v8.sleep();
Note:
See TracChangeset
for help on using the changeset viewer.