Re: [Scilab-users] Scilab 6 issues in building the module
Hi, Thanks for the information, I posted a new bug as http://bugzilla.scilab.org/show_bug.cgi?id=14465 . You could add yourself to the CC list to track this issue. -- Clément Le mardi 15 mars 2016 à 19:49 +0800, Tan Chin Luh a écrit : > Hi, > > Please find below for the details, let me know if I miss anything. > Thanks. > > Regards, > Chin Luh > > In general: > 1. Windows 10 Pro 64 bits > 2. Scilab 6 Beta 1 32 bits > 3. Microsoft Visual Studio 2012 Express > 4. Same configuration works perfectly on Scilab 5.5.2 (both 32 and 64 bits) > on the compilation of > toolbox_skeleton. > The output of ver: > --> ver > ans = > > !Scilab Version: 6.0.0.1455102908 > ! > ! > ! > !Operating System: Windows 8 6.2 > ! > ! > ! > !Java version: 1.8.0_40 > ! > ! > ! > !Java runtime information: Java(TM) SE Runtime Environment (build > 1.8.0_40-b26) ! > ! > ! > !Java Virtual Machine information: Java HotSpot(TM) Client VM (build > 25.40-b25, mixed mode) ! > ! > ! > !Vendor specification: Oracle Corporation > > Output of getdebuginfo() > > --> [dynamic_info, static_info] = getdebuginfo() > static_info = > > !Version: scilab-6.0.0-beta-1 ! > ! ! > !Compilation date: Feb 10 2016 ! > ! ! > !Compilation time: 13:28:04 ! > ! ! > !Compiler Architecture: x86 ! > ! ! > !Compiled with Microsoft compiler (180040629) ! > ! ! > !BLAS library optimized version: MKL ! > ! ! > !XML version: 2.9.1 ! > ! ! > !Tcl/Tk: Enable ! > ! ! > !TCL version: 8.5.9 ! > ! ! > !TK version: 8.5.9 ! > ! ! > !Path separator: ; ! > ! ! > !Directory separator: \ ! > ! ! > !PCRE Version: 8.21 ! > > dynamic_info = > > !Memory in use: 27 > % > ! > ! > > ! > !Total Physical Memory (Kbytes): > 8181612 ! > ! > > ! > !Free Physical Memory (Kbytes): > 5970236 ! > ! > > ! > !Total Paging File (Kbytes): > 9492332 ! > ! > > ! > !Free Paging File (Kbytes): > 6731004 ! > ! > > ! > !Total Virtual Memory (Kbytes): > 2097024 ! > ! > > ! > !Free Virtual Memory (Kbytes): > 961684 ! > ! > > ! > !Free Extended Memory (Kbytes): > 0 ! > ! > > ! > !Operating System: Windows 8 > x64
[Scilab-users] SS modeling using Identification tool box
I could get ARX model using the data generated by first order delay + dead time transfer function model as shown below: //ARX model ID z=poly(0,'z'); h=(0.066/(z-0.934))*(1/z^10) u=zeros(1,200); for i=10:1:100 u(1,i)=1; end for i=101:1:200 u(1,i)=0.5; end t=1:1:200; y=flts(u,tf2ss(h)); //step response plot(t,y,t,u) // figure(2) [m] = arIdent(y,u,y,u,1:4,1:4,0,0:10,0); //[fit, ys] = valSim(m.a, m.b, yv, uv); [fit, ys] = valSim(m.a, m.b, y, u); plot(y); Howeverm using same data, I faced error message if I tried to get SS model with following commnds: //SS Model ID yi=y(1:90);ui=u(1:90); yv=y(91:$);uv=u(91:$); yv=y;uv=u; [m,A,B,C,D,K,R,x0,fit,fitTable] = subspaceIdent(yi,ui,yv,uv,[6:8],[2:4],0,0); [yp x] = lsim(A-K*C,[K B-K*D],C,[zeros(size(D,1),size(yv,2)) D],[yv';uv'],x0); // prediction plot(yv); plot(yp,'-r') [Ds,NUM,chi]=ss2tf(m) subspaceIdent(yi,ui,yv,uv,[6:8],[2:4],0,0); <== This command made following error messages: -->[m,A,B,C,D,K,R,x0,fit,fitTable] = subspaceIdent(yi,ui,yv,uv,[6:8],[2:4],0,0); !--error 27 zero division... at line 13 of function myhouseholder called by : at line 9 of function qrhouse called by : at line 191 of function subid called by : at line 89 of function subspaceIdent called by : i,yv,uv,[6:8],[2:4],0,0) May I ask how I can identify the SS model using this quite simple data set? Y. Noguchi -- View this message in context: http://mailinglists.scilab.org/SS-modeling-using-Identification-tool-box-tp4033740.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. ___ users mailing list users@lists.scilab.org http://lists.scilab.org/mailman/listinfo/users
Re: [Scilab-users] Scilab 6 issues in building the module
Hi, Please find below for the details, let me know if I miss anything. Thanks. Regards, Chin Luh *In general:* 1. Windows 10 Pro 64 bits 2. Scilab 6 Beta 1 32 bits 3. Microsoft Visual Studio 2012 Express 4. Same configuration works perfectly on Scilab 5.5.2 (both 32 and 64 bits) on the compilation of toolbox_skeleton. *The output of ver: * --> ver ans = !Scilab Version: 6.0.0.1455102908 ! ! ! !Operating System: Windows 8 6.2 ! ! ! !Java version: 1.8.0_40 ! ! ! !Java runtime information: Java(TM) SE Runtime Environment (build 1.8.0_40-b26) ! ! ! !Java Virtual Machine information: Java HotSpot(TM) Client VM (build 25.40-b25, mixed mode) ! ! ! !Vendor specification: Oracle Corporation *Output of getdebuginfo()* --> [dynamic_info, static_info] = getdebuginfo() static_info = !Version: scilab-6.0.0-beta-1 ! ! ! !Compilation date: Feb 10 2016 ! ! ! !Compilation time: 13:28:04! ! ! !Compiler Architecture: x86! ! ! !Compiled with Microsoft compiler (180040629) ! ! ! !BLAS library optimized version: MKL ! ! ! !XML version: 2.9.1! ! ! !Tcl/Tk: Enable! ! ! !TCL version: 8.5.9! ! ! !TK version: 8.5.9 ! ! ! !Path separator: ; ! ! ! !Directory separator: \! ! ! !PCRE Version: 8.21! dynamic_info = !Memory in use: 27 % ! ! ! !Total Physical Memory (Kbytes): 8181612 ! ! ! !Free Physical Memory (Kbytes): 5970236 ! ! ! !Total Paging File (Kbytes): 9492332 ! ! ! !Free Paging File (Kbytes): 6731004 ! ! ! !Total Virtual Memory (Kbytes): 2097024 ! ! ! !Free Virtual Memory (Kbytes): 961684 ! ! ! !Free Extended Memory (Kbytes): 0! ! ! !Operating System: Windows 8 x64 ! ! ! !Intel(R) Core(TM) i5 CPU M 560 @ 2.67GHz ! ! ! !Number of processors: 4 ! ! ! !Number of Video cards: 1 ! ! ! !Video card #0: Intel(R) HD Graphics ! ! ! !Primary Video card driver version: 15.201.1151.1010 ! ! ! !Screen size: 1366 x 768 32 bits ! ! ! !Number of Monitors: 1 ! ! ! !Path: D:/Scilab/scilab-6.0.0-beta-32/bin;D:\Scilab\scilab-5.5.2-32\bin;C:\Program Files (x86)\GoldMine! !\;C:\ProgramData\Oracle\Java\javapath;d:\Scilab\scicoslab-4.4.1\bin;C:\Windows\system32;C:\Windows;C:\! !Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\ATI Technolog! !ies\ATI.ACE\Core-Static;C:\Program Files\Microsoft SQL Server\110\Tools\Binn\;C:\cygwin\bin;C:\Program! ! Files (x86)\AMD\ATI.ACE\Core-Static ! ! ! !ComSpec: C:\Windows\system32\cmd.exe ! ! ! !TMP : C:\Users\chinluh\AppData\Local\Temp ! ! ! !TEMP: C:\Users\chinluh\AppData\Local\Temp On 15/3/2016 7:33 PM, Clément David wrote: Hi, Please post a detailed bug with all these information and your configuration. We usually only check the dynamic linking feature with a reduced set of compilers and your configuration might be a not checked one . Thanks in advance, -- Clément David Le mardi 15 mars 2016 à 16:09 +0800, Tan Chin Luh a écrit : Hi again, after looking into more details, I notice that the builder is trying to include some files which are not in the c gateway folder: tbx_build_gateway("skeleton_c", .. ["c_sum","sci_csum", "csci"; ... "c_sub","sci_csub", "csci"; ... "c_multiplybypi","sci_multiplybypi", "csci"; ... "foo","sci_foo", "csci"; ... "c_error","sci_cerror", "csci"; "c_sum6","sci_csum6", "csci6"; ... "c_sub6","sci_csub6", "csci6"; ... "c_multiplybypi6","sci_multiplybypi6", "csci6"; ... "foo6","sci_foo6", "csci6"; ... "c_error6","sci_cerror6", "csci6"], .. ["sci_csum.c","sci_csub.c","sci_multiplybypi.c","sci_foo.c","sci_cerror.c", ... "sci_csum6.c","sci_csub6.c","sci_multiplybypi6.c","sci_foo6.c","sci_cerror6.c"], .. get_absolute_file_path("builder_gateway_c.sce"), .. ["../../src/c/libcsum"], .. "", .. includes_src_c); After removing those files the compilation of the C gateway is successful. tbx_build_gateway("skeleton_c",
Re: [Scilab-users] Scilab 6 issues in building the module
Hi, Please post a detailed bug with all these information and your configuration. We usually only check the dynamic linking feature with a reduced set of compilers and your configuration might be a not checked one . Thanks in advance, -- Clément David Le mardi 15 mars 2016 à 16:09 +0800, Tan Chin Luh a écrit : > Hi again, > > after looking into more details, I notice that the builder is trying to > include some files which > are not in the c gateway folder: > > tbx_build_gateway("skeleton_c", .. > ["c_sum","sci_csum", "csci"; ... > "c_sub","sci_csub", "csci"; ... > "c_multiplybypi","sci_multiplybypi", "csci"; ... > "foo","sci_foo", "csci"; ... > "c_error","sci_cerror", "csci"; > "c_sum6","sci_csum6", "csci6"; ... > "c_sub6","sci_csub6", "csci6"; ... > "c_multiplybypi6","sci_multiplybypi6", "csci6"; ... > "foo6","sci_foo6", "csci6"; ... > "c_error6","sci_cerror6", "csci6"], .. > > ["sci_csum.c","sci_csub.c","sci_multiplybypi.c","sci_foo.c","sci_cerror.c", > ... > > "sci_csum6.c","sci_csub6.c","sci_multiplybypi6.c","sci_foo6.c","sci_cerror6.c"], > .. > get_absolute_file_path("builder_gateway_c.sce"), .. > ["../../src/c/libcsum"], .. > "", .. > includes_src_c); > > > After removing those files the compilation of the C gateway is successful. > > tbx_build_gateway("skeleton_c", .. > ["c_sum","sci_csum", "csci"; ... > "c_sub","sci_csub", "csci"; ... > "c_multiplybypi","sci_multiplybypi", "csci"; ... > "foo","sci_foo", "csci"; ... > "c_error","sci_cerror", "csci";], .. > ["sci_csum.c","sci_csub.c","sci_multiplybypi.c","sci_foo.c","sci_cerror.c"], > .. > get_absolute_file_path("builder_gateway_c.sce"), .. > ["../../src/c/libcsum"], .. > "", .. > includes_src_c); > > > However, now it stopped at cpp gateway building, which point to some error in > the internal.hxx > > Building gateway... > Generate a gateway file > Generate a loader file > Generate a Makefile > Running the makefile > Compilation of sci_cerror.c > Compilation of sci_csub.c > Compilation of sci_csum.c > Compilation of sci_foo.c > Compilation of sci_multiplybypi.c > Compilation of skeleton_c.cpp > Compilation of skeleton_c.h > Compilation of skeleton_c.hxx > Building shared library (be patient) > Generate a cleaner file > Generate a gateway file > Generate a loader file > Generate a Makefile > Running the makefile > Compilation of sci_fsum.c > Compilation of skeleton_fortran.cpp > Compilation of skeleton_fortran.h > Compilation of skeleton_fortran.hxx > Building shared library (be patient) > Generate a cleaner file > Generate a gateway file > Generate a loader file > Generate a Makefile > Running the makefile > Compilation of sci_cpp_find.cxx > Compilation of sci_cpperror.cpp > Compilation of sci_cppfoo.cpp > Compilation of sci_cppmultiplybypi.cpp > Compilation of sci_cppsub.cpp > Compilation of sci_cppsum.cpp > Compilation of skeleton_cpp.cpp > Compilation of skeleton_cpp.h > Compilation of skeleton_cpp.hxx > Building shared library (be patient) > > !- Compile file sci_cpperror.cpp --- > --- ! > ! > > ! > ! IF NOT EXIST Release mkdir > Release ! > ! > > ! > !sci_cpperror.cpp > > ! > ! > > ! > !D:\Scilab\scilab-6.0.0-beta-32\modules\ast\includes\types\internal.hxx(227) > : error C2143: syntax > erro! > !r : missing ',' before > '...' > ! > ! > > ! > !D:\Scilab\scilab-6.0.0-beta-32\modules\ast\includes\types\internal.hxx(228) > : error C2061: syntax > erro! > !r : identifier > 'A' > ! > ! > > ! > !D:\Scilab\scilab-6.0.0-beta-32\modules\ast\includes\types\double.hxx(265) : > error C2780: 'T > *types::In! > !ternalType::checkRef(T *,F)' : expects 2 arguments - 4 > provided ! > ! > > ! > ! > d:\scilab\scilab-6.0.0-beta-32\modules\ast\includes\types\internal.hxx(228) : > see > declaration ! > !of > 'types::InternalType::checkRef'
Re: [Scilab-users] convert Matlab functions to Scilab
Converted from Octave codes, not fully tested Serge Steer Le 11/03/2016 21:50, Philipp Mühlmann a écrit : Just a shot in the blue... does anybody successfully converted the Matlab function maketform.m into Scilab? Best regards, Philipp -- There we have the salad. ___ users mailing list users@lists.scilab.org http://lists.scilab.org/mailman/listinfo/users tform.tar.gz Description: GNU Zip compressed data ___ users mailing list users@lists.scilab.org http://lists.scilab.org/mailman/listinfo/users
Re: [Scilab-users] Scilab 6 issues in building the module
Hi again, after looking into more details, I notice that the builder is trying to include some files which are not in the c gateway folder: tbx_build_gateway("skeleton_c", .. ["c_sum","sci_csum", "csci"; ... "c_sub","sci_csub", "csci"; ... "c_multiplybypi","sci_multiplybypi", "csci"; ... "foo","sci_foo", "csci"; ... "c_error","sci_cerror", "csci"; "c_sum6","sci_csum6", "csci6"; ... "c_sub6","sci_csub6", "csci6"; ... "c_multiplybypi6","sci_multiplybypi6", "csci6"; ... "foo6","sci_foo6", "csci6"; ... "c_error6","sci_cerror6", "csci6"], .. ["sci_csum.c","sci_csub.c","sci_multiplybypi.c","sci_foo.c","sci_cerror.c", ... "sci_csum6.c","sci_csub6.c","sci_multiplybypi6.c","sci_foo6.c","sci_cerror6.c"], .. get_absolute_file_path("builder_gateway_c.sce"), .. ["../../src/c/libcsum"], .. "", .. includes_src_c); After removing those files the compilation of the C gateway is successful. tbx_build_gateway("skeleton_c", .. ["c_sum","sci_csum", "csci"; ... "c_sub","sci_csub", "csci"; ... "c_multiplybypi","sci_multiplybypi", "csci"; ... "foo","sci_foo", "csci"; ... "c_error","sci_cerror", "csci";], .. ["sci_csum.c","sci_csub.c","sci_multiplybypi.c","sci_foo.c","sci_cerror.c"], .. get_absolute_file_path("builder_gateway_c.sce"), .. ["../../src/c/libcsum"], .. "", .. includes_src_c); However, now it stopped at cpp gateway building, which point to some error in the internal.hxx Building gateway... Generate a gateway file Generate a loader file Generate a Makefile Running the makefile Compilation of sci_cerror.c Compilation of sci_csub.c Compilation of sci_csum.c Compilation of sci_foo.c Compilation of sci_multiplybypi.c Compilation of skeleton_c.cpp Compilation of skeleton_c.h Compilation of skeleton_c.hxx Building shared library (be patient) Generate a cleaner file Generate a gateway file Generate a loader file Generate a Makefile Running the makefile Compilation of sci_fsum.c Compilation of skeleton_fortran.cpp Compilation of skeleton_fortran.h Compilation of skeleton_fortran.hxx Building shared library (be patient) Generate a cleaner file Generate a gateway file Generate a loader file Generate a Makefile Running the makefile Compilation of sci_cpp_find.cxx Compilation of sci_cpperror.cpp Compilation of sci_cppfoo.cpp Compilation of sci_cppmultiplybypi.cpp Compilation of sci_cppsub.cpp Compilation of sci_cppsum.cpp Compilation of skeleton_cpp.cpp Compilation of skeleton_cpp.h Compilation of skeleton_cpp.hxx Building shared library (be patient) !- Compile file sci_cpperror.cpp --! ! ! !IF NOT EXIST Release mkdir Release ! ! ! !sci_cpperror.cpp ! ! ! !D:\Scilab\scilab-6.0.0-beta-32\modules\ast\includes\types\internal.hxx(227) : error C2143: syntax erro! !r : missing ',' before '...' ! ! ! !D:\Scilab\scilab-6.0.0-beta-32\modules\ast\includes\types\internal.hxx(228) : error C2061: syntax erro! !r : identifier 'A' ! ! ! !D:\Scilab\scilab-6.0.0-beta-32\modules\ast\includes\types\double.hxx(265) : error C2780: 'T *types::In! !ternalType::checkRef(T *,F)' : expects 2 arguments - 4 provided ! ! ! ! d:\scilab\scilab-6.0.0-beta-32\modules\ast\includes\types\internal.hxx(228) : see declaration ! !of 'types::InternalType::checkRef' ! ! ! !D:\Scilab\scilab-6.0.0-beta-32\modules\ast\includes\types\double.hxx(288) : error C2780: 'T *types::In! !ternalType::checkRef(T *,F)' : expects 2 arguments - 3 provided ! ! ! ! d:\scilab\scilab-6.0.0-beta-32\modules\ast\includes\types\internal.hxx(228) : see declaration ! !of 'types::InternalType::checkRef' ! ! ! !D:\Scilab\scilab-6.0.0-beta-32\modules\ast\includes\types\double.hxx(310) : error C2780: 'T *types::In! !ternalType::checkRef(T *,F)' : expects 2 arguments - 3 provided ! ! ! ! d:\scilab\scilab-6.0.0-beta-32\modules\ast\includes\types\internal.hxx(228) : see declaration ! !of 'types::InternalType::checkRef' ! ! ! !NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\BIN\cl.EXE"' : ret! !urn code '0x2' ! ! ! !Stop. ! at line36 of function dlwCompile ( D:\Scilab\scilab-6.0.0-beta-32\modules\dynamic_link\macros\windows\dlwCompile.sci line 49 ) at line70 of function ilib_compile ( D:\Scilab\scilab-6.0.0-beta-32\modules\dynamic_link\macros\ilib_compile.sci line 86 ) at line 115 of function ilib_build ( D:\Scilab\scilab-6.0.0-beta-32\modules\dynamic_link\macros\ilib_build.sci line 128 ) at line 134 of function tbx_build_gateway( D:\Scilab\scilab-6.0.0-beta-32\modules\modules_manager\macros\tbx_build_gateway.sci line 148 ) at line17 of function