From sylvestre.ledru at scilab-enterprises.com Fri Jun 1 18:16:42 2012 From: sylvestre.ledru at scilab-enterprises.com (Sylvestre Ledru) Date: Fri, 01 Jun 2012 18:16:42 +0200 Subject: New services: jenkins & scan-build Message-ID: <4FC8EAEA.5070309@scilab-enterprises.com> Hello guys, Here is some new services around Scilab: * http://build.scilab.org/ * http://scan-build.scilab.org/ == http://build.scilab.org/ == Based on Jenkins, this website will regularly check for new changes in the code of Scilab, rebuild the whole code from scratch and performs several tasks. Basically, for each commits in Scilab source tree, we are doing three things: 1) Build Scilab with gcc and OpenJDK (7) http://build.scilab.org/job/scilab-build/ 2) Build Scilab with clang and OpenJDK (7) http://build.scilab.org/job/scilab-build-clang/ For those two, we are running several things: * Building the Scilab doc * we are running all Java tests http://build.scilab.org/job/scilab-build/lastCompletedBuild/testReport/ * we are running the essential Scilab tests and call_scilab examples (no graphical feedback yet) * we are running the Java code coverage http://build.scilab.org/job/scilab-build/cobertura * we build the javadoc http://build.scilab.org/job/scilab-build/javadoc/? * shows some Java warnings: http://build.scilab.org/job/scilab-build/warnings2 3) Build minimal Scilab as describe in the Wiki: http://build.scilab.org/job/scilab-minimal-build/ http://wiki.scilab.org/Description%20of%20configure%20options Here, only essential tests are launched = http://scan-build.scilab.org/ = Build Scilab with scan-build http://build.scilab.org/job/scilab-build-clang-scan-build/ Scan build is a great tool provided with the LLVM & Clang tool chain. It is doing static analyses (ie detect bugs that a normal compiler cannot detect) Results are published here: http://scan-build.scilab.org/ Sylvestre From manasdas17 at gmail.com Wed Jun 6 06:17:20 2012 From: manasdas17 at gmail.com (manas ranjan Das) Date: Wed, 6 Jun 2012 09:47:20 +0530 Subject: Seeks help on preparing help files Message-ID: Hello sir, I am from IIT-Bombay.At present i am developing a toolbox in scilab for communication systems.I need a proper step by step procedure to generate help files.I am facing a lot of difficulty in that.Could you help me in this matter. Regards Manas Das Research Assistant IIT-Bombay -------------- next part -------------- An HTML attachment was scrubbed... URL: From rfabbri at gmail.com Wed Jun 6 14:23:09 2012 From: rfabbri at gmail.com (Ricardo Fabbri) Date: Wed, 6 Jun 2012 09:23:09 -0300 Subject: [Scilab-Dev] Seeks help on preparing help files In-Reply-To: References: Message-ID: Hi, you may take a look at SIP toolbox siptoolbox.sf.net, inside the directory /home/rfabbri/sciprg/toolbx/siptoolbox/help Mr. Pallan Madhavan has been working on several help files for the SIP toobox and can further assist you with the steps. You should also take a look at the toolbox skeleton http://atoms.scilab.org/toolboxes/toolbox_skeleton best regards, Ricardo Fabbri -- Linux registered user #175401 www.lems.brown.edu/~rfabbri pt.wikipedia.org/wiki/IPRJ labmacambira.sf.net On Wed, Jun 6, 2012 at 1:17 AM, manas ranjan Das wrote: > Hello sir, > ???????????? I am from IIT-Bombay.At present i am developing a toolbox in > scilab for > ???????????? communication systems.I need a proper step by step procedure to > generate > ???????????? help files.I am facing a lot of difficulty in that.Could you > help me in this matter. > > > Regards > Manas Das > Research Assistant > IIT-Bombay > From dungnguyenbk at gmail.com Fri Jun 8 13:35:32 2012 From: dungnguyenbk at gmail.com (hehiha) Date: Fri, 8 Jun 2012 04:35:32 -0700 (PDT) Subject: How to used Input/Output functions in new module (external module) Message-ID: <1339155332159-4024319.post@n3.nabble.com> Dear all! I try to development new block for my module. My module use files and input/output functions. in my Computational function file(write by c language). I have code below char* filen = "test.bin"; mopen(filen,'wb'); mput(1996,'l'); mclose(); mopen(filen,'rb'); mclose(); But have error when linking. TOTAL.obj : error LNK2019: unresolved external symbol _mclose referenced in function _TOTAL ! ! ! !TOTAL.obj : error LNK2019: unresolved external symbol _mput referenced in function _TOTAL ! ! ! !TOTAL.obj : error LNK2019: unresolved external symbol _mopen referenced in function _TOTAL ! ! ! !libXCPL_tbx.dll : fatal error LNK1120: 3 unresolved externals ! Do you have solution for this. Could you help me ? Thank you! -- View this message in context: http://mailinglists.scilab.org/How-to-used-Input-Output-functions-in-new-module-external-module-tp4024319.html Sent from the Scilab developers - Mailing Lists Archives mailing list archive at Nabble.com. From allan.cornet at scilab.org Fri Jun 8 13:58:01 2012 From: allan.cornet at scilab.org (Allan CORNET) Date: Fri, 8 Jun 2012 13:58:01 +0200 Subject: [Scilab-Dev] How to used Input/Output functions in new module (external module) In-Reply-To: <1339155332159-4024319.post@n3.nabble.com> References: <1339155332159-4024319.post@n3.nabble.com> Message-ID: <007e01cd456d$f4279900$dc76cb00$@scilab.org> Hi, It seems that you mix C code and Scilab script code in your example. In an C block, you can NOT put Scilab script. You must use a C block or/and a Scilab block. Allan -----Message d'origine----- De?: hehiha [mailto:dungnguyenbk at gmail.com] Envoy??: vendredi 8 juin 2012 13:36 ??: dev at lists.scilab.org Objet?: [Scilab-Dev] How to used Input/Output functions in new module (external module) Dear all! I try to development new block for my module. My module use files and input/output functions. in my Computational function file(write by c language). I have code below char* filen = "test.bin"; mopen(filen,'wb'); mput(1996,'l'); mclose(); mopen(filen,'rb'); mclose(); But have error when linking. TOTAL.obj : error LNK2019: unresolved external symbol _mclose referenced in function _TOTAL ! ! ! !TOTAL.obj : error LNK2019: unresolved external symbol _mput referenced in function _TOTAL ! ! ! !TOTAL.obj : error LNK2019: unresolved external symbol _mopen referenced in function _TOTAL ! ! ! !libXCPL_tbx.dll : fatal error LNK1120: 3 unresolved externals ! Do you have solution for this. Could you help me ? Thank you! -- View this message in context: http://mailinglists.scilab.org/How-to-used-Input-Output-functions-in-new-mod ule-external-module-tp4024319.html Sent from the Scilab developers - Mailing Lists Archives mailing list archive at Nabble.com. -- To unsubscribe from this mailing-list, please send an empty mail to dev-unsubscribe at lists.scilab.org To check the archives of this mailing list, see http://mailinglists.scilab.org/ From dungnguyenbk at gmail.com Mon Jun 11 03:54:09 2012 From: dungnguyenbk at gmail.com (hehiha) Date: Sun, 10 Jun 2012 18:54:09 -0700 (PDT) Subject: Issue with the palette in an Xcos toolbox based on the Xcos skeleton example In-Reply-To: <4F7B8934.3080109@gmail.com> References: <4F7919D9.3090400@gmail.com> <4F7951AB.8070109@scilab-enterprises.com> <4F7B8934.3080109@gmail.com> Message-ID: <1339379649173-4024331.post@n3.nabble.com> I have problem same you. Show I don't know what's tool to draw image same. > [1]: > http://cgit.scilab.org/scilab/plain/scilab/modules/xcos/images/blocks/CSCOPXY.svg > [2]: > http://cgit.scilab.org/scilab/plain/scilab/modules/xcos/images/palettes/CSCOPXY.png I try to draw by scilab. But it's difficult to drawn. Could you tell me method to draw icon for block step by step? -- View this message in context: http://mailinglists.scilab.org/Issue-with-the-palette-in-an-Xcos-toolbox-based-on-the-Xcos-skeleton-example-tp3876681p4024331.html Sent from the Scilab developers - Mailing Lists Archives mailing list archive at Nabble.com. From dungnguyenbk at gmail.com Mon Jun 11 04:29:00 2012 From: dungnguyenbk at gmail.com (hehiha) Date: Sun, 10 Jun 2012 19:29:00 -0700 (PDT) Subject: How to used Input/Output functions in new module (external module) In-Reply-To: <007e01cd456d$f4279900$dc76cb00$@scilab.org> References: <1339155332159-4024319.post@n3.nabble.com> <007e01cd456d$f4279900$dc76cb00$@scilab.org> Message-ID: <1339381740924-4024332.post@n3.nabble.com> Sorry I don't description detail. I try to add new module name write_total. I understand that I must implement 2 file. [1] total.sci in macro folder. function [x,y,typ]=TOTAL(job,arg1,arg2) x=[];y=[];typ=[]; select job case 'plot' then sgn=arg1.model.rpar standard_draw(arg1) case 'getinputs' then [x,y,typ]=standard_inputs(arg1) case 'getoutputs' then [x,y,typ]=standard_outputs(arg1) case 'getorigin' then [x,y]=standard_origin(arg1) case 'set' then x=arg1; graphics=arg1.graphics model=arg1.model exprs=graphics.exprs while %t do [ok,sgn,exprs]=scicos_getvalue('Set sum block parameters',.. 'Inputs ports signs/gain',list('vec',-1),exprs) if ~ok then break end in = -ones(size(sgn,'*'),1) //** Patch: check added [model,graphics,ok] = check_io(model,graphics,in,-1,[],[]); if ok then model.rpar = sgn(:) ; graphics.exprs = exprs ; x.graphics = graphics; x.model = model ; break end end case 'define' then sgn=[1;1] model=scicos_model() model.sim=list('TOTAL',2) model.in=[-1;-1] model.out=-1 model.rpar=sgn model.blocktype='c' model.dep_ut=[%t %f] exprs=sci2exp(sgn) gr_i=['[x,y,typ]=standard_inputs(o) '; 'dd=sz(1)/8,de=0,' 'if ~arg1.graphics.flip then dd=6*sz(1)/8,de=-sz(1)/8,end' 'for k=1:size(x,''*'')'; ' if sgn(k)>0 then'; ' xstring(orig(1)+dd,y(k)-4,''+'')'; ' else'; ' xstring(orig(1)+dd,y(k)-4,''-'')'; ' end'; 'end'; 'xx=sz(1)*[.8 .4 0.75 .4 .8]+orig(1)+de'; 'yy=sz(2)*[.8 .8 .5 .2 .2]+orig(2)'; 'xpoly(xx,yy,''lines'')'] x=standard_define([2 3],model, exprs,gr_i) end endfunction [2] total.c in /src/c folder #include "assert.h" #include "stdio.h" #include "stdlib.h" /** * Check the size of the output and inputs */ #ifndef NDEBUG static void check_size(int insz[], int nin, int outsz[]); #endif //SCICOS_BLOCKS_IMPEXP void TOTAL(int *flag, int *nevprt, double *t, double xd[], void TOTAL(int *flag, int *nevprt, double *t, double xd[], double x[], int *nx, double z[], int *nz, double tvec[], int *ntvec, double rpar[], int *nrpar, int ipar[], int *nipar, double *inptr[], int insz[], int *nin, double *outptr[], int outsz[], int *nout) { int i = 0; int n = 0; double *y; int fd = 0; char* filen = "test.bin"; mopen(filen,'wb'); // Write total input to file mclose(); } I understand that file is c language, and I can use c standard function (ex: stdio, math, stdlib ...). That's right ? So, what's file I can used function "Files : Input/Output functions" of scilab? -- View this message in context: http://mailinglists.scilab.org/How-to-used-Input-Output-functions-in-new-module-external-module-tp4024319p4024332.html Sent from the Scilab developers - Mailing Lists Archives mailing list archive at Nabble.com. From clement.david at scilab-enterprises.com Mon Jun 11 08:49:39 2012 From: clement.david at scilab-enterprises.com (=?ISO-8859-1?Q?Cl=E9ment_DAVID?=) Date: Mon, 11 Jun 2012 08:49:39 +0200 Subject: [Scilab-Dev] RE: How to used Input/Output functions in new module (external module) In-Reply-To: <1339381740924-4024332.post@n3.nabble.com> References: <1339155332159-4024319.post@n3.nabble.com> <007e01cd456d$f4279900$dc76cb00$@scilab.org> <1339381740924-4024332.post@n3.nabble.com> Message-ID: <4FD59503.30806@scilab-enterprises.com> Le 11/06/2012 04:29, hehiha a ?crit : > mopen(filen,'wb'); > // Write total input to file > mclose(); This Scilab functions not native C ones. Use only C functions (eg fopen , fclose) -- Cl?ment DAVID Scilab Enterprises skype://clement_david_scilab From clement.david at scilab-enterprises.com Mon Jun 11 08:51:12 2012 From: clement.david at scilab-enterprises.com (=?ISO-8859-1?Q?Cl=E9ment_DAVID?=) Date: Mon, 11 Jun 2012 08:51:12 +0200 Subject: [Scilab-Dev] Re: Issue with the palette in an Xcos toolbox based on the Xcos skeleton example In-Reply-To: <1339379649173-4024331.post@n3.nabble.com> References: <4F7919D9.3090400@gmail.com> <4F7951AB.8070109@scilab-enterprises.com> <4F7B8934.3080109@gmail.com> <1339379649173-4024331.post@n3.nabble.com> Message-ID: <4FD59560.40206@scilab-enterprises.com> Le 11/06/2012 03:54, hehiha a ?crit : > I have problem same you. > Show I don't know what's tool to draw image same. >> [1]: >> http://cgit.scilab.org/scilab/plain/scilab/modules/xcos/images/blocks/CSCOPXY.svg >> [2]: >> http://cgit.scilab.org/scilab/plain/scilab/modules/xcos/images/palettes/CSCOPXY.png > > I try to draw by scilab. But it's difficult to drawn. > Could you tell me method to draw icon for block step by step? Draw the SVG image using an external editor (we used inkscape) and then drag and drop the block to a diagram and export to the png file. -- Cl?ment DAVID Scilab Enterprises skype://clement_david_scilab From laurent.berger at univ-lemans.fr Mon Jun 11 10:30:46 2012 From: laurent.berger at univ-lemans.fr (laurent berger) Date: Mon, 11 Jun 2012 01:30:46 -0700 (PDT) Subject: StartScilab In-Reply-To: <1338480617567-4024266.post@n3.nabble.com> References: <1338480617567-4024266.post@n3.nabble.com> Message-ID: <1339403446222-4024336.post@n3.nabble.com> I have found an answer to my question First in file .basrc I have add : export $LD_LIBRARY_PATH="..........:/usr/lib/scilab:/usr/lib/jvm/java-1.6.0-open-jdk/jre/lib/i386/client:$LD_LIBRARY_PATH" In source file char *sciPath="/usr/share/scilab"; if ( StartScilab(sciPath,NULL,NULL) == FALSE ) { fprintf(stderr,"Error while calling StartScilab\n"); return -1; }.......... UBUNTU 10.10 scilab 5.2.2 -- View this message in context: http://mailinglists.scilab.org/StartScilab-tp4024266p4024336.html Sent from the Scilab developers - Mailing Lists Archives mailing list archive at Nabble.com. From sumeetsk at gmail.com Mon Jun 11 13:45:38 2012 From: sumeetsk at gmail.com (Sumeet) Date: Mon, 11 Jun 2012 17:15:38 +0530 Subject: [Scilab-Dev] Re: Issue with the palette in an Xcos toolbox based on the Xcos skeleton example In-Reply-To: <1339379649173-4024331.post@n3.nabble.com> References: <4F7919D9.3090400@gmail.com> <4F7951AB.8070109@scilab-enterprises.com> <4F7B8934.3080109@gmail.com> <1339379649173-4024331.post@n3.nabble.com> Message-ID: You could have a look at the dspblock project that I'm working on here: http://forge.scilab.org/index.php/p/dspblock/source/tree/master/ I create images in the images / svg folder using inkscape, and the following code in etc / dspblock.start somehow takes care of the rest. I haven't tried exploring how xcosPalAddBlock works. 39h5Files = gsort(ls(root_tlbx + "/images/h5/*.sod")); 40gifFiles = gsort(ls(root_tlbx + "/images/gif/*." + ["png" "jpg" "gif"])); ? 41svgFiles = gsort(ls(root_tlbx + "/images/svg/*." + ["svg" "png" "jpg" "gif"])); 42 43for i=1:size(h5Files, "*") 44pal = xcosPalAddBlock(pal, h5Files(i), gifFiles(i), svgFiles(i)); 45end On Mon, Jun 11, 2012 at 7:24 AM, hehiha wrote: > I have problem same you. > Show I don't know what's tool to draw image same. > > [1]: > > > http://cgit.scilab.org/scilab/plain/scilab/modules/xcos/images/blocks/CSCOPXY.svg > > [2]: > > > http://cgit.scilab.org/scilab/plain/scilab/modules/xcos/images/palettes/CSCOPXY.png > > I try to draw by scilab. But it's difficult to drawn. > Could you tell me method to draw icon for block step by step? > > > -- > View this message in context: > http://mailinglists.scilab.org/Issue-with-the-palette-in-an-Xcos-toolbox-based-on-the-Xcos-skeleton-example-tp3876681p4024331.html > Sent from the Scilab developers - Mailing Lists Archives mailing list > archive at Nabble.com. > > -- > To unsubscribe from this mailing-list, please send an empty mail to > dev-unsubscribe at lists.scilab.org > To check the archives of this mailing list, see > http://mailinglists.scilab.org/ > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From clement.david at scilab-enterprises.com Mon Jun 11 14:53:58 2012 From: clement.david at scilab-enterprises.com (=?UTF-8?B?Q2zDqW1lbnQgREFWSUQ=?=) Date: Mon, 11 Jun 2012 14:53:58 +0200 Subject: [Scilab-Dev] Re: Issue with the palette in an Xcos toolbox based on the Xcos skeleton example In-Reply-To: References: <4F7919D9.3090400@gmail.com> <4F7951AB.8070109@scilab-enterprises.com> <4F7B8934.3080109@gmail.com> <1339379649173-4024331.post@n3.nabble.com> Message-ID: <4FD5EA66.9050607@scilab-enterprises.com> Hello, Step by step for a MY_BLOCK block: * use inkscape to draw an icon * save it to images/svg/MY_BLOCK.svg * Drag an drop your block into a diagram * check that your icon render well * File->Export to png and save it to images/gif/MY_BLOCK.png That's all. Le 11/06/2012 13:45, Sumeet a ?crit : > You could have a look at the dspblock project that I'm working on here: > http://forge.scilab.org/index.php/p/dspblock/source/tree/master/ > > I create images in the images / svg folder using inkscape, and the > following code in etc / dspblock.start somehow takes care of the rest. I > haven't tried exploring how xcosPalAddBlock works. > > 39 > > h5Files = gsort(ls(root_tlbx + "/images/h5/*.sod")); > 40 > > gifFiles = gsort(ls(root_tlbx + "/images/gif/*." + ["png" "jpg" "gif"]));? > 41 > > svgFiles = gsort(ls(root_tlbx + "/images/svg/*." + ["svg" "png" "jpg" > "gif"])); > 42 > > > 43 > > for i=1:size(h5Files, "*") > 44 > > pal = xcosPalAddBlock(pal, h5Files(i), gifFiles(i), svgFiles(i)); > 45 > > end > > > On Mon, Jun 11, 2012 at 7:24 AM, hehiha > wrote: > > I have problem same you. > Show I don't know what's tool to draw image same. > > [1]: > > > http://cgit.scilab.org/scilab/plain/scilab/modules/xcos/images/blocks/CSCOPXY.svg > > [2]: > > > http://cgit.scilab.org/scilab/plain/scilab/modules/xcos/images/palettes/CSCOPXY.png > > I try to draw by scilab. But it's difficult to drawn. > Could you tell me method to draw icon for block step by step? > > > -- > View this message in context: > http://mailinglists.scilab.org/Issue-with-the-palette-in-an-Xcos-toolbox-based-on-the-Xcos-skeleton-example-tp3876681p4024331.html > Sent from the Scilab developers - Mailing Lists Archives mailing > list archive at Nabble.com. > > -- > To unsubscribe from this mailing-list, please send an empty mail to > dev-unsubscribe at lists.scilab.org > > To check the archives of this mailing list, see > http://mailinglists.scilab.org/ > > -- Cl?ment DAVID Scilab Enterprises skype://clement_david_scilab From sumeetsk at gmail.com Mon Jun 11 19:54:37 2012 From: sumeetsk at gmail.com (Sumeet) Date: Mon, 11 Jun 2012 23:24:37 +0530 Subject: [Scilab-Dev] Re: Issue with the palette in an Xcos toolbox based on the Xcos skeleton example In-Reply-To: <4FD5EA66.9050607@scilab-enterprises.com> References: <4F7919D9.3090400@gmail.com> <4F7951AB.8070109@scilab-enterprises.com> <4F7B8934.3080109@gmail.com> <1339379649173-4024331.post@n3.nabble.com> <4FD5EA66.9050607@scilab-enterprises.com> Message-ID: Thanks Clement. Does this not work in linux? I tried it in Ubuntu 10.04 and 12.04, it didn't work in either. When I drag the svg, it doesn't get dropped in the diagram at all. On Mon, Jun 11, 2012 at 6:23 PM, Cl?ment DAVID < clement.david at scilab-enterprises.com> wrote: > Hello, > > Step by step for a MY_BLOCK block: > * use inkscape to draw an icon > * save it to images/svg/MY_BLOCK.svg > * Drag an drop your block into a diagram > * check that your icon render well > * File->Export to png and save it to images/gif/MY_BLOCK.png > > That's all. > > Le 11/06/2012 13:45, Sumeet a ?crit : > >> You could have a look at the dspblock project that I'm working on here: >> http://forge.scilab.org/index.**php/p/dspblock/source/tree/**master/ >> >> I create images in the images / svg folder using inkscape, and the >> following code in etc / dspblock.start somehow takes care of the rest. I >> haven't tried exploring how xcosPalAddBlock works. >> >> 39 >> > tree/master/etc/dspblock.**start#L39 >> > >> >> h5Files = gsort(ls(root_tlbx + "/images/h5/*.sod")); >> 40 >> > tree/master/etc/dspblock.**start#L40 >> > >> >> gifFiles = gsort(ls(root_tlbx + "/images/gif/*." + ["png" "jpg" "gif"]));? >> 41 >> > tree/master/etc/dspblock.**start#L41 >> > >> >> svgFiles = gsort(ls(root_tlbx + "/images/svg/*." + ["svg" "png" "jpg" >> "gif"])); >> 42 >> > tree/master/etc/dspblock.**start#L42 >> > >> >> 43 >> > tree/master/etc/dspblock.**start#L43 >> > >> >> for i=1:size(h5Files, "*") >> 44 >> > tree/master/etc/dspblock.**start#L44 >> > >> >> pal = xcosPalAddBlock(pal, h5Files(i), gifFiles(i), svgFiles(i)); >> 45 >> > tree/master/etc/dspblock.**start#L45 >> > >> >> end >> >> >> On Mon, Jun 11, 2012 at 7:24 AM, hehiha > > wrote: >> >> I have problem same you. >> Show I don't know what's tool to draw image same. >> > [1]: >> > >> http://cgit.scilab.org/scilab/**plain/scilab/modules/xcos/** >> images/blocks/CSCOPXY.svg >> > [2]: >> > >> http://cgit.scilab.org/scilab/**plain/scilab/modules/xcos/** >> images/palettes/CSCOPXY.png >> >> I try to draw by scilab. But it's difficult to drawn. >> Could you tell me method to draw icon for block step by step? >> >> >> -- >> View this message in context: >> http://mailinglists.scilab.**org/Issue-with-the-palette-in-** >> an-Xcos-toolbox-based-on-the-**Xcos-skeleton-example-** >> tp3876681p4024331.html >> Sent from the Scilab developers - Mailing Lists Archives mailing >> list archive at Nabble.com. >> >> -- >> To unsubscribe from this mailing-list, please send an empty mail to >> dev-unsubscribe at lists.scilab.**org >> >> > >> >> To check the archives of this mailing list, see >> http://mailinglists.scilab.**org/ >> >> >> > > -- > Cl?ment DAVID > Scilab Enterprises > skype://clement_david_scilab > > -- > To unsubscribe from this mailing-list, please send an empty mail to > dev-unsubscribe at lists.scilab.**org > To check the archives of this mailing list, see > http://mailinglists.scilab.**org/ > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From sumeetsk at gmail.com Mon Jun 11 21:26:53 2012 From: sumeetsk at gmail.com (Sumeet) Date: Tue, 12 Jun 2012 00:56:53 +0530 Subject: Writing test diagrams for xcos blocks Message-ID: I'm developing a signal processing blockset for xcos. For each block, I am creating a test diagram in parallel. I've attached a screenshot of my test diagram. As shown in the diagram, I send the matrix output by the block to the workspace, and write notes on the diagram stating the desired values in the matrices. However, this is cumbersome since it requires manual verification by the user. Is there something equivalent to an assert statement in xcos, that lets the user verify whether the block works correctly? Any creative ideas? Sumeet. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: xcos_test.png Type: image/png Size: 156375 bytes Desc: not available URL: From clement.david at scilab-enterprises.com Tue Jun 12 08:06:57 2012 From: clement.david at scilab-enterprises.com (=?ISO-8859-1?Q?Cl=E9ment_DAVID?=) Date: Tue, 12 Jun 2012 08:06:57 +0200 Subject: [Scilab-Dev] Writing test diagrams for xcos blocks In-Reply-To: References: Message-ID: <4FD6DC81.6060901@scilab-enterprises.com> Hi, Take a look at xcos tests :), we use importXcosDiagram and xcos_simulate with diagrams containing a "to workspace" block. Then we check against reference values using the assert functions. -- Cl?ment Le 11/06/2012 21:26, Sumeet a ?crit : > I'm developing a signal processing blockset for xcos. For each block, I > am creating a test diagram in parallel. I've attached a screenshot of my > test diagram. > > As shown in the diagram, I send the matrix output by the block to the > workspace, and write notes on the diagram stating the desired values in > the matrices. However, this is cumbersome since it requires manual > verification by the user. Is there something equivalent to an assert > statement in xcos, that lets the user verify whether the block works > correctly? > > Any creative ideas? > > Sumeet. > > > -- > To unsubscribe from this mailing-list, please send an empty mail to > dev-unsubscribe at lists.scilab.org > To check the archives of this mailing list, see > http://mailinglists.scilab.org/ -- Cl?ment DAVID Scilab Enterprises skype://clement_david_scilab From clement.david at scilab-enterprises.com Tue Jun 12 08:07:59 2012 From: clement.david at scilab-enterprises.com (=?UTF-8?B?Q2zDqW1lbnQgREFWSUQ=?=) Date: Tue, 12 Jun 2012 08:07:59 +0200 Subject: [Scilab-Dev] Re: Issue with the palette in an Xcos toolbox based on the Xcos skeleton example In-Reply-To: References: <4F7919D9.3090400@gmail.com> <4F7951AB.8070109@scilab-enterprises.com> <4F7B8934.3080109@gmail.com> <1339379649173-4024331.post@n3.nabble.com> <4FD5EA66.9050607@scilab-enterprises.com> Message-ID: <4FD6DCBF.3090304@scilab-enterprises.com> Of course yes, did you try with the xcos_toolbox_skeleton template ? It seems to work on my machine. Le 11/06/2012 19:54, Sumeet a ?crit : > Thanks Clement. > > Does this not work in linux? I tried it in Ubuntu 10.04 and 12.04, it > didn't work in either. When I drag the svg, it doesn't get dropped in > the diagram at all. -- Cl?ment DAVID Scilab Enterprises skype://clement_david_scilab From dungnguyenbk at gmail.com Tue Jun 12 05:41:52 2012 From: dungnguyenbk at gmail.com (hehiha) Date: Mon, 11 Jun 2012 20:41:52 -0700 (PDT) Subject: How to used get_scicos_time() functions in new module (external module) Message-ID: <1339472512855-4024348.post@n3.nabble.com> I try to implement a block (ex4) depend on time in external module. In my file /src/c/xcpl_EX4.c I used get_scicos_time() functions to get time when simulator. So this function is not get time of simulator. My file src/c/xcpl_EX4.c #include "scicos_block4.h" #include #include #define Y ((SCSREAL_COP *)GetRealOutPortPtrs(blk, 1)) // parameters #define P1 (GetRparPtrs(blk)[0]) #define P2 (GetRparPtrs(blk)[1]) #define P3 (GetRparPtrs(blk)[2]) #define pi 3.14 void xcpl_EX4(scicos_block *blk, int flag) { double t; double ptr; t = get_scicos_time(); switch (flag) { case Initialization: Y[0] = P1*P2*P3; break; case StateUpdate: Y[0] = 1; break; case Ending: scicos_free(GetWorkPtrs(blk)); break; case OutputUpdate: t=get_scicos_time(); if( t > 100){ Y[0]= 3; }else{ if(Y[0] == P1*P2*P3 ){ Y[0] = P1*P2*P3; }else if(Y[0] > 10) { Y[0] = P1*P2*P3; }else { Y[0]= Y[0]+0.01; } } ptr = Y[0]; break; default: break; } } What's wrong ? -- View this message in context: http://mailinglists.scilab.org/How-to-used-get-scicos-time-functions-in-new-module-external-module-tp4024348.html Sent from the Scilab developers - Mailing Lists Archives mailing list archive at Nabble.com. From sumeetsk at gmail.com Tue Jun 12 13:42:10 2012 From: sumeetsk at gmail.com (Sumeet) Date: Tue, 12 Jun 2012 17:12:10 +0530 Subject: [Scilab-Dev] Writing test diagrams for xcos blocks In-Reply-To: <4FD6DC81.6060901@scilab-enterprises.com> References: <4FD6DC81.6060901@scilab-enterprises.com> Message-ID: Thanks Cl?ment! That helped. On Tue, Jun 12, 2012 at 11:36 AM, Cl?ment DAVID < clement.david at scilab-enterprises.com> wrote: > Hi, > > Take a look at xcos tests :), we use importXcosDiagram and xcos_simulate > with diagrams containing a "to workspace" block. > > Then we check against reference values using the assert functions. > > -- > Cl?ment > > Le 11/06/2012 21:26, Sumeet a ?crit : > >> I'm developing a signal processing blockset for xcos. For each block, I >> am creating a test diagram in parallel. I've attached a screenshot of my >> test diagram. >> >> As shown in the diagram, I send the matrix output by the block to the >> workspace, and write notes on the diagram stating the desired values in >> the matrices. However, this is cumbersome since it requires manual >> verification by the user. Is there something equivalent to an assert >> statement in xcos, that lets the user verify whether the block works >> correctly? >> >> Any creative ideas? >> >> Sumeet. >> >> >> -- >> To unsubscribe from this mailing-list, please send an empty mail to >> dev-unsubscribe at lists.scilab.**org >> To check the archives of this mailing list, see >> http://mailinglists.scilab.**org/ >> > > > -- > Cl?ment DAVID > Scilab Enterprises > skype://clement_david_scilab > > -- > To unsubscribe from this mailing-list, please send an empty mail to > dev-unsubscribe at lists.scilab.**org > To check the archives of this mailing list, see > http://mailinglists.scilab.**org/ > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From sumeetsk at gmail.com Tue Jun 12 14:24:20 2012 From: sumeetsk at gmail.com (Sumeet) Date: Tue, 12 Jun 2012 17:54:20 +0530 Subject: Cannot understand this behavior Message-ID: I'm working on http://forge.scilab.org/index.php/p/dspblock/ When I execute the line toolbox_dir = get_absolute_file_path("builder.sce") on the Scilab workspace, I get the following error: !--error 999 get_absolute_file_path: The file builder.sce is not opened in scilab. However, the same line is present in the file http://forge.scilab.org/index.php/p/dspblock/source/tree/master/builder.sce, and exec builder.sce runs fine without generating any errors. Why do I not get the same error when I run exec bulider.sce? I tried writing my own demos.sce, and when I use get_absolute_file_path, I get the same error get_absolute_file_path: The file demos.sce is not opened in scilab. What is going on? -------------- next part -------------- An HTML attachment was scrubbed... URL: From anubhab91 at gmail.com Thu Jun 14 12:53:30 2012 From: anubhab91 at gmail.com (Anubhab Baksi) Date: Thu, 14 Jun 2012 16:23:30 +0530 Subject: Need help in creating modules Message-ID: Hello all, I am a novice here. Now I am making a small project on Automata. I have written all parts in separate text files, but do not know how to create modules. Will you, please, help me to create it? Thanks. -------------- next part -------------- An HTML attachment was scrubbed... URL: From arvid at softube.com Thu Jun 14 23:37:16 2012 From: arvid at softube.com (=?iso-8859-1?Q?Arvid_Ros=E9n?=) Date: Thu, 14 Jun 2012 23:37:16 +0200 Subject: Error building Metanet for Scilab 5.4 Message-ID: Hi! I just checked out the latest get versions of Scilab and Metanet. Building Scilab works fine, but when I execute builder.sce for Metanet I run into problems. Here are the errors I get: [javac] /Users/arvid/Develop/metanet/src/java/org/scilab/modules/metanet/MetanetTab.java:94: org.scilab.modules.metanet.MetanetTab is not abstract and does not override abstract method getParentWindowId() in org.scilab.modules.gui.tab.Tab [javac] public class MetanetTab extends SwingScilabTab implements Tab { [javac] ^ [javac] /Users/arvid/Develop/metanet/src/java/org/scilab/modules/metanet/MetanetTab.java:705: incompatible types [javac] found : org.scilab.modules.gui.bridge.window.SwingScilabWindow [javac] required: org.scilab.modules.gui.window.Window [javac] final Window configuration = WindowsConfigurationManager.createWindow(DEFAULT_WIN_UUID, false); [javac] ^ [javac] /Users/arvid/Develop/metanet/src/java/org/scilab/modules/metanet/ViewPortTab.java:24: org.scilab.modules.metanet.ViewPortTab is not abstract and does not override abstract method getParentWindowId() in org.scilab.modules.gui.tab.Tab [javac] public final class ViewPortTab extends SwingScilabTab implements Tab { [javac] ^ [javac] /Users/arvid/Develop/metanet/src/java/org/scilab/modules/metanet/ViewPortTab.java:151: incompatible types [javac] found : org.scilab.modules.gui.bridge.window.SwingScilabWindow [javac] required: org.scilab.modules.gui.window.Window [javac] final Window configuration = WindowsConfigurationManager.createWindow(DEFAULT_WIN_UUID, false); [javac] ^ [javac] Note: /Users/arvid/Develop/metanet/src/java/org/scilab/modules/metanet/node/BasicNode.java uses unchecked or unsafe operations. [javac] Note: Recompile with -Xlint:unchecked for details. [javac] 4 errors My platform is Mac OS X 10.7 using latest XCode and Java packages. What can I do to fix this, or does anyone already have a solution? Best regards, Arvid -------------- next part -------------- An HTML attachment was scrubbed... URL: From rei.listas at yahoo.com Sat Jun 16 01:00:29 2012 From: rei.listas at yahoo.com (Reinaldo) Date: Fri, 15 Jun 2012 16:00:29 -0700 (PDT) Subject: Enc: [Ticket#2012053010000018] Optimization on Scilab 5.4.0 (for Mac OS X Lion) In-Reply-To: <1339596781.594475.176216698.7813.9@scilab.org> References: <1338487903.86312.YahooMailNeo@web122504.mail.ne1.yahoo.com><1337947550.60896.YahooMailNeo@web122503.mail.ne1.yahoo.com> <88E06F95423F7547A30B4CE251FFF16FDC41BF@exchangeserver.fcs-digiteotrianglephysique.fr> <1338361312.264043.492092081.7813.8@scilab.org> <1339596781.594475.176216698.7813.9@scilab.org> Message-ID: <1339801229.94211.YahooMailNeo@web122506.mail.ne1.yahoo.com> Dear Scilab Developers, I think that Scilab (version 5.4.0 - alpha - 1) for Mac OS X Lion 10.7.x has bug because it shows error message for linpro function (see below). I really want to run this code on my Mac OS X Lion. It works properly in Scilab 5.3 (for Windows). In case you wish the code file, I could send to you. Thank you in advance. Best Regards, Dr. Reinaldo. ----- Mensagem encaminhada ----- De: Scilab Support Para: Reinaldo Enviadas: Quarta-feira, 13 de Junho de 2012 11:13 Assunto: Re: [Ticket#2012053010000018] Optimization on Scilab 5.4.0 (for Mac OS X Lion) Dear Reinaldo, You should ask your question on the Scilab mailing list: http://www.scilab.org/communities/developer_zone/tools/mailing_list Regards, Scilab Team -- =================================================== The Scilab Consortium Digiteo Domaine de Voluceau Rocquencourt - B.P. 105 78153 Le Chesnay Cedex France =================================================== 01.06.2012 08:53 - Reinaldo a ?crit: Hi Scilab Support, ? I typed at Scilab console: ? -> atomsInstall("quapro") ? And re-started again Scilab. The result is shown as follows: ? ? ? ? ? ? ? ? ? ? scilab-5.4.0-alpha-1 ? ? ? ? ? ? ? ? ? Cons?rcio Scilab (DIGITEO) ? ? ? ? ? ? ? Copyright (c) 1989-2011 (INRIA) ? ? ? ? ?Direitos reservados (c) 1989-2007 (ENPC) ? ? ? ? ___________________________________________ ? ? ? ? ? ? Loading the inicialization: ? carregando o ambiente inicial ? --> ? -->atomsInstall("quapro") ?ans ?= ? !quapro ?1.1-2 ?allusers ?SCI/contrib/quapro/1.1-2 ?I ?! ? ? ? So, seems that quapro is installed without any problem (or warning) ! ? The first time I compile that example10, appears the message like: ? -> ? -->Aeq = [ --> ? ? ? 11 53 5 5 29 1 0 0 0 0 0 0 --> ? ? ? ?3 ?6 5 1 34 0 1 0 0 0 0 0 --> ? ? ? ?1 ?0 0 0 ?0 0 0 1 0 0 0 0 --> ? ? ? ?0 ?1 0 0 ?0 0 0 0 1 0 0 0 --> ? ? ? ?0 ?0 1 0 ?0 0 0 0 0 1 0 0 --> ? ? ? ?0 ?0 0 1 ?0 0 0 0 0 0 1 0 --> ? ? ? ?0 ?0 0 0 ?1 0 0 0 0 0 0 1 --> ? ? ?]; ? ? --> ? -->beq = [40 20 1 1 1 1 1]'; ? ? ? -->c = [-13 -16 -16 -14 -39 0 0 0 0 0 0 0]'; ? ?? ? -->[n,p]=size(Aeq); ? --> ? -->cc = [zeros(p,1);1]; ? -->AAeq = [Aeq,beq-Aeq*ones(p,1)]; ? -->bbeq = beq; ? -->z0 = ones(p+1,1); ? -->zopt=karmarkar(AAeq,bbeq,cc,z0,0,0.99) ?zopt ?= ? ? ? 0.4651227 ? ? ? 0.3447924 ? ? ? 0.4790839 ? ? ? 0.4846474 ? ? ? 0.3723201 ? ? ? 0.9937153 ? ? ? 0.9969277 ? ? ? 0.5348773 ? ? ? 0.6552076 ? ? ? 0.5209161 ? ? ? 0.5153526 ? ? ? 0.6276799 ? ? ? 1.00D-162 ? ? -->x0=zopt(1:p) ? ?x0 ?= ? ? ? 0.4651227 ? ? ? 0.3447924 ? ? ? 0.4790839 ? ? ? 0.4846474 ? ? ? 0.3723201 ? ? ? 0.9937153 ? ? ? 0.9969277 ? ? ? 0.5348773 ? ? ? 0.6552076 ? ? ? 0.5209161 ? ? ? 0.5153526 ? ? ? 0.6276799 ? ? --> ? --> ? -->xopt=karmarkar(Aeq,beq,c,x0,1.e-10,0.999) ? ?xopt ?= ? ? ? 1.0017139 ? ? ? 0.2009097 ? ? ? 0.9994057 ? ? ? 1.0011172 ? ? ? 0.2881802 ? ? ? 1.034D-13 ? ? ? 3.512D-13 ? ? ? 5.532D-16 ? ? ? 0.7990812 ? ? ? 8.466D-15 ? ? ? 8.225D-14 ? ? ? 0.7119165 ? ? --> ? -->f = c'*xopt ? ?f ?= ? ? - 57.481994 ? ? --> ? -->p = [-13 -16 -16 -14 -39]';? ? --> ? -->C = ?[ --> ? ? ? 11 53 5 5 29 --> ? ? ? ?3 ?6 5 1 34 --> ? ? ? ?1 ?0 0 0 ?0 --> ? ? ? ?0 ?1 0 0 ?0 --> ? ? ? ?0 ?0 1 0 ?0 --> ? ? ? ?0 ?0 0 1 ?0 --> ? ? ? ?0 ?0 0 0 ?1 --> ? ? ?]; ? ? ? -->b = [40 20 1 1 1 1 1]'; ? ? --> ? -->ci=[0 0 0 0 0]'; ? ? --> ? -->cs=[%inf %inf %inf %inf %inf]';? ? --> ? -->[x1,lagr,f]=linpro(p,C,b,ci,cs) ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? !--error 4? Invalid variable: linpro ? ? --> ? -->[clean(x1) clean(xopt(1:size(p,1)))] ? ? ? ? ?!--error 4? Invalid variable: x1 ? ? -->a=0;for i=1:size(p,1); a=a+x1(i);end;a? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?!--error 4? Invalid variable: x1 ? ? -->b=0;for i=1:size(p,1); b=b+xopt(i);end;b? ?b ?= ? ? ? 3.4913266 ? ? ? Then, when I re-start the Scilab, the result changes as following described: ? ? ? ? ???___________________________________________ ? ? ? ? ? ? ? ? ? ? ? ? ? ? scilab-5.4.0-alpha-1 ? ? ? ? ? ? ? ? ? Cons?rcio Scilab (DIGITEO) ? ? ? ? ? ? ? Copyright (c) 1989-2011 (INRIA) ? ? ? ? ?Direitos reservados (c) 1989-2007 (ENPC) ? ? ? ? ___________________________________________ ? ? ? ? ? ? Execu??o de inicia??o: ? carregando o ambiente inicial ? Start Quapro toolbox Load macros Load gateways Load help Load demos ? ? --> ? -->Aeq = [ --> ? ? ? 11 53 5 5 29 1 0 0 0 0 0 0 --> ? ? ? ?3 ?6 5 1 34 0 1 0 0 0 0 0 --> ? ? ? ?1 ?0 0 0 ?0 0 0 1 0 0 0 0 --> ? ? ? ?0 ?1 0 0 ?0 0 0 0 1 0 0 0 --> ? ? ? ?0 ?0 1 0 ?0 0 0 0 0 1 0 0 --> ? ? ? ?0 ?0 0 1 ?0 0 0 0 0 0 1 0 --> ? ? ? ?0 ?0 0 0 ?1 0 0 0 0 0 0 1 --> ? ? ?]; ? ? --> ? -->beq = [40 20 1 1 1 1 1]'; ? ? ? -->c = [-13 -16 -16 -14 -39 0 0 0 0 0 0 0]'; ? ?? ? -->[n,p]=size(Aeq); ? --> ? -->cc = [zeros(p,1);1]; ? -->AAeq = [Aeq,beq-Aeq*ones(p,1)]; ? -->bbeq = beq; ? -->z0 = ones(p+1,1); ? -->zopt=karmarkar(AAeq,bbeq,cc,z0,0,0.99) ?zopt ?= ? ? ? 0.4651227 ? ? ? 0.3447924 ? ? ? 0.4790839 ? ? ? 0.4846474 ? ? ? 0.3723201 ? ? ? 0.9937153 ? ? ? 0.9969277 ? ? ? 0.5348773 ? ? ? 0.6552076 ? ? ? 0.5209161 ? ? ? 0.5153526 ? ? ? 0.6276799 ? ? ? 1.00D-162 ? ? -->x0=zopt(1:p) ? ?x0 ?= ? ? ? 0.4651227 ? ? ? 0.3447924 ? ? ? 0.4790839 ? ? ? 0.4846474 ? ? ? 0.3723201 ? ? ? 0.9937153 ? ? ? 0.9969277 ? ? ? 0.5348773 ? ? ? 0.6552076 ? ? ? 0.5209161 ? ? ? 0.5153526 ? ? ? 0.6276799 ? ? --> ? --> ? -->xopt=karmarkar(Aeq,beq,c,x0,1.e-10,0.999) ? ?xopt ?= ? ? ? 1.0017139 ? ? ? 0.2009097 ? ? ? 0.9994057 ? ? ? 1.0011172 ? ? ? 0.2881802 ? ? ? 1.034D-13 ? ? ? 3.512D-13 ? ? ? 5.532D-16 ? ? ? 0.7990812 ? ? ? 8.466D-15 ? ? ? 8.225D-14 ? ? ? 0.7119165 ? ? --> ? -->f = c'*xopt ? ?f ?= ? ? - 57.481994 ? ? --> ? -->p = [-13 -16 -16 -14 -39]';? ? --> ? -->C = ?[ --> ? ? ? 11 53 5 5 29 --> ? ? ? ?3 ?6 5 1 34 --> ? ? ? ?1 ?0 0 0 ?0 --> ? ? ? ?0 ?1 0 0 ?0 --> ? ? ? ?0 ?0 1 0 ?0 --> ? ? ? ?0 ?0 0 1 ?0 --> ? ? ? ?0 ?0 0 0 ?1 --> ? ? ?]; ? ? --> ? --> ? ?? ? -->b = [40 20 1 1 1 1 1]'; ? ? --> ? -->ci=[0 0 0 0 0]'; ? ? --> ? -->cs=[%inf %inf %inf %inf %inf]';? ? --> ? -->[x1,lagr,f]=linpro(p,C,b,ci,cs) ? Warning: /Applications/scilab-5.4.0-alpha-1.app/Contents/MacOS/share/scilab/contrib/quapro/1.1-2/macros/quapro.bin ? ?f ?= ? ? ? 1. ? ?lagr ?= ? ? ? 0. ? ?x1 ?= ? ? ? 0. ? ? Warning: stack problem..., solved ? --> ? -->[clean(x1) clean(xopt(1:size(p,1)))] ?? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? !--error 5? Incoherence column / row dimension. ? ? -->a=0;for i=1:size(p,1); a=a+x1(i);end;a? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?!--error 21? Invalid index. ? ? -->b=0;for i=1:size(p,1); b=b+xopt(i);end;b? ?b ?= ? ? ? 3.4913266 ? ? ? So, it's this ! :-((( ? Seems that "quapro" is not so compatible to Scilab 5.4.0-alpha1 for Mac OS X Lion 10.7.4 (XCode 4.2) :-( ? However, it did not show any error message when it was installed ! ? Thank you in advance ! ? All best, Reinaldo. ? PS: The same file run properly using Scilab 5.3.3 for Windows. ? ? ________________________________ De: Scilab Support Para: rei.listas at yahoo.com Enviadas: Quarta-feira, 30 de Maio de 2012 4:01 Assunto: Re: [Ticket#2012053010000018] Optimization on Scilab 5.4.0 (for Mac OS X Lion) Dear Reinaldo, Linpro is now part of an ATOMS module: http://atoms.scilab.org/toolboxes/quapro Scilab Team -- =================================================== The Scilab Consortium Digiteo Domaine de Voluceau Rocquencourt - B.P. 105 78153 Le Chesnay Cedex France =================================================== De?: Reinaldo [mailto:rei.listas at yahoo.com] Envoy??: vendredi 25 mai 2012 14:06 ??: SABIRON William Objet?: Re: Optimization on Scilab 5.4.0 (for Mac OS X Lion) ? Hi William, ? I sent a mail to Micha?l, but he didn't work on Scilab. That''s a pity ! :-( ? He's good guy and helps me on my doubts on optimization function. ? I would like to know if we could discuss about this issue freely. ? If positive, please answer me why "linpro function" does not work on Scilab 5.4. ? I wrote a program and it ran well on Scilab previous version (i.e., 5.3). However, using Scilab 5.4,? the same program has "errors", as follows: ? // Example 10 - page 80 - "Operations Research: applications and algorithms" (Winston) // PROJECT SELECTION PROBLEM: find the optimum value of following LP model. ? // Maximize 13*x1 + 16*x2 + 16*x3 + 14*x4 + 39*x5 // such as // 11*x1 + 53*x2 + 5*x3 + 5*x4 + 29*x5 <= 40 // 3*x1 + 6*x2 + 5*x3 + x4 + 34*x5 <= 20 // x1 <= 1 // x2 <= 1 // x3 <= 1 // x4 <= 1 // x5 <= 1 // xi >= 0 (i = 1,...,5) ? // Converting to min LP problem ? // Minimize -13*x1 - 16*x2 - 16*x3 - 14*x4 - 39*x5 // such as // 11*x1 + 53*x2 + 5*x3 + 5*x4 + 29*x5 <= 40 // 3*x1 + 6*x2 + 5*x3 + x4 + 34*x5 <= 20 // x1 <= 1 // x2 <= 1 // x3 <= 1 // x4 <= 1 // x5 <= 1 // xi >= 0 (i = 1,...,5) ? // First resolution of LP problem:?? (THIS RESOLUTION WORKED !) ? // You can try the karmarkar function built in Scilab : ? // Use slack variables: ? // Minimize -13*x1 - 16*x2 - 16*x3 - 14*x4 - 39*x5 // such as // 11*x1 + 53*x2 + 5*x3 + 5*x4 + 29*x5 + e1??????????????? = 40 // 3*x1 +?? 6*x2 + 5*x3 +?? x4 + 34*x5 +?? e2????????????? = 20 //?? x1 +??????????????????????????????????? e3??????????? =? 1 //??????????? x2 +???????????????????????????? e4????????? =? 1 //?????????????????? x3 +??????????????????????? e5??????? =? 1 //????????????????????????? x4 +?????????????????? e6????? = ?1 //????????????????????????????????? x5 +???????????? e7??? =? 1 // xi, ej >= 0 (i = 1,...,5) (j = 1,..., 7) ? // The following script solves the problem. Here, the initial guess x0 is given. ? Aeq =[ ?????? 115355291000000 ??????? 3? 651340100000 ??????? 1? 000? 00010000 ??????? 0? 100? 00001000 ??????? 0? 010? 00000100 ??????? 0? 001? 00000010 ??????? 0? 000? 10000001 ????? ];? // coefficients of constraint matrix ? beq =[402011111]';??? // vector of independent terms c =[-13-16-16-14-390000000]';???? // coefficients of objective function [n,p]=size(Aeq); ? // Now, assume that the initial guess x0 is unknown. // To find a feasible point, we solve the following problem : cc =[zeros(p,1);1]; AAeq =[Aeq,beq-Aeq*ones(p,1)]; bbeq =beq; z0 =ones(p+1,1); zopt=karmarkar(AAeq,bbeq,cc,z0,0,0.99) x0=zopt(1:p)? // This gives a very small value of zopt(p+1) // The previous script allows to produces the initial guess: x0 // We now plug the initial guess x0 into the original problem and get: xopt=karmarkar(Aeq,beq,c,x0,1.e-10,0.999)? // optimization result // where the components xopt(1:4) are the original variables and xopt(5:) are slack variables. f =c'*xopt? // result of objetive function ? // Second resolution of LP problem:?? (THIS RESOLUTION WORKED !) ? // You can also try the "quapro" module and the linpro function. ? // Minimize -13*x1 - 16*x2 - 16*x3 - 14*x4 - 39*x5 // such as // 11*x1 + 53*x2 + 5*x3 + 5*x4 + 29*x5 <= 40 // 3*x1 + 6*x2 + 5*x3 + x4 + 34*x5 <= 20 // x1 <= 1 // x2 <= 1 // x3 <= 1 // x4 <= 1 // x5 <= 1 // xi >= 0 (i = 1,...,5) ? p =[-13-16-16-14-39]'; // coefficients of objective function ? C =? [ ?????? 11535529 ??????? 3? 65134 ??????? 1? 000? 0 ??????? 0? 100? 0 ??????? 0? 010? 0 ??????? 0? 001? 0 ??????? 0? 000? 1 ????? ];? // coefficients of constraint matrix ? ???? b =[402011111]';? // vector of independent terms ? ci=[00000]';? // initial values (boundary condition) ? cs=[%inf%inf%inf%inf%inf]'; // final values ? [x1,lagr,f]=linpro(p,C,b,ci,cs)? // x1 represents the optimum solution ? // PS: // [x,lagr,f]=linpro(p,C,b,ci,cs [,x0]) when minimize p'*x under the constraints C*x <= b // [x,lagr,f]=linpro(p,-C,-b,ci,cs [,x0]) when minimize p'*x under the constraints C*x >= b ? [clean(x1)clean(xopt(1:size(p,1)))] a=0;fori=1:size(p,1); a=a+x1(i);end;a //sum of optimal values using linpro b=0;fori=1:size(p,1); b=b+xopt(i);end;b //sum of optimal values using Karmarkar ? ? However, seems that some functions are modified in Scilab 5.4, aren't they ? ? Before, that program runs correctly ! Now, in Scilab 5.4, the result is: ? -> ? -->Aeq = [ --> ? ? ? 11 53 5 5 29 1 0 0 0 0 0 0 --> ? ? ? ?3 ?6 5 1 34 0 1 0 0 0 0 0 --> ? ? ? ?1 ?0 0 0 ?0 0 0 1 0 0 0 0 --> ? ? ? ?0 ?1 0 0 ?0 0 0 0 1 0 0 0 --> ? ? ? ?0 ?0 1 0 ?0 0 0 0 0 1 0 0 --> ? ? ? ?0 ?0 0 1 ?0 0 0 0 0 0 1 0 --> ? ? ? ?0 ?0 0 0 ?1 0 0 0 0 0 0 1 --> ? ? ?]; ? ? --> ? -->beq = [40 20 1 1 1 1 1]'; ? ? ? -->c = [-13 -16 -16 -14 -39 0 0 0 0 0 0 0]'; ? ?? ? -->[n,p]=size(Aeq); ? --> ? -->cc = [zeros(p,1);1]; ? -->AAeq = [Aeq,beq-Aeq*ones(p,1)]; ? -->bbeq = beq; ? -->z0 = ones(p+1,1); ? -->zopt=karmarkar(AAeq,bbeq,cc,z0,0,0.99) ?zopt ?= ? ? ? 0.4651227 ? ? ? 0.3447924 ? ? ? 0.4790839 ? ? ? 0.4846474 ? ? ? 0.3723201 ? ? ? 0.9937153 ? ? ? 0.9969277 ? ? ? 0.5348773 ? ? ? 0.6552076 ? ? ? 0.5209161 ? ? ? 0.5153526 ? ? ? 0.6276799 ? ? ? 1.00D-162 ? ? -->x0=zopt(1:p) ? ?x0 ?= ? ? ? 0.4651227 ? ? ? 0.3447924 ? ? ? 0.4790839 ? ? ? 0.4846474 ? ? ? 0.3723201 ? ? ? 0.9937153 ? ? ? 0.9969277 ? ? ? 0.5348773 ? ? ? 0.6552076 ? ? ? 0.5209161 ? ? ? 0.5153526 ? ? ? 0.6276799 ? ? --> ? --> ? -->xopt=karmarkar(Aeq,beq,c,x0,1.e-10,0.999) ? ?xopt ?= ? ? ? 1.0017139 ? ? ? 0.2009097 ? ? ? 0.9994057 ? ? ? 1.0011172 ? ? ? 0.2881802 ? ? ? 1.034D-13 ? ? ? 3.512D-13 ? ? ? 5.532D-16 ? ? ? 0.7990812 ? ? ? 8.466D-15 ? ? ? 8.225D-14 ? ? ? 0.7119165 ? ? --> ? -->f = c'*xopt ? ?f ?= ? ? - 57.481994 ? ? --> ? -->p = [-13 -16 -16 -14 -39]';? ? --> ? -->C = ?[ --> ? ? ? 11 53 5 5 29 --> ? ? ? ?3 ?6 5 1 34 --> ? ? ? ?1 ?0 0 0 ?0 --> ? ? ? ?0 ?1 0 0 ?0 --> ? ? ? ?0 ?0 1 0 ?0 --> ? ? ? ?0 ?0 0 1 ?0 --> ? ? ? ?0 ?0 0 0 ?1 --> ? ? ?]; ? ? ? -->b = [40 20 1 1 1 1 1]'; ? ? --> ? -->ci=[0 0 0 0 0]'; ? ? --> ? -->cs=[%inf %inf %inf %inf %inf]';? ? --> ? -->[x1,lagr,f]=linpro(p,C,b,ci,cs) ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? !--error 4? Vari?vel indefinida: linpro ? ? --> ? -->[clean(x1) clean(xopt(1:size(p,1)))] ? ? ? ? ?!--error 4? Vari?vel indefinida: x1 ? ? -->a=0;for i=1:size(p,1); a=a+x1(i);end;a? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?!--error 4? Vari?vel indefinida: x1 ? ? -->b=0;for i=1:size(p,1); b=b+xopt(i);end;b? ?b ?= ? ? ? 3.4913266 ? ? ? Do you know why this program has errors ? ? Please update me about the optimization functions (if there are modified in Scilab 5.4). ? Thank you so much, Willian !!! ? All best. Reinaldo Golmia Dante. ? PS: this program is attached in this mail in case you wish run it ! ? ? ? ________________________________ De:"michael.baudin-noreply at scilab.org" Para: rei.listas at yahoo.com Enviadas: Sexta-feira, 25 de Maio de 2012 8:33 Assunto: Re: Optimization on Scilab 5.4.0 (for Mac OS X Lion) From: Micha?l BAUDIN Bonjour, Je ne fais plus partie des effectifs de la Fondation Scilab Digiteo. Merci de contacter scilab.support at scilab.org pour toute question relative ?? Scilab, William SABIRON (william.sabiron at fcs-digiteotrianglephysique.fr) sinon. Merci de ne plus utiliser cette adresse mail. Cordialement, Micha?l BAUDIN -------- Original Message -------- -------------- next part -------------- An HTML attachment was scrubbed... URL: From arvid at holken.net Tue Jun 19 12:18:10 2012 From: arvid at holken.net (=?iso-8859-1?Q?Arvid_Ros=E9n?=) Date: Tue, 19 Jun 2012 12:18:10 +0200 Subject: Error building Metanet for Scilab 5.4 In-Reply-To: References: Message-ID: Hi again, I tried to fix this by implementing the missing functions which cause the first error, but there seems to be some confusion regarding the type of the WindowID. In Tab.java it is int, but in SimpleTab.java it is String (both in the Scilab-tree). Has anyone here any clue on how to fix this? Best regards, Arvid 14 jun 2012 kl. 23:37 skrev Arvid Ros?n: > Hi! > > I just checked out the latest get versions of Scilab and Metanet. Building Scilab works fine, but when I execute builder.sce for Metanet I run into problems. Here are the errors I get: > > [javac] /Users/arvid/Develop/metanet/src/java/org/scilab/modules/metanet/MetanetTab.java:94: org.scilab.modules.metanet.MetanetTab is not abstract and does not override abstract method getParentWindowId() in org.scilab.modules.gui.tab.Tab > [javac] public class MetanetTab extends SwingScilabTab implements Tab { > [javac] ^ > [javac] /Users/arvid/Develop/metanet/src/java/org/scilab/modules/metanet/MetanetTab.java:705: incompatible types > [javac] found : org.scilab.modules.gui.bridge.window.SwingScilabWindow > [javac] required: org.scilab.modules.gui.window.Window > [javac] final Window configuration = WindowsConfigurationManager.createWindow(DEFAULT_WIN_UUID, false); > [javac] ^ > [javac] /Users/arvid/Develop/metanet/src/java/org/scilab/modules/metanet/ViewPortTab.java:24: org.scilab.modules.metanet.ViewPortTab is not abstract and does not override abstract method getParentWindowId() in org.scilab.modules.gui.tab.Tab > [javac] public final class ViewPortTab extends SwingScilabTab implements Tab { > [javac] ^ > [javac] /Users/arvid/Develop/metanet/src/java/org/scilab/modules/metanet/ViewPortTab.java:151: incompatible types > [javac] found : org.scilab.modules.gui.bridge.window.SwingScilabWindow > [javac] required: org.scilab.modules.gui.window.Window > [javac] final Window configuration = WindowsConfigurationManager.createWindow(DEFAULT_WIN_UUID, false); > [javac] ^ > [javac] Note: /Users/arvid/Develop/metanet/src/java/org/scilab/modules/metanet/node/BasicNode.java uses unchecked or unsafe operations. > [javac] Note: Recompile with -Xlint:unchecked for details. > [javac] 4 errors > > My platform is Mac OS X 10.7 using latest XCode and Java packages. What can I do to fix this, or does anyone already have a solution? > > Best regards, > Arvid -------------- next part -------------- An HTML attachment was scrubbed... URL: From clement.david at scilab-enterprises.com Tue Jun 19 16:33:21 2012 From: clement.david at scilab-enterprises.com (=?ISO-8859-1?Q?Cl=E9ment_DAVID?=) Date: Tue, 19 Jun 2012 16:33:21 +0200 Subject: [Scilab-Dev] Re: Error building Metanet for Scilab 5.4 In-Reply-To: References: Message-ID: <4FE08DB1.20809@scilab-enterprises.com> Hello, Thanks to reporting this issue, please use the forge issues next time. This issue is fixed and metanet start at [70195a]. [70195a]: http://forge.scilab.org/index.php/p/metanet/source/commit/70195a947647db3b09a125b2b5034e326cf88e3a/ -- Cl?ment DAVID Le 19/06/2012 12:18, Arvid Ros?n a ?crit : > Hi again, > > I tried to fix this by implementing the missing functions which cause > the first error, but there seems to be some confusion regarding the type > of the WindowID. In Tab.java it is int, but in SimpleTab.java it is > String (both in the Scilab-tree). Has anyone here any clue on how to fix > this? > > Best regards, > Arvid > > 14 jun 2012 kl. 23:37 skrev Arvid Ros?n: > >> Hi! >> >> I just checked out the latest get versions of Scilab and Metanet. >> Building Scilab works fine, but when I execute builder.sce for Metanet >> I run into problems. Here are the errors I get: >> >> [javac] >> /Users/arvid/Develop/metanet/src/java/org/scilab/modules/metanet/MetanetTab.java:94: >> org.scilab.modules.metanet.MetanetTab is not abstract and does not >> override abstract method getParentWindowId() in >> org.scilab.modules.gui.tab.Tab >> [javac] public class MetanetTab extends SwingScilabTab implements Tab { >> [javac] ^ >> [javac] >> /Users/arvid/Develop/metanet/src/java/org/scilab/modules/metanet/MetanetTab.java:705: >> incompatible types >> [javac] found : org.scilab.modules.gui.bridge.window.SwingScilabWindow >> [javac] required: org.scilab.modules.gui.window.Window >> [javac] final Window configuration = >> WindowsConfigurationManager.createWindow(DEFAULT_WIN_UUID, false); >> [javac] ^ >> [javac] >> /Users/arvid/Develop/metanet/src/java/org/scilab/modules/metanet/ViewPortTab.java:24: >> org.scilab.modules.metanet.ViewPortTab is not abstract and does not >> override abstract method getParentWindowId() in >> org.scilab.modules.gui.tab.Tab >> [javac] public final class ViewPortTab extends SwingScilabTab >> implements Tab { >> [javac] ^ >> [javac] >> /Users/arvid/Develop/metanet/src/java/org/scilab/modules/metanet/ViewPortTab.java:151: >> incompatible types >> [javac] found : org.scilab.modules.gui.bridge.window.SwingScilabWindow >> [javac] required: org.scilab.modules.gui.window.Window >> [javac] final Window configuration = >> WindowsConfigurationManager.createWindow(DEFAULT_WIN_UUID, false); >> [javac] ^ >> [javac] Note: >> /Users/arvid/Develop/metanet/src/java/org/scilab/modules/metanet/node/BasicNode.java >> uses unchecked or unsafe operations. >> [javac] Note: Recompile with -Xlint:unchecked for details. >> [javac] 4 errors >> >> My platform is Mac OS X 10.7 using latest XCode and Java packages. >> What can I do to fix this, or does anyone already have a solution? >> >> Best regards, >> Arvid > -- Cl?ment DAVID Scilab Enterprises mobile: 06 26 26 51 90 skype://clement_david_scilab From arvid at softube.com Tue Jun 19 18:29:20 2012 From: arvid at softube.com (=?iso-8859-1?Q?Arvid_Ros=E9n?=) Date: Tue, 19 Jun 2012 18:29:20 +0200 Subject: [Scilab-Dev] Error building Metanet for Scilab 5.4 In-Reply-To: <4FE08DB1.20809@scilab-enterprises.com> References: <4FE08DB1.20809@scilab-enterprises.com> Message-ID: Thanks, that solved it! You can soon read about the next problem I run into over at the forge issues site. Best regards, Arvid 19 jun 2012 kl. 16:33 skrev Cl?ment DAVID: > Hello, > > Thanks to reporting this issue, please use the forge issues next time. > > This issue is fixed and metanet start at [70195a]. > > [70195a]: http://forge.scilab.org/index.php/p/metanet/source/commit/70195a947647db3b09a125b2b5034e326cf88e3a/ > > -- > Cl?ment DAVID > > Le 19/06/2012 12:18, Arvid Ros?n a ?crit : >> Hi again, >> >> I tried to fix this by implementing the missing functions which cause >> the first error, but there seems to be some confusion regarding the type >> of the WindowID. In Tab.java it is int, but in SimpleTab.java it is >> String (both in the Scilab-tree). Has anyone here any clue on how to fix >> this? >> >> Best regards, >> Arvid >> >> 14 jun 2012 kl. 23:37 skrev Arvid Ros?n: >> >>> Hi! >>> >>> I just checked out the latest get versions of Scilab and Metanet. >>> Building Scilab works fine, but when I execute builder.sce for Metanet >>> I run into problems. Here are the errors I get: >>> >>> [javac] >>> /Users/arvid/Develop/metanet/src/java/org/scilab/modules/metanet/MetanetTab.java:94: >>> org.scilab.modules.metanet.MetanetTab is not abstract and does not >>> override abstract method getParentWindowId() in >>> org.scilab.modules.gui.tab.Tab >>> [javac] public class MetanetTab extends SwingScilabTab implements Tab { >>> [javac] ^ >>> [javac] >>> /Users/arvid/Develop/metanet/src/java/org/scilab/modules/metanet/MetanetTab.java:705: >>> incompatible types >>> [javac] found : org.scilab.modules.gui.bridge.window.SwingScilabWindow >>> [javac] required: org.scilab.modules.gui.window.Window >>> [javac] final Window configuration = >>> WindowsConfigurationManager.createWindow(DEFAULT_WIN_UUID, false); >>> [javac] ^ >>> [javac] >>> /Users/arvid/Develop/metanet/src/java/org/scilab/modules/metanet/ViewPortTab.java:24: >>> org.scilab.modules.metanet.ViewPortTab is not abstract and does not >>> override abstract method getParentWindowId() in >>> org.scilab.modules.gui.tab.Tab >>> [javac] public final class ViewPortTab extends SwingScilabTab >>> implements Tab { >>> [javac] ^ >>> [javac] >>> /Users/arvid/Develop/metanet/src/java/org/scilab/modules/metanet/ViewPortTab.java:151: >>> incompatible types >>> [javac] found : org.scilab.modules.gui.bridge.window.SwingScilabWindow >>> [javac] required: org.scilab.modules.gui.window.Window >>> [javac] final Window configuration = >>> WindowsConfigurationManager.createWindow(DEFAULT_WIN_UUID, false); >>> [javac] ^ >>> [javac] Note: >>> /Users/arvid/Develop/metanet/src/java/org/scilab/modules/metanet/node/BasicNode.java >>> uses unchecked or unsafe operations. >>> [javac] Note: Recompile with -Xlint:unchecked for details. >>> [javac] 4 errors >>> >>> My platform is Mac OS X 10.7 using latest XCode and Java packages. >>> What can I do to fix this, or does anyone already have a solution? >>> >>> Best regards, >>> Arvid >> > > > -- > Cl?ment DAVID > Scilab Enterprises > > mobile: 06 26 26 51 90 > skype://clement_david_scilab > > -- > To unsubscribe from this mailing-list, please send an empty mail to > dev-unsubscribe at lists.scilab.org > To check the archives of this mailing list, see > http://mailinglists.scilab.org/ > From dungnguyenbk at gmail.com Wed Jun 20 06:38:39 2012 From: dungnguyenbk at gmail.com (hehiha) Date: Tue, 19 Jun 2012 21:38:39 -0700 (PDT) Subject: How to get event stop xcos Message-ID: <1340167118998-4024400.post@n3.nabble.com> I try to implement my system. Step1: I simulation my system by click execute in xcos toolbar. Step2: I stop simulate my system by click stop in xcos toolbar. I want to get event when use click stop my system. How method to get this event ? -- View this message in context: http://mailinglists.scilab.org/How-to-get-event-stop-xcos-tp4024400.html Sent from the Scilab developers - Mailing Lists Archives mailing list archive at Nabble.com. From clement.david at scilab-enterprises.com Wed Jun 20 08:12:42 2012 From: clement.david at scilab-enterprises.com (=?ISO-8859-1?Q?Cl=E9ment_DAVID?=) Date: Wed, 20 Jun 2012 08:12:42 +0200 Subject: [Scilab-Dev] How to get event stop xcos In-Reply-To: <1340167118998-4024400.post@n3.nabble.com> References: <1340167118998-4024400.post@n3.nabble.com> Message-ID: <4FE169DA.5040506@scilab-enterprises.com> Hello, This will call all blocks with the Ending flag. Do you need specific things, please describe your needs ? -- Cl?ment DAVID Le 20/06/2012 06:38, hehiha a ?crit : > I try to implement my system. > Step1: I simulation my system by click execute in xcos toolbar. > Step2: I stop simulate my system by click stop in xcos toolbar. > > I want to get event when use click stop my system. > How method to get this event ? > > -- > View this message in context: http://mailinglists.scilab.org/How-to-get-event-stop-xcos-tp4024400.html > Sent from the Scilab developers - Mailing Lists Archives mailing list archive at Nabble.com. > > -- > To unsubscribe from this mailing-list, please send an empty mail to > dev-unsubscribe at lists.scilab.org > To check the archives of this mailing list, see > http://mailinglists.scilab.org/ > -- Cl?ment DAVID Scilab Enterprises mobile: 06 26 26 51 90 skype://clement_david_scilab From dungnguyenbk at gmail.com Wed Jun 20 08:35:20 2012 From: dungnguyenbk at gmail.com (hehiha) Date: Tue, 19 Jun 2012 23:35:20 -0700 (PDT) Subject: How to get event stop xcos In-Reply-To: <4FE169DA.5040506@scilab-enterprises.com> References: <1340167118998-4024400.post@n3.nabble.com> <4FE169DA.5040506@scilab-enterprises.com> Message-ID: <1340174120272-4024402.post@n3.nabble.com> Sorry. Because I debug by sciprint(). And when I click stop. scilab console not print. "5!". I don't know why. #include "scicos_block.h" void pg_EX3_f(int *flag, int *nevprt, double *t, double xd[], double x[], int *nx, double z[], int *nz, double tvec[], int *ntvec, double rpar[], int *nrpar, int ipar[], int *nipar, double *inptr[], int insz[], int *nin, double *outptr[], int outsz[], int *nout) { --ipar; --z; if (*flag==2&&*nevprt>0) { /* add a new record to the buffer */ sciprint(_("2!\n")); } else if (*flag==4) { sciprint(_("4!\n")); } else if (*flag==5) { sciprint(_("5!\n")); } return; } Please help me. Why it did not get ending. -- View this message in context: http://mailinglists.scilab.org/How-to-get-event-stop-xcos-tp4024400p4024402.html Sent from the Scilab developers - Mailing Lists Archives mailing list archive at Nabble.com. From dungnguyenbk at gmail.com Wed Jun 20 08:39:03 2012 From: dungnguyenbk at gmail.com (hehiha) Date: Tue, 19 Jun 2012 23:39:03 -0700 (PDT) Subject: How to used get_scicos_time() functions in new module (external module) In-Reply-To: <1339982398586-4024381.post@n3.nabble.com> References: <1339472512855-4024348.post@n3.nabble.com> <1339982398586-4024381.post@n3.nabble.com> Message-ID: <1340174343960-4024403.post@n3.nabble.com> I find my error. Because i include scicos_block4.h. If i use get_scicos_time must include scicos_block.h. -- View this message in context: http://mailinglists.scilab.org/How-to-used-get-scicos-time-functions-in-new-module-external-module-tp4024348p4024403.html Sent from the Scilab developers - Mailing Lists Archives mailing list archive at Nabble.com. From ierturk at ieee.org Wed Jun 20 12:34:28 2012 From: ierturk at ieee.org (ERTURK Ibrahim) Date: Wed, 20 Jun 2012 13:34:28 +0300 Subject: Elementary Function Object Libraries Message-ID: <485711340188468@web3g.yandex.ru> I have a problem with building scicos block computational function library from c-code. Function includes an elementary function from elementary_functions and elementary_functions_f libraries. While libraries is built successfully under 32-bit Debian Squeeze system, but not under 32-bit Windows. I think, I need to below object libraries under windows. ** elementary_functions.lib ** elementary_functions_f.lib But windows distribution of Scilab-5.3.3 includes only dll libraries of them, but not object libraries. How do I get the symbols from elementary function libraries? Please let me know, if you have any comment on this problem. Thank in advance. Best regards, Ibrahim From dungnguyenbk at gmail.com Thu Jun 21 12:15:33 2012 From: dungnguyenbk at gmail.com (hehiha) Date: Thu, 21 Jun 2012 03:15:33 -0700 (PDT) Subject: Need help in creating modules In-Reply-To: References: Message-ID: <1340273732992-4024405.post@n3.nabble.com> If you want creating external modules. You try following this link. http://wiki.scilab.org/howto/Create%20a%20toolbox -- View this message in context: http://mailinglists.scilab.org/Need-help-in-creating-modules-tp4024368p4024405.html Sent from the Scilab developers - Mailing Lists Archives mailing list archive at Nabble.com. From communication at scilab.org Thu Jun 21 14:29:44 2012 From: communication at scilab.org (Scilab Communication) Date: Thu, 21 Jun 2012 14:29:44 +0200 Subject: D-7: ScilabTEC, Thursday 28 June Message-ID: <4FE313B8.9070805@scilab.org> *It is still time to registrate to ScilabTEC 2012!* It is on thursday 28 June at the ?cole Polytechnique, Palaiseau (91), organized within Teratec Forum. Open invitation, online registration required: http://www.teratec.eu/gb/forum/inscription.php ScilabTEC *With the participation of Kitware, Eramet, Silkan (HPC Project), Sanofi, Astrium, Dassault Aviation and CNES.* Complete program: http://www.scilab.org/news/events/20120516 -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: scilabtec_en.png Type: image/png Size: 110668 bytes Desc: not available URL: From stephane.mottelet at utc.fr Fri Jun 22 11:04:50 2012 From: stephane.mottelet at utc.fr (=?ISO-8859-1?Q?St=E9phane_Mottelet?=) Date: Fri, 22 Jun 2012 11:04:50 +0200 Subject: nightly build on osx Message-ID: <4FE43532.30205@utc.fr> Hi all, is there a known reason why the graphics stuff is incredibly slow in the current build on OSX ? S. From communication at scilab.org Fri Jun 22 17:21:51 2012 From: communication at scilab.org (Scilab Communication) Date: Fri, 22 Jun 2012 17:21:51 +0200 Subject: Release of Scilab 5.4.0 beta 1 Message-ID: <4FE48D8F.1000604@scilab.org> Dear Scilab Users, The R&D team is glad to announce the release of Scilab 5.4.0 beta 1 which includes Scilab Desktop, XML file reading and writing functionalities, major improvements of Scilab graphics, Scilab preferences, and new Scilab file format. Scilab 5.4.0 beta 1 is a test version provided to the community and available for download on our website at: http://www.scilab.org/products/scilab/download/5.4.0-beta-1 If you find a bug, please report it to Scilab bug tracking system (http://bugzilla.scilab.org/). Best Regards ----------------------------------------------- The Scilab Consortium R&D Team ----------------------------------------------- Digiteo Domaine de Voluceau Rocquencourt - B.P. 105 78153 Le Chesnay Cedex - France From arvid at softube.com Sun Jun 24 21:05:38 2012 From: arvid at softube.com (=?iso-8859-1?Q?Arvid_Ros=E9n?=) Date: Sun, 24 Jun 2012 21:05:38 +0200 Subject: Error building latest git version on OSX Message-ID: <87BE3772-BBB0-4CFD-BD2D-6772D6D5F2E5@softube.com> Hi! Tried to build the latest git version (./confugure --without-tk --without-matio) The result: make[3]: *** No rule to make target `src/c/scoUtils.c', needed by `libsciscicos_blocks_la-scoUtils.lo'. Stop. I can avoid this by running: ./confugure --without-tk --without-matio --without-xcos Arvid -------------- next part -------------- An HTML attachment was scrubbed... URL: From sylvestre.ledru at scilab-enterprises.com Sun Jun 24 23:25:42 2012 From: sylvestre.ledru at scilab-enterprises.com (Sylvestre Ledru) Date: Sun, 24 Jun 2012 23:25:42 +0200 Subject: [Scilab-Dev] Error building latest git version on OSX In-Reply-To: <87BE3772-BBB0-4CFD-BD2D-6772D6D5F2E5@softube.com> References: <87BE3772-BBB0-4CFD-BD2D-6772D6D5F2E5@softube.com> Message-ID: <4FE785D6.9010701@scilab-enterprises.com> Le 24/06/2012 21:05, Arvid Ros?n a ?crit : > Hi! > > Tried to build the latest git version (./confugure --without-tk > --without-matio) > > The result: > make[3]: *** No rule to make target `src/c/scoUtils.c', needed by > `libsciscicos_blocks_la-scoUtils.lo'. Stop. > It is because one file has been renamed (.c => .cpp). rm -rf modules/scicos_blocks/.deps && ./config.status && make fixes it. Sylvestre -------------- next part -------------- An HTML attachment was scrubbed... URL: From arvid at softube.com Sun Jun 24 23:27:17 2012 From: arvid at softube.com (=?iso-8859-1?Q?Arvid_Ros=E9n?=) Date: Sun, 24 Jun 2012 23:27:17 +0200 Subject: [Scilab-Dev] Error building latest git version on OSX In-Reply-To: <4FE785D6.9010701@scilab-enterprises.com> References: <87BE3772-BBB0-4CFD-BD2D-6772D6D5F2E5@softube.com> <4FE785D6.9010701@scilab-enterprises.com> Message-ID: <84583C26-C610-413C-8C21-E4CB42ED8BD5@softube.com> 24 jun 2012 kl. 23:25 skrev Sylvestre Ledru: > Le 24/06/2012 21:05, Arvid Ros?n a ?crit : >> >> Hi! >> >> Tried to build the latest git version (./confugure --without-tk --without-matio) >> >> The result: >> make[3]: *** No rule to make target `src/c/scoUtils.c', needed by `libsciscicos_blocks_la-scoUtils.lo'. Stop. >> > It is because one file has been renamed (.c => .cpp). > rm -rf modules/scicos_blocks/.deps && ./config.status && make > fixes it. > > Sylvestre > Yeah, just noticed that. Thanks, and sorry for the false alarm. Regards, Arvid -------------- next part -------------- An HTML attachment was scrubbed... URL: From sylvestre.ledru at scilab-enterprises.com Sun Jun 24 23:32:15 2012 From: sylvestre.ledru at scilab-enterprises.com (Sylvestre Ledru) Date: Sun, 24 Jun 2012 23:32:15 +0200 Subject: [Scilab-Dev] nightly build on osx In-Reply-To: <4FE43532.30205@utc.fr> References: <4FE43532.30205@utc.fr> Message-ID: <4FE7875F.9050904@scilab-enterprises.com> Le 22/06/2012 11:04, St?phane Mottelet a ?crit : > Hi all, > > is there a known reason why the graphics stuff is incredibly slow in > the current build on OSX ? We fixed some issues recently. The fixes are available in the beta 1. Does it improve the situation ? Thanks Sylvestre From stephane.mottelet at gmail.com Sun Jun 24 23:47:10 2012 From: stephane.mottelet at gmail.com (=?ISO-8859-1?Q?St=E9phane_Mottelet?=) Date: Sun, 24 Jun 2012 23:47:10 +0200 Subject: [Scilab-Dev] nightly build on osx In-Reply-To: <4FE7875F.9050904@scilab-enterprises.com> References: <4FE43532.30205@utc.fr> <4FE7875F.9050904@scilab-enterprises.com> Message-ID: Hi, 2012/6/24 Sylvestre Ledru > Le 22/06/2012 11:04, St?phane Mottelet a ?crit : > > Hi all, > > > > is there a known reason why the graphics stuff is incredibly slow in > > the current build on OSX ? > We fixed some issues recently. The fixes are available in the beta 1. > Does it improve the situation ? > No. The beta1 behaves exactly the same. Moreover all the ticks labels have disappeared. S. > > Thanks > Sylvestre > > > -- > To unsubscribe from this mailing-list, please send an empty mail to > dev-unsubscribe at lists.scilab.org > To check the archives of this mailing list, see > http://mailinglists.scilab.org/ > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From sylvestre.ledru at scilab-enterprises.com Mon Jun 25 00:06:00 2012 From: sylvestre.ledru at scilab-enterprises.com (Sylvestre Ledru) Date: Mon, 25 Jun 2012 00:06:00 +0200 Subject: [Scilab-Dev] nightly build on osx In-Reply-To: References: <4FE43532.30205@utc.fr> <4FE7875F.9050904@scilab-enterprises.com> Message-ID: <4FE78F48.2030703@scilab-enterprises.com> Le 24/06/2012 23:47, St?phane Mottelet a ?crit : > Hi, > > 2012/6/24 Sylvestre Ledru > > > Le 22/06/2012 11:04, St?phane Mottelet a ?crit : > > Hi all, > > > > is there a known reason why the graphics stuff is incredibly slow in > > the current build on OSX ? > We fixed some issues recently. The fixes are available in the beta 1. > Does it improve the situation ? > > > No. The beta1 behaves exactly the same. Moreover all the ticks labels > have disappeared. OK. Could you report two bugs on this ? Thanks Sylvestre -------------- next part -------------- An HTML attachment was scrubbed... URL: From dungnguyenbk at gmail.com Tue Jun 26 06:01:52 2012 From: dungnguyenbk at gmail.com (hehiha) Date: Mon, 25 Jun 2012 21:01:52 -0700 (PDT) Subject: Error build module with scilab5.4.0 beta not occur in 5.3.3 Message-ID: <1340683311983-4024437.post@n3.nabble.com> I build and use my external module with scilab5.3.3. It's oki. But I build and use this module with scilab5.4.0. Case1: step1: I build my module in scilab 5.3.3 Step2: I open scilab 5.4 clean and rebuild and load. Build have warning and can not load. Warning to build. genlib: Regenerate names and lib Building blocks... Warning: Feature str2code is obsolete. Warning: Please use ascii instead. Warning: This feature will be permanently removed in Scilab 5.4.1 Warning: Feature str2code is obsolete. Warning: Please use ascii instead. Warning: This feature will be permanently removed in Scilab 5.4.1 Building sources... Error to load !--error 999 xcosPalLoad: Unable to decode "palette.blockNames" : invalid field. at line 76 of function xcosPalAdd called by : at line 37 of function startModule called by : xcos_skeletonlib = startModule(); at line 56 of exec file called by : c\"+"EX5.start") at line 10 of exec file called by : exec loader.sce Case2: step1: I build my module in scilab 5.3.3 Step2: I open scilab 5.4 and rebuild and load (not clean). Load oki. Warning to build. genlib: Regenerate names and lib Building blocks... Warning: Feature str2code is obsolete. Warning: Please use ascii instead. Warning: This feature will be permanently removed in Scilab 5.4.1 Warning: Feature str2code is obsolete. Warning: Please use ascii instead. Warning: This feature will be permanently removed in Scilab 5.4.1 Building sources... Step3: I use my module but have error. xcos_simulate: Error during block parameters evaluation I don't know reason of this error ? Could you tell me. Why and how to fix my module. -- View this message in context: http://mailinglists.scilab.org/Error-build-module-with-scilab5-4-0-beta-not-occur-in-5-3-3-tp4024437.html Sent from the Scilab developers - Mailing Lists Archives mailing list archive at Nabble.com. From laurent.gom at gmail.com Tue Jun 26 14:21:54 2012 From: laurent.gom at gmail.com (Laurent) Date: Tue, 26 Jun 2012 05:21:54 -0700 (PDT) Subject: Aborting SendScilabJob Message-ID: <1340713313907-4024442.post@n3.nabble.com> Hi I have a C++ program that uses call_scilab. I execute a long script with SendScilabJob, and I'd like to be able to abort it at any time from another thread. I've tried to call TerminateScilab, to execute an "abort" command, or both but to no avail (the application either freezes or crashes). I guess that call_scilab is not thread-safe. So what is the correct way to abort a Scilab task from my C++ code? If there's none, are there workarounds available (I don't care if it's not 100% clean ,as long as it works)? Thanks -- View this message in context: http://mailinglists.scilab.org/Aborting-SendScilabJob-tp4024442.html Sent from the Scilab developers - Mailing Lists Archives mailing list archive at Nabble.com. From laurent.berger at univ-lemans.fr Tue Jun 26 15:05:59 2012 From: laurent.berger at univ-lemans.fr (laurent berger) Date: Tue, 26 Jun 2012 06:05:59 -0700 (PDT) Subject: Aborting SendScilabJob In-Reply-To: <1340713313907-4024442.post@n3.nabble.com> References: <1340713313907-4024442.post@n3.nabble.com> Message-ID: <1340715959317-4024443.post@n3.nabble.com> Hi, I don't know if it is possible for you but may be you can send only one command and check after it if the thread can send a new command ussing interprocess communication. -- View this message in context: http://mailinglists.scilab.org/Aborting-SendScilabJob-tp4024442p4024443.html Sent from the Scilab developers - Mailing Lists Archives mailing list archive at Nabble.com. From laurent.gom at gmail.com Tue Jun 26 15:10:40 2012 From: laurent.gom at gmail.com (Laurent) Date: Tue, 26 Jun 2012 06:10:40 -0700 (PDT) Subject: Aborting SendScilabJob In-Reply-To: <1340715959317-4024443.post@n3.nabble.com> References: <1340713313907-4024442.post@n3.nabble.com> <1340715959317-4024443.post@n3.nabble.com> Message-ID: <1340716240200-4024444.post@n3.nabble.com> Thanks for your reply. I have no control over the script which is executed, from my program's point of view it's a big black box. So I can't execute it one instruction after the other, it's all in one block. -- View this message in context: http://mailinglists.scilab.org/Aborting-SendScilabJob-tp4024442p4024444.html Sent from the Scilab developers - Mailing Lists Archives mailing list archive at Nabble.com. From webadmin at scilab.org Tue Jun 26 18:28:48 2012 From: webadmin at scilab.org (Web Admin) Date: Tue, 26 Jun 2012 18:28:48 +0200 Subject: Scilab's websites are going offline Message-ID: <4FE9E340.1030602@scilab.org> Hello, For maintenance reasons, we are going to shutdown Scilab's websites. They should be back within a few hours. Please accept our apologizes for the inconvenience caused. Best regards, The Scilab Team From guillaume.horel at gmail.com Wed Jun 27 04:14:15 2012 From: guillaume.horel at gmail.com (Guillaume Horel) Date: Tue, 26 Jun 2012 22:14:15 -0400 Subject: scilab-5.4 compilation issues Message-ID: Hello all, I'm trying to package the scilab-5.4 for gentoo. Scilab-5.3 compiles fine on my computer, so my setup is nothing crazy. When I try to compile from the latest snapshot from master or the beta1 tag, I get the following error inside the compilation of the xml modules: http://pastebin.com/hqTdW7Pm A bit of googling reveals that this is likely caused by ``dangling extern "C" statements''. I tried to fix it using the following patch: http://paste.lugons.org/show/2649/ These extern "C" clearly look redundant since they're already in the libxml2 header files. This allows the compilation to keep on going. However I get the following error later on: make[1]: Entering directory `/var/tmp/portage/sci-mathematics/scilab-5.3.999/work/scilab' /usr/bin/ccache i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I./modules/core/includes -I./modules/io/includes/ -I./modules/console/includes/ -I./modules/localization/includes/ -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -DNDEBUG -msse -march=native -O2 -pipe -fomit-frame-pointer -c -o scilab_bin-mainscic.o `test -f './modules/console/src/c/others/mainscic.c' || echo './'`./modules/console/src/c/others/mainscic.c /bin/sh ./libtool --tag=CC --mode=link /usr/bin/ccache i686-pc-linux-gnu-gcc -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -DNDEBUG -msse -march=native -O2 -pipe -fomit-frame-pointer -Wl,-O1 -Wl,--as-needed -Wl,--no-as-needed -o scilab-bin scilab_bin-mainscic.o ./modules/libscilab.la -L/usr/lib/gcc/i686-pc-linux-gnu/4.6.3 -L/usr/lib/gcc/i686-pc-linux-gnu/4.6.3/../../../../i686-pc-linux-gnu/lib/../lib -L/usr/lib/gcc/i686-pc-linux-gnu/4.6.3/../../../../lib -L/lib/../lib -L/usr/lib/../lib -L/usr/lib/gcc/i686-pc-linux-gnu/4.6.3/../../../../i686-pc-linux-gnu/lib -L/usr/lib/gcc/i686-pc-linux-gnu/4.6.3/../../.. -lpthread -ldl -lcurses -lgfortran -lm -lquadmath -lpthread -ldl -lcurses -lm libtool: link: /usr/bin/ccache i686-pc-linux-gnu-gcc -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -DNDEBUG -msse -march=native -O2 -pipe -fomit-frame-pointer -Wl,-O1 -o .libs/scilab-bin scilab_bin-mainscic.o -Wl,--as-needed -Wl,--no-as-needed ./modules/.libs/libscilab.so /var/tmp/portage/sci-mathematics/scilab-5.3.999/work/scilab/modules/gui/.libs/libscigui.so /var/tmp/portage/sci-mathematics/scilab-5.3.999/work/scilab/modules/renderer/.libs/libscirenderer.so /var/tmp/portage/sci-mathematics/scilab-5.3.999/work/scilab/modules/graphics/.libs/libscigraphics.so /var/tmp/portage/sci-mathematics/scilab-5.3.999/work/scilab/modules/graphic_export/.libs/libscigraphic_export.so /var/tmp/portage/sci-mathematics/scilab-5.3.999/work/scilab/modules/console/.libs/libsciconsole.so /var/tmp/portage/sci-mathematics/scilab-5.3.999/work/scilab/modules/action_binding/.libs/libsciaction_binding.so -L/opt/oracle-jdk-bin-1.7.0.4/jre/lib/i386 -L/opt/oracle-jdk-bin-1.7.0.4/jre/lib/i386/client /var/tmp/portage/sci-mathematics/scilab-5.3.999/work/scilab/modules/graphic_objects/.libs/libscigraphic_objects.so /var/tmp/portage/sci-mathematics/scilab-5.3.999/work/scilab/modules/scinotes/.libs/libsciscinotes.so /var/tmp/portage/sci-mathematics/scilab-5.3.999/work/scilab/modules/ui_data/.libs/libsciui_data.so /var/tmp/portage/sci-mathematics/scilab-5.3.999/work/scilab/modules/history_browser/.libs/libscihistory_browser.so /var/tmp/portage/sci-mathematics/scilab-5.3.999/work/scilab/modules/tclsci/.libs/libscitclsci.so /var/tmp/portage/sci-mathematics/scilab-5.3.999/work/scilab/modules/preferences/.libs/libscipreferences.so /var/tmp/portage/sci-mathematics/scilab-5.3.999/work/scilab/modules/types/.libs/libscitypes.so /var/tmp/portage/sci-mathematics/scilab-5.3.999/work/scilab/modules/commons/.libs/libscicommons.so /var/tmp/portage/sci-mathematics/scilab-5.3.999/work/scilab/modules/jvm/.libs/libscijvm.so /var/tmp/portage/sci-mathematics/scilab-5.3.999/work/scilab/modules/.libs/libscilab-cli.so /var/tmp/portage/sci-mathematics/scilab-5.3.999/work/scilab/modules/functions/.libs/libscifunctions.so /var/tmp/portage/sci-mathematics/scilab-5.3.999/work/scilab/modules/call_scilab/.libs/libscicall_scilab.so /var/tmp/portage/sci-mathematics/scilab-5.3.999/work/scilab/modules/localization/.libs/libscilocalization.so /var/tmp/portage/sci-mathematics/scilab-5.3.999/work/scilab/modules/special_functions/.libs/libscispecial_functions.so /var/tmp/portage/sci-mathematics/scilab-5.3.999/work/scilab/modules/completion/.libs/libscicompletion.so /var/tmp/portage/sci-mathematics/scilab-5.3.999/work/scilab/modules/history_manager/.libs/libscihistory_manager.so /var/tmp/portage/sci-mathematics/scilab-5.3.999/work/scilab/modules/hdf5/.libs/libscihdf5.so /var/tmp/portage/sci-mathematics/scilab-5.3.999/work/scilab/modules/statistics/.libs/libscistatistics.so /var/tmp/portage/sci-mathematics/scilab-5.3.999/work/scilab/libs/dynamiclibrary/.libs/libscidynamiclibrary.so /var/tmp/portage/sci-mathematics/scilab-5.3.999/work/scilab/modules/xml/.libs/libscixml.so /var/tmp/portage/sci-mathematics/scilab-5.3.999/work/scilab/modules/preferences/.libs/libscipreferences-cli.so /var/tmp/portage/sci-mathematics/scilab-5.3.999/work/scilab/modules/gui/.libs/libscigui-disable.so /var/tmp/portage/sci-mathematics/scilab-5.3.999/work/scilab/modules/graphics/.libs/libscigraphics-disable.so /var/tmp/portage/sci-mathematics/scilab-5.3.999/work/scilab/modules/graphic_export/.libs/libscigraphic_export-disable.so /var/tmp/portage/sci-mathematics/scilab-5.3.999/work/scilab/modules/console/.libs/libsciconsole-disable.so /var/tmp/portage/sci-mathematics/scilab-5.3.999/work/scilab/modules/action_binding/.libs/libsciaction_binding-disable.so /var/tmp/portage/sci-mathematics/scilab-5.3.999/work/scilab/modules/jvm/.libs/libscijvm-disable.so /var/tmp/portage/sci-mathematics/scilab-5.3.999/work/scilab/modules/xcos/.libs/libscixcos-disable.so /var/tmp/portage/sci-mathematics/scilab-5.3.999/work/scilab/modules/graphic_objects/.libs/libscigraphic_objects-disable.so /var/tmp/portage/sci-mathematics/scilab-5.3.999/work/scilab/modules/scinotes/.libs/libsciscinotes-disable.so /var/tmp/portage/sci-mathematics/scilab-5.3.999/work/scilab/modules/ui_data/.libs/libsciui_data-disable.so /var/tmp/portage/sci-mathematics/scilab-5.3.999/work/scilab/modules/history_browser/.libs/libscihistory_browser-disable.so /var/tmp/portage/sci-mathematics/scilab-5.3.999/work/scilab/modules/commons/.libs/libscicommons-disable.so /var/tmp/portage/sci-mathematics/scilab-5.3.999/work/scilab/modules/hdf5/.libs/libscihdf5-forceload-disable.so /var/tmp/portage/sci-mathematics/scilab-5.3.999/work/scilab/libs/hashtable/.libs/libscihashtable.so /var/tmp/portage/sci-mathematics/scilab-5.3.999/work/scilab/libs/MALLOC/.libs/libscimalloc.so /var/tmp/portage/sci-mathematics/scilab-5.3.999/work/scilab/libs/doublylinkedlist/.libs/libscidoublylinkedlist.so /var/tmp/portage/sci-mathematics/scilab-5.3.999/work/scilab/libs/libst/.libs/libscilibst.so -L/usr/lib/gcc/i686-pc-linux-gnu/4.6.3 -L/usr/lib/gcc/i686-pc-linux-gnu/4.6.3/../../../../i686-pc-linux-gnu/lib/../lib -L/usr/lib/gcc/i686-pc-linux-gnu/4.6.3/../../../../lib -L/lib/../lib -L/usr/lib/../lib -L/usr/lib/gcc/i686-pc-linux-gnu/4.6.3/../../../../i686-pc-linux-gnu/lib -L/usr/lib/gcc/i686-pc-linux-gnu/4.6.3/../../.. /usr/lib/gcc/i686-pc-linux-gnu/4.6.3/libgfortran.so /usr/lib/gcc/i686-pc-linux-gnu/4.6.3/libquadmath.so -ljava -lverify -ljvm -latllapack -latlcblas -lptf77blas -latlas -lxml2 -lz -lpcreposix -lpcre -lfftw3 -lhdf5 -lpthread -ldl -lcurses -lm -Wl,-rpath -Wl,/usr/lib/scilab /var/tmp/portage/sci-mathematics/scilab-5.3.999/work/scilab/modules/xml/.libs/libscixml.so: undefined reference to `sci_xmlValidate' /var/tmp/portage/sci-mathematics/scilab-5.3.999/work/scilab/modules/xml/.libs/libscixml.so: undefined reference to `isXMLSet(int*, void*)' /var/tmp/portage/sci-mathematics/scilab-5.3.999/work/scilab/modules/xml/.libs/libscixml.so: undefined reference to `isXMLElem(int*, void*)' /var/tmp/portage/sci-mathematics/scilab-5.3.999/work/scilab/modules/xml/.libs/libscixml.so: undefined reference to `isXMLList(int*, void*)' /var/tmp/portage/sci-mathematics/scilab-5.3.999/work/scilab/modules/xml/.libs/libscixml.so: undefined reference to `sci_xmlSetAttributes' /var/tmp/portage/sci-mathematics/scilab-5.3.999/work/scilab/modules/xml/.libs/libscixml.so: undefined reference to `getXMLObjectId(int*, void*)' /var/tmp/portage/sci-mathematics/scilab-5.3.999/work/scilab/modules/xml/.libs/libscixml.so: undefined reference to `sci_xmlXPath' /var/tmp/portage/sci-mathematics/scilab-5.3.999/work/scilab/modules/xml/.libs/libscixml.so: undefined reference to `isXMLDoc(int*, void*)' /var/tmp/portage/sci-mathematics/scilab-5.3.999/work/scilab/modules/xml/.libs/libscixml.so: undefined reference to `isXMLValid(int*, void*)' /var/tmp/portage/sci-mathematics/scilab-5.3.999/work/scilab/modules/xml/.libs/libscixml.so: undefined reference to `isXMLAttr(int*, void*)' collect2: ld returned 1 exit status This may or may not be related to the previous fix given that the missing symbols are xml related. Does anybody has any idea how to fix this? Let me know if you need more information and/or if I should file a bug for this. Thanks for your help, Guillaume From laurent.gom at gmail.com Wed Jun 27 11:53:56 2012 From: laurent.gom at gmail.com (Laurent) Date: Wed, 27 Jun 2012 02:53:56 -0700 (PDT) Subject: "Cannot open JVM library" when starting Scilab twice Message-ID: <1340790836577-4024457.post@n3.nabble.com> Hi I try to start Scilab from a C++ program (using call_scilab) after a first execution, ie: StartScilab(path, 0, 0); TerminateScilab(0); StartScilab(path, 0 ,0); On the second call to StartScilab, it triggers the following error: "Scilab ne peut pas ouvrir la biblioth?que JVM" ("Scilab cannot open JVM library" in english). I load the call_scilab DLL and retrieve its function pointers dynamically, if it makes a difference. Is there any way to solve this problem? -- View this message in context: http://mailinglists.scilab.org/Cannot-open-JVM-library-when-starting-Scilab-twice-tp4024457.html Sent from the Scilab developers - Mailing Lists Archives mailing list archive at Nabble.com. From arvid at softube.com Wed Jun 27 14:44:22 2012 From: arvid at softube.com (=?iso-8859-1?Q?Arvid_Ros=E9n?=) Date: Wed, 27 Jun 2012 14:44:22 +0200 Subject: path to jhdf5 Message-ID: <3B795611-06F8-4EB9-98F0-9C5775E4C693@softube.com> Hi, I am running the latest git version on Mac OS X 10.7 and have the following annoying problem. Scilab combiles and runs fin, as long as I start it from within the git source tree, by executing "bin/scilab" from the terminal. However, if I do a "sudo make install", it wont run anymore, but instead ends up with the following error: java.lang.UnsatisfiedLinkError: no jhdf5 in java.library.path at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1758) at java.lang.Runtime.loadLibrary0(Runtime.java:823) at java.lang.System.loadLibrary(System.java:1045) at ncsa.hdf.hdf5lib.H5.loadH5Lib(H5.java:289) at ncsa.hdf.hdf5lib.H5.(H5.java:225) at org.scilab.modules.hdf5.jhdf5load.forceLoad(Unknown Source) terminate called after throwing an instance of 'GiwsException::JniCallMethodException' what(): Exception when calling Java method : ncsa.hdf.hdf5lib.H5.H5dont_atexit()I at ncsa.hdf.hdf5lib.H5.H5dont_atexit(Native Method) at ncsa.hdf.hdf5lib.H5.loadH5Lib(H5.java:302) at ncsa.hdf.hdf5lib.H5.(H5.java:225) at org.scilab.modules.hdf5.jhdf5load.forceLoad(Unknown Source) ncsa.hdf.hdf5lib.H5.H5dont_atexit()I at ncsa.hdf.hdf5lib.H5.H5dont_atexit(Native Method) at ncsa.hdf.hdf5lib.H5.loadH5Lib(H5.java:302) at ncsa.hdf.hdf5lib.H5.(H5.java:225) at org.scilab.modules.hdf5.jhdf5load.forceLoad(Unknown Source) Do I need to do anything special with hdf and java to make this work? I have checked out all the thirdparty dependencies in a folder named thirdparty in the scilab tree, and I can see jhdf5.jar in there. Does this file need to go somewhere else too? Best regards, Arvid From ierturk at ieee.org Sat Jun 30 11:11:03 2012 From: ierturk at ieee.org (ERTURK Ibrahim) Date: Sat, 30 Jun 2012 12:11:03 +0300 Subject: Windows distributions of Scilab does not include Elementary Function Object Libraries Message-ID: <2225981341047463@web3f.yandex.ru> I have a problem with building scicos block computational function library from c-code. Function includes an elementary function from elementary_functions and elementary_functions_f libraries. While libraries is built successfully under 32-bit Debian Squeeze system, but not under 32-bit Windows. I think, I need to below object libraries under windows. ** elementary_functions.lib ** elementary_functions_f.lib But windows distribution of Scilab-5.3.3 includes only dll libraries of them, but not object libraries. How do I get the symbols from elementary function libraries? Please let me know, if you have any comment on this problem. Thank in advance, Ibrahim From ierturk at ieee.org Sat Jun 30 11:24:25 2012 From: ierturk at ieee.org (ierturk) Date: Sat, 30 Jun 2012 02:24:25 -0700 (PDT) Subject: Windows distributions of Scilab does not include Elementary Function Object Libraries Message-ID: <1341048265658-4024467.post@n3.nabble.com> I have a problem with building scicos block computational function library from c-code. Function includes an elementary function from elementary_functions and elementary_functions_f libraries. While libraries is built successfully under 32-bit Debian Squeeze system, but not under 32-bit Windows. I think, I need to below object libraries under windows. ** elementary_functions.lib ** elementary_functions_f.lib But windows distribution of Scilab-5.3.3 includes only dll libraries of them, but not object libraries. How do I get the symbols from elementary function libraries? Please let me know, if you have any comment on this problem. Thank in advance, Ibrahim -- View this message in context: http://mailinglists.scilab.org/Windows-distributions-of-Scilab-does-not-include-Elementary-Function-Object-Libraries-tp4024467.html Sent from the Scilab developers - Mailing Lists Archives mailing list archive at Nabble.com. From sylvestre.ledru at scilab-enterprises.com Sat Jun 30 16:55:24 2012 From: sylvestre.ledru at scilab-enterprises.com (Sylvestre Ledru) Date: Sat, 30 Jun 2012 16:55:24 +0200 Subject: [Scilab-Dev] path to jhdf5 In-Reply-To: <3B795611-06F8-4EB9-98F0-9C5775E4C693@softube.com> References: <3B795611-06F8-4EB9-98F0-9C5775E4C693@softube.com> Message-ID: <4FEF135C.3090605@scilab-enterprises.com> Hello Arvid, Le 27/06/2012 14:44, Arvid Ros?n a ?crit : > Hi, > > I am running the latest git version on Mac OS X 10.7 and have the following annoying problem. Scilab combiles and runs fin, as long as I start it from within the git source tree, by executing "bin/scilab" from the terminal. However, if I do a "sudo make install", it wont run anymore, but instead ends up with the following error: > > java.lang.UnsatisfiedLinkError: no jhdf5 in java.library.path [...] > at org.scilab.modules.hdf5.jhdf5load.forceLoad(Unknown Source) > > Do I need to do anything special with hdf and java to make this work? I have checked out all the thirdparty dependencies in a folder named thirdparty in the scilab tree, and I can see jhdf5.jar in there. Does this file need to go somewhere else too? > > Here, Scilab is complaining about the native library. Beside thirdparty, we provide also a bin/ directory which contains the native libraries. You should find a file called libjhdf5.jnilib. If Scilab works when started from the source tree, I guess you have this file. When doing the "make install", it won't copy this file (because it is not a file Scilab per say). So, you will have to either: * update etc/librarypath.xml to add the path to this lib * copy this library to a Mac OS X standard path . Hope this helps, Sylvestre From sylvestre.ledru at scilab-enterprises.com Sat Jun 30 17:29:35 2012 From: sylvestre.ledru at scilab-enterprises.com (Sylvestre Ledru) Date: Sat, 30 Jun 2012 17:29:35 +0200 Subject: [Scilab-Dev] "Cannot open JVM library" when starting Scilab twice In-Reply-To: <1340790836577-4024457.post@n3.nabble.com> References: <1340790836577-4024457.post@n3.nabble.com> Message-ID: <4FEF1B5F.3010007@scilab-enterprises.com> Le 27/06/2012 11:53, Laurent a ?crit : > Hi > > I try to start Scilab from a C++ program (using call_scilab) after a first > execution, ie: > > StartScilab(path, 0, 0); > TerminateScilab(0); > StartScilab(path, 0 ,0); > > On the second call to StartScilab, it triggers the following error: "Scilab > ne peut pas ouvrir la biblioth?que JVM" ("Scilab cannot open JVM library" in > english). > > I load the call_scilab DLL and retrieve its function pointers dynamically, > if it makes a difference. It is not the source of the issue. > Is there any way to solve this problem? > Please report a bug. It seems to be that the JVM runtime is not totaly cleared when called with call_scilab (it works with Javasci) Thanks Sylvestre