Scilab Function
eng - fr


return_desc_block2 - return the description of the gui of a scicos block

Library

Calling Sequence

txt = return_desc_block2(name,txt_exprs)

Parameters

File content


//return_desc_block2
//fonction qui retourne le titre d'une boite de dialogue
//Entrée name      : le nom du block
//       txt_exprs : expression à exécuter apres le cas define
function txt=return_desc_block2(name,txt_exprs)

 //Disable scilab function protection
 prot=funcprot();
 funcprot(0);

 //load scicos libraries 
 load SCI/macros/scicos/lib
 exec(loadpallibs,-1)
 %scicos_prob=%f;
 alreadyran=%f
 needcompile=4
 //%zoom=1.8;
  
 //redefine getvalue
 getvalue=mgetvalue2;
 
 //retrieve labels of getvalue fonction
 global mydesc
 
 ierror=execstr('blk='+name+'(''define'')','errcatch')
 if ierror<>0 then
    x_message(['Error in GUI function';lasterror()] )
    disp(name)
    fct=[]
    return
 end
        
 execstr(txt_exprs);
 
 ierror=execstr('blk='+name+'(''set'',blk)','errcatch')
 if ierror <>0 then
    x_message(['Error in GUI function';lasterror()] )
    disp(name)
    fct=[]
    return
 end
   
 //restore function protection
 funcprot(prot);
 
 //
 txt=mydesc
 
 clearglobal mydesc
 clearglobal mylables
 clearglobal mytyp
 clearglobal myini
endfunction

Authors

IRCOM Group Alan Layec