Changeset 18731 for trunk/FACT++/scripts
- Timestamp:
- 01/11/17 13:37:20 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/scripts/takeRun.js
r18265 r18731 126 126 } 127 127 128 function takeRun(type, count, time )128 function takeRun(type, count, time, func) 129 129 { 130 130 if (!count) … … 133 133 time = -1; 134 134 135 var custom = typeof(type)=="function";136 137 135 var nextrun = sub_startrun.get().obj['next']; 138 dim.log("Take run %3d".$(nextrun)+": N="+count+" T="+time+"s ["+ (custom?"custom":type)+"]");136 dim.log("Take run %3d".$(nextrun)+": N="+count+" T="+time+"s ["+type+"]"); 139 137 140 138 // FIXME: Replace by callback? … … 209 207 if (start) 210 208 { 211 dim.send("MCP/START", time, count, custom?"custom":type);212 if ( custom)213 type();209 dim.send("MCP/START", time, count, type); 210 if (typeof(func)=="function") 211 func(); 214 212 } 215 213
Note:
See TracChangeset
for help on using the changeset viewer.