Scilab Function
eng - fr


return_typ_block - return types of the parameters of the gui of a scicos block

Library

Calling Sequence

txt = return_typ_block(name)

Parameters

File content


function txt=return_typ_block(name)

 //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=mgetvalue;
 
 //retrieve labels of getvalue fonction
 global mytyp

 ierror=execstr('blk='+name+'(''define'')','errcatch')
 if ierror<>0 then
    x_message(['Error in GUI function';lasterror()] )
    disp(name)
    fct=[]
    return
 end
        
 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);
 
 if mytyp<>[] then
  for i=1:(size(mytyp)/2)
   txt(i,1)=mytyp(2*i-1);
   txt(i,2)=string(mytyp(2*i));
  end
 else 
  txt(1,1)=[]
  txt(1,2)=[]
 end
 
 clearglobal mydesc
 clearglobal mylables
 clearglobal mytyp
 clearglobal myini
endfunction

Authors

IRCOM Group Alan Layec