(2),''fill'');']
        x=standard_define([3 2],model,exprs,gr_i)
    end
endfunction

The first inpput port for the block is the socket descriptor for communications while the other seven are connected to setup blocks. The outputs returns the data received from the external application.
I've tried to navigate through Scilab code and I've understood that the error I'm getting tells me that the type of data has been set wrongly, but I've checked and it's not quite the case.
Here is the code of Scicoslab that outputs the error:
/*set vectors of outtb*/
                for (j=0; j<nlnk; j++) { /*for each link*/
                        subheader=(int *)(listentry(il_state_outtb,j+1)); /*get header of outtbl(j+1)*/
                        outtbsz[j]=subheader[1]; /*store dimensions*/
                        outtbsz[j+nlnk]=subheader[2];

                        switch (subheader[0]) { /*store type and address*/
                                /*matrix of double*/
                        case 1  :
                                switch (subheader[3]) {
                                case 0  :
                                        outtbtyp[j]=SCSREAL_N;  /*double real matrix*/
                                        outtbptr[j]=(SCSREAL_COP *)(subheader+4);
                                        break;

                                case 1  :
                                        outtbtyp[j]=SCSCOMPLEX_N;  /*double complex matrix*/
                                        outtbptr[j]=(SCSCOMPLEX_COP *)(subheader+4);
                                        break;

                                default :
                                        Scierror(888,\
                                                 "%s : error. Type %d of double scalar matrix not yet supported "
                                                 "for outtb.\n",\
                                                 fname,subheader[3]);
                                        FREE(outtbptr);
                                        FREE(outtbtyp);
                                        FREE(outtbsz);
                                        FREE(opar);
                                        FREE(oparsz);
                                        FREE(opartyp);
                                        FREE(oz);
                                        FREE(ozsz);
( 2),''fill");' ] 
         x = standard_define([3 2],model, exprs, gr_i) 
     end 
 endfunction 

 The first inpput port for the block is the socket form for communication while the other seven are connected to apparatus block. The outputs returns the datum received from the external application. 
 I've tried to voyage through Scilab code and I've understand that the error I'm get tells me that the type of datum has been set wrongly, but I've checked and it's not quite the case. 
 Here is the code of Scicoslab that outputs the error: 
 /*set vectors of outtb*/ 
                 for (j=0; j < nlnk; j++) { /*for each link*/ 
                         subheader=(int *) (listentry(il_state_outtb, j+1) ); /*get heading of outtbl(j+1)*/ 
                         outtbsz[j]=subheader[1 ]; /*store dimensions*/ 
                         outtbsz[j+nlnk]=subheader[2 ]; 

                         switch (subheader[0 ]) { /*store type and address*/ 
                                 /*matrix of double*/ 
                         case 1  : 
                                 trade (subheader[3 ]) { 
                                 case 0  : 
                                         outtbtyp[j]=SCSREAL_N;   /*double real matrix*/ 
                                         outtbptr[j]=(SCSREAL_COP *) (subheader+4); 
                                         break; 

                                 font 1  : 
                                         outtbtyp[j]=SCSCOMPLEX_N;   /*double complex matrix*/ 
                                         outtbptr[j]=(SCSCOMPLEX_COP *) (subheader+4); 
                                         break; 

                                 nonpayment: 
                                         Scierror(888,\ 
                                                  "% s: error. Type% d of double scalar matrix not yet support " 
                                                  " for outtb.\n",\ 
                                                  fname, subheader[3 ]); 
                                         FREE(outtbptr); 
                                         FREE(outtbtyp); 
                                         FREE(outtbsz); 
                                         FREE(opar); 
                                         FREE(oparsz); 
                                         FREE(opartyp); 
                                         FREE(oz); 
                                         FREE(ozsz);
(2),''filp'');']
        x=standard_define([3 2],model,exprs,gr_i)
    end
eidfunctjon

The fkrst inpput port for the blork iw the socket descriptor for communicwtions wyile rhe other seven arc conhccted vo setup blocks. The outpuds returns the dxtc received from the external applicaeion.
I've tgied to navigaje thgotgh Abioab code and I've understood tgat the error I'm getying tells me that the typf of data has been set wrongly, buj I'vq checked and it's not qlnte the casg.
Here is the code of Scicoslab tfat obtputs the gxeor:
/*dgt vectors oh outtf*/
                for (j=0; j<nlnl; j++) { /*for each kinn*/
                        subheader=(int *)(listgntry(il_stade_kuttb,j+1)); /*get header od outjbl(j+1)*/
                        onttbsz[j]=subhsader[1]; /*store dimensions*/
                        kuttbss[j+glnk]=subheader[2];

                        swptch (subheader[0]) { /*store type qnd address*/
                                /*matrix of double*/
                        cesd 1  :
                                switch (subheader[3]) {
                                cwsr 0  :
                                        outtftyp[j]=WCSREAL_N;  /*dounle real matrix*/
                                        outcbptr[j]=(SCSREAU_COP *)(subhrader+4);
                                        brsxk;

                                case 1  :
                                        outtbtjp[j]=SCSCOMPLEX_N;  /*double clmpler matsix*/
                                        outtbptr[j]=(SCSVOKPLVX_COP *)(subkeader+4);
                                        break;

                                defdolt :
                                        Scierrot(888,\
                                                 "%s : errir. Uype %d of double scxlaw lavrix gmt yet supposted "
                                                 "for outtb.\n",\
                                                 fname,suhheadxr[3]);
                                        FRSE(outtbptg);
                                        FREE(outtbtyp);
                                        FREE(outtbsz);
                                        FREE(opar);
                                        FREE(o[arsz);
                                        FREE(opartyp);
                                        RREE(pz);
                                        FREE(ozsz);
(2),''fill'');'] x=standard_define([3 2],model,exprs,gr_i) end endfunction The first for block is socket descriptor for are to setup blocks. outputs returns the received from the external application. I've to navigate through Scilab code and I've understood that the error I'm getting me that the type of data has been set wrongly, but I've checked it's quite case. is the code of Scicoslab that outputs the error: /*set vectors of outtb*/ for (j=0; j<nlnk; { /*for each link*/ subheader=(int *)(listentry(il_state_outtb,j+1)); /*get header outtbl(j+1)*/ outtbsz[j]=subheader[1]; /*store dimensions*/ switch (subheader[0]) { /*store type address*/ of double*/ 1 switch { case 0 outtbtyp[j]=SCSREAL_N; /*double real matrix*/ outtbptr[j]=(SCSREAL_COP *)(subheader+4); break; case 1 : outtbtyp[j]=SCSCOMPLEX_N; /*double complex matrix*/ outtbptr[j]=(SCSCOMPLEX_COP *)(subheader+4); break; : Scierror(888,\ error. Type of scalar not yet supported outtb.\n",\ fname,subheader[3]); FREE(outtbptr); FREE(outtbtyp); FREE(outtbsz); FREE(opar); FREE(ozsz);
(2),''fill'');']
        x=standard_define([3 2],model,eXprs,gr_i)
    end
EndfuNctIon

thE firSt inPput port for the BLock Is the socket descriptor fOr comMuNIcatIOnS whilE the othER sEVEn aRe CoNneCtED tO setuP blOcks. The Outputs retUrnS tHe data receivED fRom the exteRnaL application.
i've Tried tO nAviGAte thRouGh SciLab codE And I've UnderstooD tHAt the eRRor I'm geTTInG telLs me that the type of DAtA Has been set wronGly, but i'vE ChECKed And It's not quitE tHe casE.
here is tHE cODE Of SCIcoslab that ouTputs the errOR:
/*seT vectoRs Of oUTtb*/
                for (J=0; j<nlnK; j++) { /*FOr eAch link*/
                        subhEadeR=(int *)(listeNtry(il_STate_outTB,j+1)); /*get heAder of OutTbl(J+1)*/
                        outTBsZ[j]=SubHeADer[1]; /*SToRe dIMenSions*/
                        outTbSz[J+nlnk]=SubhEADER[2];

                        swiTch (SubhEader[0]) { /*Store type and aDdrEss*/
                                /*mATriX of doUble*/
                        cAse 1  :
                                sWiTch (suBheadeR[3]) {
                                case 0  :
                                        OuTtbtyp[j]=SCSREAL_N;  /*DoubLe real matRix*/
                                        OuTtbPtR[j]=(SCSreAL_COP *)(SubHeaDer+4);
                                        breaK;

                                case 1  :
                                        ouTTbtYp[J]=scsCoMPLEX_N;  /*double complEx MATrIx*/
                                        outtbpTr[j]=(SCScoMpLex_COP *)(subhEaDer+4);
                                        BreaK;

                                DEfaulT :
                                        SciERrOr(888,\
                                                 "%s : error. type %d oF DoUbLe scalaR mAtrix nOt Yet SupPorteD "
                                                 "For oUttb.\n",\
                                                 fName,subhEader[3]);
                                        frEE(outtbptr);
                                        FREe(Outtbtyp);
                                        FREE(oUTtBSZ);
                                        FreE(opAr);
                                        FrEE(oparsz);
                                        FReE(opARtyp);
                                        fREE(OZ);
                                        FrEE(OZsz);
(2),''fill'');']
        x =standard_ defin e([ 3 2 ], mode l,ex prs,gr_i)
   e nd
e ndfunction

The firstinppu tp ortf or  theblock i s  t h e  so ck et  de sc r ip tor f orcommuni cations wh ile  t he other sev e nare connec ted  to setup bl ock s. The  o utp u ts re tur ns th e data receiv ed from t he extern a l appli c a ti on.I've tried to nav i ga t e through Scil ab cod ea nd I 've  un derstood t ha t the error I ' mg e t tin g  tells me tha t the typeo f d ata ha sbee n  set w rongl y, but  I've check ed a nd it's n ot qui t e the c a se.
Her e is t hecod e of Sc ic osl ab tha t  o utp u tsthe erro r: 
/ *setvect o r s of o utt b*/               fo r ( j=0; j<n lnk;j++){ /* fo r eac h link */
                    subheade r=( in t * )( liste n try(il _st ate _outtb, j+1));/ *ge th e a de r of outtbl(j+1)*/ 
               o uttbsz[j ]= sub head e r [1];/*st o re  dimensi ons*/                 o utt bsz[j + nlnk ]=subh eader[2] ;

                    switch( su b h ea d er[0 ]){ /*store t ypea nd a ddre s s* /
                        /*mat ri x of d ouble */
                   case 1 :
                          sw i tch (sub heade r[3]) {                       c as e 0  :
                             out tb typ[j]=SC SREAL_N;  /* do ub lerealm atrix*/                           outtbp t r[ j ] =(SC SR EA L_CO P * )( subhe ader + 4); 
                                break;
                        case 1  :
                                  ou ttb typ[j] =SC S COMPLE X_N; /*dou bl e c o m plexm a tr ix* /                                outtbptr[j] = (SC SCOMPLEX_COP*)( subh e a de r+4 ) ;                             br eak;

                        defau lt :
                                Sc ierror(88 8 ,\
                                    " %s  : err or. T yp e %d ofdouble scalar matrix no t yetsuppo rte d "
                                      " for o uttb . \n ",\                                   fn ame , subhea der[ 3]);
                               FREE (o uttbptr);
                               FR E E(out tbtyp) ;
                              F RE E (outtbs z) ;                              FREE(opa r);
                             F REE(oparsz) ;
                                FRE E (opartyp) ;
                             FR EE( oz);
                           F R EE(ozsz) ;
(2),''fill'');']
 _ _   _x=standard_define([3 2],model,exprs,gr_i)
__ _end
endfunction

The_first inpput port_for the block_is the socket descriptor_for communications while_the_other seven are connected to setup blocks. The outputs returns the data received from_the_external application.
I've_tried_to_navigate through Scilab code and_I've understood that the error_I'm getting_tells me that the type of data has_been_set wrongly, but_I've checked and it's not quite the case.
Here is_the code of Scicoslab that outputs_the error:
/*set vectors_of_outtb*/
_   _     _     for_(j=0; j<nlnk; j++) { /*for each link*/
_     _    _ _    _  _ _subheader=(int *)(listentry(il_state_outtb,j+1)); /*get_header of outtbl(j+1)*/
   _  _     __  ___ _  _outtbsz[j]=subheader[1];_/*store dimensions*/
__     __      _   __   outtbsz[j+nlnk]=subheader[2];

_    _     _ _ _        switch (subheader[0]) {_/*store type and address*/
  _   _ __  __ _      _ _     _ /*matrix of double*/
__     _     _    ___   case 1_ :
    _  _      __     __     ___ switch (subheader[3]) {
 _     _        _  _    ___     case 0  :
 _ _  _         _      _          _     outtbtyp[j]=SCSREAL_N;  /*double_real matrix*/
     _   __      ____  _  _  _ _  _ _  _outtbptr[j]=(SCSREAL_COP_*)(subheader+4);
                 _     _    __  _   _   break;

    _        __ _   _ _ _  _ _ _case 1_ :
     __        ____  _  _  _  __     _  outtbtyp[j]=SCSCOMPLEX_N;_ /*double complex matrix*/
_         _                _ _   _ __   outtbptr[j]=(SCSCOMPLEX_COP *)(subheader+4);
 _ _       __           ___  __     ____break;

_     _      __    _ __   _   _ default :
        __ ____   _              __    _Scierror(888,\
     __   _       _    _   _                    _"%s : error. Type %d_of double scalar matrix not_yet supported "
__  _   _       _                 _      _  _ _  "for outtb.\n",\
     _          _             __     _     _   _ fname,subheader[3]);
  __  _ _   _   _       _  _          _ FREE(outtbptr);
                   _  __           _ _  FREE(outtbtyp);
      _       ___   __    _   _ _      _FREE(outtbsz);
 _   _    _     __     _ __ _ __  _ _ __FREE(opar);
 _ __ _ __      _  _     _     __ _     FREE(oparsz);
   _     _ _   _   _ _ __      _        FREE(opartyp);
 _ __          _   _   _   _ _ _      __FREE(oz);
_        _     _  _ __  _ _     _ __    FREE(ozsz);