wlog_ctxt - write context in log file
wlog_ctxt(u,flag)
- u : integer. a file descriptor
- flag : integer. a flag to set where display the information
- 1 : display informations in the scilab window
- 2 : display informations in a tcl/tk window
//Save context
function wlog_ctxt(u,flag)
tt=">> Context of scicos diagram : \n";
tt=tt+"<scs_m.props.context>\n!\n"
for i=1:size(scs_m.props.context,1)
tt=tt+string(subst_strC(scs_m.props.context(i)))+"\n";
end
tt=tt+"!\n";
mfprintf(u,tt);
if (flag==1) then
printf(tt);
elseif(flag==2) then
ts=msprintf(tt);
put_list(ts);
end
endfunction
IRCOM Group
Alan Layec