[Scilab-users] Small problem with Scilab 6.0.1 code generation

Vilppu vilppu91 at hotmail.com
Tue Feb 26 14:23:46 CET 2019


Hello Samuel,


Samuel GOUGEON wrote
> To once and for all fix this issue in your Scilab 6.0.2 sessions, 
> /provided that you have//
> //write permissions on the Scilab installation directory/, please do the 
> following:
> 
> edit do_compile_superblock42
> // CTRL+F: search the [++"] pattern (without []) and replace ++" => +"
> // Save the file
> predef clear
> Dir = SCI+"/modules/scicos/macros/scicos_scicos";
> genlib("scicos_scicoslib", Dir)

I did as you told with Scilab 6.0.2. I’m using Microsoft Visual Studio 2013
Express as a compiler. Now when I try code generation I don’t get any error
message. From Scilab console:
   Generate a loader file
   Generate a Makefile
   Running the Makefile
   Compilation of Test.c
   Compilation of Test_void_io.c
   Compilation of Test_Cblocks.c
   Building shared library (be patient)
   Generate a cleaner file
Shared archive loaded.
Link done.
 blk  = 

GUI     : Test_c
Graphics: 
          orig = [190,110]
          sz = [100,90]
          exprs = []
          pin = 6
          pout = 7
          pein = []
          peout = []
          gr_i = []
          id = ""
          in_implicit = "E"
          out_implicit = "E"
          in_style =
"ExplicitInputPort;align=left;verticalAlign=middle;spacing=10.0;rotation=0"
          out_style =
"ExplicitOutputPort;align=right;verticalAlign=middle;spacing=10.0;rotation=0"
          in_label = ""
          out_label = ""
          style = "SUPER_f"
Model   : 
          Test type: 4
          in = 1
          in2 = 1
          intyp = 1
          out = 2
          out2 = 1
          outtyp = 1
          evtin = []
          evtout = []
          state = 0
          dstate = [0;0;0;0]
          odstate = list(0,0,[0;0])
          rpar : SuperBlock
          ipar = [2;1;1]
          opar = list()
          blocktype = "c"
          firing = []
          dep_ut = [%t,%t]
          label = ""
          nzcross = 0
          nmode = 0
          equations = list()
          uid = ""

But still the super block doesn’t turn into C block. I also tried with MinGw
toolbox and gcc compiler. Same thing happened.

I also tried this fix with Scilab 6.0.1. Nothing changed there. I still get
the “operation +: Warning adding a matrix with the empty matrix will give an
empty matrix result.” warning three times.



--
Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html



More information about the users mailing list