- Timestamp:
- 02/13/15 12:52:51 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/scripts/takeRun.js
r17926 r18128 133 133 time = -1; 134 134 135 var custom = typeof(type)=="function"; 136 135 137 var nextrun = sub_startrun.get().obj['next']; 136 dim.log("Take run %3d".$(nextrun)+": N="+count+" T="+time+"s ["+ type+"]");138 dim.log("Take run %3d".$(nextrun)+": N="+count+" T="+time+"s ["+(custom?"custom":type)+"]"); 137 139 138 140 // FIXME: Replace by callback? … … 206 208 { 207 209 if (start) 208 dim.send("MCP/START", time, count, type); 210 { 211 dim.send("MCP/START", time, count, custom?"custom":type); 212 if (custom) 213 type(); 214 } 209 215 210 216 try 211 217 { 212 dim.wait("MCP", "TakingData", 15000);218 dim.wait("MCP", custom?"TriggerOn":"TakingData", 15000); 213 219 break; 214 220 }
Note:
See TracChangeset
for help on using the changeset viewer.