/* autogenerated from "macros/Misc/DEBUG.sci" */ function DEBUG() { DEBUG.prototype.get = function DEBUG() { } DEBUG.prototype.set = function DEBUG() { x=arg1; graphics=arg1.graphics; exprs=graphics.exprs; textmp=exprs[2-1]; ok=true; while (1==1) { [txt]=dialog(["Enter scilab instructions for debugging."," Inputs are block and flag, output is block"],textmp); if (txt!=[]) { tt=["block=debug_scicos(block,flag)"]; if (execstr("deff(tt,txt)","errcatch")==0) { warnMode=warning("query"); warning("off"); save(TMPDIR+"/debug_scicos",debug_scicos); warning(warnMode); exprs[2-1]=txt; if ((scicos_debug()!=2&&scicos_debug()!=3)) { scicos_debug(2); } break } else { message(["Error in the instructions",lasterror()]); } } else { ok=false; break } } if (ok) { graphics.exprs=exprs; x.graphics=graphics; } } DEBUG.prototype.define = function DEBUG() { model=scicos_model(); model.sim=list("%debug_scicos",99); model.blocktype="d"; exprs=list("","xcos_debug_gui(flag,block);"); gr_i=[]; x=standard_define([8,2],model,exprs,gr_i); } DEBUG.prototype.details = function DEBUG() { } }