From paul.bignier at scilab-enterprises.com Mon Nov 4 11:16:00 2013 From: paul.bignier at scilab-enterprises.com (Paul BIGNIER) Date: Mon, 04 Nov 2013 11:16:00 +0100 Subject: [Scilab-users] Scilab Xcos Datatips In-Reply-To: <1383234837.91822.YahooMailNeo@web171405.mail.ir2.yahoo.com> References: <1383234837.91822.YahooMailNeo@web171405.mail.ir2.yahoo.com> Message-ID: <527773E0.9080904@scilab-enterprises.com> Dear Alexander, You may zoom on your curve to place your datatip more accurately. There are five significant figures when you place a datatip, so if "Y: 1.1" is displayed, then it was closer to 1.1 than to 1.005. Regards, Paul. On 10/31/2013 04:53 PM, Alexander Weinig wrote: > > Dear Ms / Miss, > > i have a question about using the datatips in Scilab's Xcos. I tried > to simulate a PID-Controller and i want to use some datatips. My > Problem is, that i need more decimal places for the Y-Axis. The > problem is only if the datatip is over "1". It would be most helpful > if there is a possibility to show the position of de datatip in a way > like this for example: "Y: 1.05" or "Y: 1.005" it only shows "Y: 1.1" > (not very) > For a better understanding look at the attechment. > > Yours sincerely, > Alexander Weinig > alexander_weinig at yahoo.de > > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users -- Paul BIGNIER Scilab Engineer & Xcos Developer ----------------------------------------------------------- Scilab Enterprises 143bis rue Yves Le Coz - 78000 Versailles, France Phone: +33.1.80.77.04.69 http://www.scilab-enterprises.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From W.Schulz at ove.at Mon Nov 4 17:01:56 2013 From: W.Schulz at ove.at (SCHULZ Wolfgang) Date: Mon, 4 Nov 2013 16:01:56 +0000 Subject: [Scilab-users] GIF with transparent color Message-ID: <07A8AF089844A549B0F0CCC727AF31AA56EA356A@OVEKBG.ove.at> Hello, I'm creating contour plots and it would be nice to have certain regions (colors) of a GIF file transparent. Is that possible with SCILAB? Thanks in advance. Best regards Wolfgang From W.Schulz at ove.at Mon Nov 4 17:12:53 2013 From: W.Schulz at ove.at (SCHULZ Wolfgang) Date: Mon, 4 Nov 2013 16:12:53 +0000 Subject: [Scilab-users] Scilab problem? Message-ID: <07A8AF089844A549B0F0CCC727AF31AA56EA3589@OVEKBG.ove.at> Hello, I'm using Scilab 5.4.1 on Win 7 64 bit and have a problem with the following script (simplified script). stacksize('max') Maximum=5e6; dt=1/Maximum; t=0:dt:1; y=sin(2*%pi*50*t); f0=scf(0); clf; plot(t,y); f1=scf(1); clf; plot(t,y); f2=scf(2); clf; plot(t,y); With the standard Java Heap Memory (256MB) the first and second plots are ok. Nothing is drawn in the third plot. I thought it may help to increase the Java Heap Memory. If I increase the Java Heap Memory to 512 MB I get immediately the following error message on the console: -->exec('H:\SCILAB\test_problem.sci', -1) Warning !!! Scilab has found a critical error (EXCEPTION_ACCESS_VIOLATION) with "stacksize" function. Save your data and restart Scilab. t=0:dt:1; !--error 17 stack size exceeded! Use stacksize function to increase it. Memory used for variables: 9453 Intermediate memory needed: 5000002 Total memory available: 180000 at line 8 of exec file called by : exec('H:\SCILAB\test_problem.sci', -1) Any hint how to solve this? Thanks Wolfgang From sgougeon at free.fr Mon Nov 4 17:34:38 2013 From: sgougeon at free.fr (Samuel Gougeon) Date: Mon, 04 Nov 2013 17:34:38 +0100 Subject: [Scilab-users] Scilab problem? In-Reply-To: <07A8AF089844A549B0F0CCC727AF31AA56EA3589@OVEKBG.ove.at> References: <07A8AF089844A549B0F0CCC727AF31AA56EA3589@OVEKBG.ove.at> Message-ID: <5277CC9E.7040809@free.fr> Hello, Le 04/11/2013 17:12, SCHULZ Wolfgang a ?crit : > Hello, > I'm using Scilab 5.4.1 on Win 7 64 bit and have a problem with the following script (simplified script). > > stacksize('max') > Maximum=5e6; > dt=1/Maximum; > t=0:dt:1; > y=sin(2*%pi*50*t); > f0=scf(0); > clf; > plot(t,y); > f1=scf(1); > clf; > plot(t,y); > f2=scf(2); > clf; > plot(t,y); > > With the standard Java Heap Memory (256MB) the first and second plots are ok. Nothing is drawn in the third plot. > I thought it may help to increase the Java Heap Memory. You may use [free, total]=getmemory() before each plot in order to check the decrease of available memory > If I increase the Java Heap Memory to 512 MB I get immediately the following error message on the console: This bug has been reported here: http://bugzilla.scilab.org/12411 : Critical error with stacksize("max") after increasing the Java heap memory Samuel From Christophe.Dang at sidel.com Mon Nov 4 17:36:25 2013 From: Christophe.Dang at sidel.com (Dang, Christophe) Date: Mon, 4 Nov 2013 17:36:25 +0100 Subject: [Scilab-users] GIF with transparent color In-Reply-To: <07A8AF089844A549B0F0CCC727AF31AA56EA356A@OVEKBG.ove.at> References: <07A8AF089844A549B0F0CCC727AF31AA56EA356A@OVEKBG.ove.at> Message-ID: <3B5FFC67498DFF49AE7271A584867D16F31FA1F367@301EX00100.sidel.com> Hello, -----Message d'origine----- De : SCHULZ Wolfgang Envoy? : lundi 4 novembre 2013 17:02 > it would be nice to have certain regions (colors) of a GIF file > transparent. Is that possible with SCILAB? You've got a filled or fill_mode attribute for every object. You should set it to "off" for given objects. See for example http://help.scilab.org/docs/5.4.1/en_US/axes_properties.html Hope this helps. -- Christophe Dang Ngoc Chan Mechanical calculation engineer ______________________________________________________________________ This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error), please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden. ______________________________________________________________________ From sgougeon at free.fr Mon Nov 4 17:43:01 2013 From: sgougeon at free.fr (Samuel Gougeon) Date: Mon, 04 Nov 2013 17:43:01 +0100 Subject: [Scilab-users] GIF with transparent color In-Reply-To: <07A8AF089844A549B0F0CCC727AF31AA56EA356A@OVEKBG.ove.at> References: <07A8AF089844A549B0F0CCC727AF31AA56EA356A@OVEKBG.ove.at> Message-ID: <5277CE95.20705@free.fr> Le 04/11/2013 17:01, SCHULZ Wolfgang a ?crit : > Hello, > I'm creating contour plots and it would be nice to have certain regions (colors) of a GIF file transparent. Is that possible with SCILAB? I am afraid that not, not directly. May be post-processing an export through Java from Scilab? Java has so many libraries... You may post a wish on bugzilla. PNG format may also support a transparent color. Samuel From Serge.Steer at inria.fr Mon Nov 4 17:44:05 2013 From: Serge.Steer at inria.fr (Serge Steer) Date: Mon, 04 Nov 2013 17:44:05 +0100 Subject: [Scilab-users] Scilab Xcos Datatips In-Reply-To: <1383234837.91822.YahooMailNeo@web171405.mail.ir2.yahoo.com> References: <1383234837.91822.YahooMailNeo@web171405.mail.ir2.yahoo.com> Message-ID: <5277CED5.5000002@inria.fr> Le 31/10/2013 16:53, Alexander Weinig a ?crit : > > Dear Ms / Miss, > > i have a question about using the datatips in Scilab's Xcos. I tried > to simulate a PID-Controller and i want to use some datatips. My > Problem is, that i need more decimal places for the Y-Axis. The > problem is only if the datatip is over "1". It would be most helpful > if there is a possibility to show the position of de datatip in a way > like this for example: "Y: 1.05" or "Y: 1.005" it only shows "Y: 1.1" > (not very) Clicking right on a datatip open a gui where you can maodify the the function which generates the display Serge Steer > For a better understanding look at the attechment. > > Yours sincerely, > Alexander Weinig > alexander_weinig at yahoo.de > > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users -------------- next part -------------- An HTML attachment was scrubbed... URL: From antoine.monmayrant at laas.fr Tue Nov 5 09:25:27 2013 From: antoine.monmayrant at laas.fr (Antoine Monmayrant) Date: Tue, 05 Nov 2013 09:25:27 +0100 Subject: [Scilab-users] GIF with transparent color In-Reply-To: <07A8AF089844A549B0F0CCC727AF31AA56EA356A@OVEKBG.ove.at> References: <07A8AF089844A549B0F0CCC727AF31AA56EA356A@OVEKBG.ove.at> Message-ID: <5278AB77.2090504@laas.fr> On 11/04/2013 05:01 PM, SCHULZ Wolfgang wrote: > Hello, > I'm creating contour plots and it would be nice to have certain regions (colors) of a GIF file transparent. Is that possible with SCILAB? > Thanks in advance. > Best regards > Wolfgang > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users Hi Wolfgang, I don't have a solution, but might propose a workaround: why don't you replace a certain range of values (those that you want transparent) by %nan? If I remember correctly, this should open a hole in the filled contour plot. Hope it helps, Antoine From W.Schulz at ove.at Tue Nov 5 11:31:22 2013 From: W.Schulz at ove.at (SCHULZ Wolfgang) Date: Tue, 5 Nov 2013 10:31:22 +0000 Subject: [Scilab-users] Scilab problem? In-Reply-To: <5277CC9E.7040809@free.fr> References: <07A8AF089844A549B0F0CCC727AF31AA56EA3589@OVEKBG.ove.at> <5277CC9E.7040809@free.fr> Message-ID: <07A8AF089844A549B0F0CCC727AF31AA56EA38A2@OVEKBG.ove.at> Hello, I used [free, total]=getmemory() before and after each plot and there is still some memory left after the last plot. I'm not sure this is related because I learned some years ago that for plotting with a lot of data it is important to increase the Java Heap Memory. If I understand correctly the memory I display with the command above is the internal SCILAB memory. Not related to the plotting issue. It seems I'm somehow locked because I cannot increase the Java Heap Memory because of the problem you mentioned! Will this issue be solved in the 5.5 version? Wolfgang > -----Urspr?ngliche Nachricht----- > Von: users [mailto:users-bounces at lists.scilab.org] Im Auftrag von Samuel > Gougeon > Gesendet: Montag, 04. November 2013 17:35 > An: International users mailing list for Scilab. > Betreff: Re: [Scilab-users] Scilab problem? > > Hello, > > Le 04/11/2013 17:12, SCHULZ Wolfgang a ?crit : > > Hello, > > I'm using Scilab 5.4.1 on Win 7 64 bit and have a problem with the following > script (simplified script). > > > > stacksize('max') > > Maximum=5e6; > > dt=1/Maximum; > > t=0:dt:1; > > y=sin(2*%pi*50*t); > > f0=scf(0); > > clf; > > plot(t,y); > > f1=scf(1); > > clf; > > plot(t,y); > > f2=scf(2); > > clf; > > plot(t,y); > > > > With the standard Java Heap Memory (256MB) the first and second plots are > ok. Nothing is drawn in the third plot. > > I thought it may help to increase the Java Heap Memory. > You may use > > [free, total]=getmemory() > > before each plot in order to check the decrease of available memory > > If I increase the Java Heap Memory to 512 MB I get immediately the > following error message on the console: > This bug has been reported here: http://bugzilla.scilab.org/12411 : > Critical error with stacksize("max") after increasing the Java heap memory > > Samuel > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users From i.fuchs at t-online.de Mon Nov 4 10:31:28 2013 From: i.fuchs at t-online.de (G & I Fuchs) Date: Mon, 04 Nov 2013 10:31:28 +0100 Subject: [Scilab-users] bug in scilab 5.41 and 5.5beta? 64bit versions Message-ID: <52776970.3060609@t-online.de> I have been using scilab for many years. today I downloaded for my new computer scilab 5.41(64bit) and got afterwards on the first start an error message like the ones further down on the version 5.5beta(64bit) there happens the same sort of thing on both versions the control bar " file, edititing ..." does not work i.e. no response on klick for version 5.41 Starte Ausf?hrung: (start execution) lade Startumgebung (load startenviroment) %val=[?000sinternalslib; !--error 2 Ung?ltiger Faktor. (unvalid factor) in execstr instruction called by : at line 35 of function evstr called by : at line 848 of function %_sodload called by : at line 6 of function atomsSystemInit called by : atomsSystemInit(); at line 107 of exec file called by : exec('SCI/etc/scilab.start',-1);; and for the beta starte Ausf?hrung: (start execution) lade Startumgebung (load startenviroment) %val=[?000sinternalslib; !--error 2 Ung?ltiger Faktor. (unvalid factor) in execstr instruction called by : at line 35 of function evstr called by : at line 908 of function %_sodload called by : at line 6 of function atomsSystemInit called by : atomsSystemInit(); at line 113 of exec file called by : exec('SCI/etc/scilab.start',-1);; I use windows 7 home premium Gerhard Fuchs From sgougeon at free.fr Tue Nov 5 13:04:14 2013 From: sgougeon at free.fr (Samuel Gougeon) Date: Tue, 05 Nov 2013 13:04:14 +0100 Subject: [Scilab-users] GIF with transparent color In-Reply-To: <07A8AF089844A549B0F0CCC727AF31AA56EA356A@OVEKBG.ove.at> References: <07A8AF089844A549B0F0CCC727AF31AA56EA356A@OVEKBG.ove.at> Message-ID: <5278DEBE.20808@free.fr> Le 04/11/2013 17:01, SCHULZ Wolfgang a ?crit : > Hello, > I'm creating contour plots and it would be nice to have certain regions (colors) of a GIF file transparent. By the way, as far as i know, GIF and PNG allow to define only /one/ transparent color. So, if you want several regions of distinct colors of the same plot being transparent, PNG and GIF would not allow that. I don't know any other common image formats able to do that. If you are looking for transparency of the foreground in order to see the figure's background instead of the image's one, tricks given by Christophe and Antoine will certainly work. In the end, you may have a look at /help pixel_drawing_mode/ . This feature for instance used to help plotting stacked objects without hidding stacked parts. But Scilab 5.4 has killed it : http://bugzilla.scilab.org/show_bug.cgi?id=12017 Best regards Samuel -------------- next part -------------- An HTML attachment was scrubbed... URL: From mariajovera at icloud.com Wed Nov 6 19:30:04 2013 From: mariajovera at icloud.com (samaelkreutz) Date: Wed, 6 Nov 2013 10:30:04 -0800 (PST) Subject: [Scilab-users] loglog plot in 3d Message-ID: <1383762604521-4027785.post@n3.nabble.com> Hello everyone!!! Im working in an attenuation curve. So in my first plot is only a 2d version. And looks like: So, now I have an extra challenge, add a third variable... this variable if the "color" of each cross in the first plot. My doubts are: ok i can plot the data in 3d but how can i keep the log log form? In my first plot i used those lines: J = DM(a,:); mag=J(:,2); // Magnitude [Mw] depth=J(:,3);// [km] Dist=J(:,1) // [km] acc=J(:,4);// acceleration // Plot Log Log //scf(6); //clf(6); //plot2d("ll",Dist,acc,-1); //p.children.mark_mode = "on"; //p.children.mark_style = 9; //p.children.thickness = 3; //p.children.mark_foreground = 2; //xtitle("Loglog", "Distance (km)", "Peak Ground Acceleration (m/s/s)"); set(gca(),"grid",[10 10]); and now for my second version "mag" is my third variable and gonna give the "color". How can I do that??? Please, please!!! I need help I'll be very thankful !!! -- View this message in context: http://mailinglists.scilab.org/loglog-plot-in-3d-tp4027785.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From serge.steer at inria.fr Wed Nov 6 22:14:15 2013 From: serge.steer at inria.fr (Serge Steer) Date: Wed, 6 Nov 2013 22:14:15 +0100 (CET) Subject: [Scilab-users] loglog plot in 3d In-Reply-To: <1383762604521-4027785.post@n3.nabble.com> Message-ID: <1058901890.2714473.1383772455063.JavaMail.root@inria.fr> You can use set(gca(),'log_flags','lln') to have the x and y axis in log mode and z in normal (linear) mode Serge Steer ----- Mail original ----- > De: "samaelkreutz" > ?: users at lists.scilab.org > Envoy?: Mercredi 6 Novembre 2013 19:30:04 > Objet: [Scilab-users] loglog plot in 3d > > Hello everyone!!! > > Im working in an attenuation curve. So in my first plot is only a 2d > version. And looks like: > > > So, now I have an extra challenge, add a third variable... this > variable if > the "color" of each cross in the first plot. My doubts are: ok i can > plot > the data in 3d but how can i keep the log log form? > > In my first plot i used those lines: > > J = DM(a,:); > mag=J(:,2); // Magnitude [Mw] > depth=J(:,3);// [km] > Dist=J(:,1) // [km] > acc=J(:,4);// acceleration > > > // Plot Log Log > //scf(6); > //clf(6); > //plot2d("ll",Dist,acc,-1); > //p.children.mark_mode = "on"; > //p.children.mark_style = 9; > //p.children.thickness = 3; > //p.children.mark_foreground = 2; > //xtitle("Loglog", "Distance (km)", "Peak Ground Acceleration > (m/s/s)"); > set(gca(),"grid",[10 10]); > > > > and now for my second version "mag" is my third variable and gonna > give the > "color". How can I do that??? > Please, please!!! > I need help > > I'll be very thankful !!! > > > > > > > > > > > -- > View this message in context: > http://mailinglists.scilab.org/loglog-plot-in-3d-tp4027785.html > Sent from the Scilab users - Mailing Lists Archives mailing list > archive at Nabble.com. > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > From kopac.jakub at gmail.com Thu Nov 7 19:08:55 2013 From: kopac.jakub at gmail.com (kjubo) Date: Thu, 7 Nov 2013 10:08:55 -0800 (PST) Subject: [Scilab-users] graphic issue Message-ID: <1383847735210-4027790.post@n3.nabble.com> hello all, I found a problem with graphics on scilab 5.5 beta1. when I pass with mouse over some buttons, they apear black, sometimes is only one button,in other time is all console (see pics). I found this problem also in last 5.4 branch but not in 5.3 branch. for this reason I have to use 5.3. I am using win7 32 bit. is there any setting which should I set up to eliminate this problem? any help will be appreciated. thanks. Jakub -- View this message in context: http://mailinglists.scilab.org/graphic-issue-tp4027790.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From froz3nshade at gmail.com Fri Nov 8 10:28:52 2013 From: froz3nshade at gmail.com (Bogdan Burlacu) Date: Fri, 8 Nov 2013 10:28:52 +0100 Subject: [Scilab-users] Minimal mono/call_scilab example crashes with optimizations turned on Message-ID: <20131108102852.379f6658@bogdanb> Hello, I am using Scilab-5.4.1 and mono-3.2.3, on 64-bit arch linux. I've attached a minimal example in the file test.cs (also posted on http://pastebin.com/JukugFFs). The code is compiled with 'gmcs /reference:Mono.Posix.dll /unsafe test.cs' If I run it with 'mono -O=all test.exe', I get the following error: $ mono -O=all test.exe Trying to load test native library Bool matrix: False True False True False True Stacktrace: at <0xffffffff> at (wrapper managed-to-native) object.__icall_wrapper_mono_marshal_free (intptr) <0xffffffff> at (wrapper managed-to-native) Test.createNamedMatrixOfBoolean (intptr,string,int,int,int[]) <0xffffffff> at Test.createNamedMatrixOfBoolean (string,int,int,bool[]) <0x000cb> at Test.Main () <0x0013b> at (wrapper runtime-invoke) object.runtime_invoke_void (object,intptr,intptr,intptr) <0xffffffff> Native stacktrace: mono() [0x4b5bc1] mono() [0x50cc3b] mono() [0x423f82] /usr/lib/libpthread.so.0(+0xf870) [0x7f62b9d29870] /usr/lib/libc.so.6(cfree+0x14) [0x7f62b99eb094] [0x41324e4a] If I run it with 'mono -O=all,-deadce test.exe', everything works fine. Can anyone explain this behaviour? I think it has to do with the initialization of a new int array inside the createNamedMatrixOfBoolean method. Thanks, Bogdan From sylvestre.ledru at scilab-enterprises.com Fri Nov 8 10:51:58 2013 From: sylvestre.ledru at scilab-enterprises.com (Sylvestre Ledru) Date: Fri, 08 Nov 2013 10:51:58 +0100 Subject: [Scilab-users] Minimal mono/call_scilab example crashes with optimizations turned on In-Reply-To: <20131108102852.379f6658@bogdanb> References: <20131108102852.379f6658@bogdanb> Message-ID: <527CB43E.7040204@scilab-enterprises.com> Hello, On 08/11/2013 10:28, Bogdan Burlacu wrote: > Hello, > > I am using Scilab-5.4.1 and mono-3.2.3, on 64-bit arch linux. > > I've attached a minimal example in the file test.cs (also posted on > http://pastebin.com/JukugFFs). > > The code is compiled with 'gmcs /reference:Mono.Posix.dll /unsafe > test.cs' > AFAIK, this feature has never been tested with Mono... I am glad to know that it is even starting correctly without the optimisation... You should try to make a smaller test case and/or build with the debug symbols. Sylvestre From froz3nshade at gmail.com Fri Nov 8 11:24:33 2013 From: froz3nshade at gmail.com (Bogdan Burlacu) Date: Fri, 8 Nov 2013 11:24:33 +0100 Subject: [Scilab-users] Minimal mono/call_scilab example crashes with optimizations turned on In-Reply-To: <527CB43E.7040204@scilab-enterprises.com> References: <20131108102852.379f6658@bogdanb> <527CB43E.7040204@scilab-enterprises.com> Message-ID: <20131108112433.5fc59bc2@bogdanb> On Fri, 08 Nov 2013 10:51:58 +0100 Sylvestre Ledru wrote: > Hello, > > On 08/11/2013 10:28, Bogdan Burlacu wrote: > > Hello, > > > > I am using Scilab-5.4.1 and mono-3.2.3, on 64-bit arch linux. > > > > I've attached a minimal example in the file test.cs (also posted on > > http://pastebin.com/JukugFFs). > > > > The code is compiled with 'gmcs /reference:Mono.Posix.dll /unsafe > > test.cs' > > > AFAIK, this feature has never been tested with Mono... > I am glad to know that it is even starting correctly without the > optimisation... > You should try to make a smaller test case and/or build with the > debug symbols. > > Sylvestre > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users Hi, Building the example with debug symbols adds very little new information: Stacktrace: at <0xffffffff> at (wrapper managed-to-native) object.__icall_wrapper_mono_marshal_free (intptr) at (wrapper managed-to-native) Test.createNamedMatrixOfBoolean (intptr,string,int,int,int[]) at Test.createNamedMatrixOfBoolean (string,int,int,bool[]) [0x00042] in /home/master/scilab/call_scilab_test/test.cs:56 at Test.Main () [0x00099] in /home/master/scilab/call_scilab_test/test.cs:128 at (wrapper runtime-invoke) object.runtime_invoke_void (object,intptr,intptr,intptr) Native stacktrace: mono() [0x4b5bc1] mono() [0x50cc3b] mono() [0x423f82] /usr/lib/libpthread.so.0(+0xf870) [0x7fdc24a40870] /usr/lib/libc.so.6(cfree+0x14) [0x7fdc24702094] [0x4071fe4a] It says that the crash happens when calling the native scilab function at line 56. I think the problem is when a wrapper method (for example, createNamedMatrixOfBoolean) initializes a variable (var matrixInt = new int[]) and then passes its address to the native call: api_Err SciErr = createNamedMatrixOfBoolean (IntPtr.Zero, matrixName, iRows, iCols, matrixInt); The same error occurs for example in the call to getNamedVarType() from http://gitweb.scilab.org/?p=scilab.git;a=blob;f=scilab/modules/call_scilab/examples/call_scilab/NET/C%23/dotnetsci/Scilab.cs;h=6b76897a8b5238838627653b6c0a33b043d9201f;hb=HEAD Passing &iType in the getNamedVarType() native call in the wrapper causes the program to crash (with optimizations): public unsafe int getNamedVarType(string matrixName) { int iType = 0; System.IntPtr ptrEmpty = new System.IntPtr(); Scilab_cs_wrapper.api_Err SciErr = Scilab_cs_wrapper.getNamedVarType(ptrEmpty, matrixName, &iType); if (SciErr.iErr == 0) return iType; return 0; } On the other hand, changing the wrapper method to directly call the more low level native methods works: public unsafe int getNamedVarType(string matrixName) { int* iAddr = null; Scilab_cs_wrapper.api_Err sciErr; int iType = 0; sciErr = Scilab_cs_wrapper.getVarAddressFromName (IntPtr.Zero, matrixName, &iAddr); if (sciErr.iErr != 0) { Console.WriteLine("Unable to get address of variable " + matrixName); return -1; } sciErr = Scilab_cs_wrapper.getVarType(IntPtr.Zero, iAddr, &iType); if (sciErr.iErr != 0) { Console.WriteLine ("Unable to get type of variable " + matrixName); return -1; } return iType; } So it has something to do with passing pointers from managed to unmanaged native calls and so on. All that is needed to reproduce this behaviour is to run the call_scilab C# example (from the scilab source) with mono and turn on optimizations. Maybe you guys have some idea what goes on under the hood. I have looked at the sources in api_common.cpp and api_boolean.cpp and the memory allocation mechanisms seem rather complicated. Best, Bogdan From froz3nshade at gmail.com Fri Nov 8 12:02:24 2013 From: froz3nshade at gmail.com (Bogdan Burlacu) Date: Fri, 8 Nov 2013 12:02:24 +0100 Subject: [Scilab-users] Minimal mono/call_scilab example crashes with optimizations turned on In-Reply-To: <527CB43E.7040204@scilab-enterprises.com> References: <20131108102852.379f6658@bogdanb> <527CB43E.7040204@scilab-enterprises.com> Message-ID: <20131108120224.49de9420@bogdanb> On Fri, 08 Nov 2013 10:51:58 +0100 Sylvestre Ledru wrote: > Hello, > > On 08/11/2013 10:28, Bogdan Burlacu wrote: > > Hello, > > > > I am using Scilab-5.4.1 and mono-3.2.3, on 64-bit arch linux. > > > > I've attached a minimal example in the file test.cs (also posted on > > http://pastebin.com/JukugFFs). > > > > The code is compiled with 'gmcs /reference:Mono.Posix.dll /unsafe > > test.cs' > > > AFAIK, this feature has never been tested with Mono... > I am glad to know that it is even starting correctly without the > optimisation... > You should try to make a smaller test case and/or build with the > debug symbols. > > Sylvestre > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users Hello again, I found out what the problem was: Within Scilab, the SciErr struct is declared like this: struct api_Err { int iErr; int iMsgCount; char* pstMsg[MESSAGE_STACK_SIZE]; } SciErr; while in Scilab_cs_wrapper.cs, it is: [StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] public unsafe struct api_Err { public int iErr; public int iMsgCount; public fixed int pstructMsg[5]; } This struct should be defined as: [StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] public unsafe struct api_Err { public int iErr; public int iMsgCount; public fixed char pstructMsg[5]; } Notice I changed the last field from 'int' to 'char'. Now, everything works fine. Credit goes to a reddit user which spotted the difference: http://www.reddit.com/r/csharp/comments/1pz9od/mono_scilab_unsafe_code_and_optimization/cd9hqab Best, Bogdan From communication at scilab-enterprises.com Fri Nov 8 13:40:46 2013 From: communication at scilab-enterprises.com (Scilab Communications) Date: Fri, 08 Nov 2013 13:40:46 +0100 Subject: [Scilab-users] Save the date - ScilabTEC 2014 Message-ID: <527CDBCE.6040807@scilab-enterprises.com> Dear Scilab Community, Organized by Scilab Enterprises and the Scilab International Partnership Committee with the support of Inria, ScilabTEC 2014 will be held on May 15 and 16 at Edouard VII Convention Center in Paris. Coming soon a dedicated website and a call for papers. More on: http://www.scilab.org/community/news/20131108 Best Regards -- Communication Department, Scilab Enterprises 143bis rue Yves Le Coz - 78000 Versailles (France) http://www.scilab-enterprises.com - http://www.scilab.org From Nora.Lecoeur at rhul.ac.uk Fri Nov 8 19:47:58 2013 From: Nora.Lecoeur at rhul.ac.uk (eleo) Date: Fri, 8 Nov 2013 10:47:58 -0800 (PST) Subject: [Scilab-users] Write format Message-ID: <1383936478279-4027803.post@n3.nabble.com> Hello, How to write the format to export data (a vector v) in a file as a vector line (56 rows, 1 column). write("v.dat",v, FORMAT ? ) Thank you. Eleo -- View this message in context: http://mailinglists.scilab.org/Write-format-tp4027803.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From chuox.bece at gmail.com Fri Nov 8 20:30:03 2013 From: chuox.bece at gmail.com (Chuox) Date: Fri, 8 Nov 2013 11:30:03 -0800 (PST) Subject: [Scilab-users] Solving a ecuation Message-ID: <1383939003607-4027804.post@n3.nabble.com> I need to solve the following equation det(Kx-w*M)=0, Were Kx, and M are know matrix, in my texas vollage 200 (R) i solve it like this: Kx= 457458.17 - 187960.85 0. 0. 0. - 187960.85 386294.62 - 198333.77 0. 0. 0. - 198333.77 269758.49 - 71424.72 0. 0. 0. - 71424.72 100135.95 - 28711.232 0. 0. 0. - 28711.232 - 28711.232 M= 457458.17 - 187960.85 0. 0. 0. - 187960.85 386294.62 - 198333.77 0. 0. 0. - 198333.77 269758.49 - 71424.72 0. 0. 0. - 71424.72 100135.95 - 28711.232 0. 0. 0. - 28711.232 - 28711.232 det(Kx-w*M) and i get an ecuation in fucntion of w like this: -769068340073*(w^5-6240.278*w^4+13359439.553*w^3-11742579744.9*w^2+3.7606*10^12*w-2.67*10^14) Then: solve(-769068340073*(w^5-6240.278*w^4+13359439.553*w^3-11742579744.9*w^2+3.7606*10^12*w-2.67*10^14)=0,w) The following results: w=98.064 or w=484.37 or w=1261.711 or w=1596.79 or w=2799.33 I dont even know how to solve the last equation in SciLab. Thank a lot! -- View this message in context: http://mailinglists.scilab.org/Solving-a-ecuation-tp4027804.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From stephane.mottelet at gmail.com Fri Nov 8 23:39:35 2013 From: stephane.mottelet at gmail.com (=?utf-8?Q?St=C3=A9phane_Mottelet?=) Date: Fri, 8 Nov 2013 23:39:35 +0100 Subject: [Scilab-users] Solving a ecuation In-Reply-To: <1383939003607-4027804.post@n3.nabble.com> References: <1383939003607-4027804.post@n3.nabble.com> Message-ID: Hello, spec(Kx,M) will give you all the solutions. S. > Le 8 nov. 2013 ? 20:30, Chuox a ?crit : > > I need to solve the following equation > > det(Kx-w*M)=0, Were Kx, and M are know matrix, in my texas vollage 200 (R) i > solve it like this: > > Kx= > > > 457458.17 - 187960.85 0. 0. 0. > - 187960.85 386294.62 - 198333.77 0. 0. > 0. - 198333.77 269758.49 - 71424.72 0. > 0. 0. - 71424.72 100135.95 - 28711.232 > 0. 0. 0. - 28711.232 - 28711.232 > > M= > > 457458.17 - 187960.85 0. 0. 0. > - 187960.85 386294.62 - 198333.77 0. 0. > 0. - 198333.77 269758.49 - 71424.72 0. > 0. 0. - 71424.72 100135.95 - 28711.232 > 0. 0. 0. - 28711.232 - 28711.232 > > > det(Kx-w*M) and i get an ecuation in fucntion of w like this: > > -769068340073*(w^5-6240.278*w^4+13359439.553*w^3-11742579744.9*w^2+3.7606*10^12*w-2.67*10^14) > > Then: > solve(-769068340073*(w^5-6240.278*w^4+13359439.553*w^3-11742579744.9*w^2+3.7606*10^12*w-2.67*10^14)=0,w) > > The following results: > w=98.064 or w=484.37 or w=1261.711 or w=1596.79 or w=2799.33 > > I dont even know how to solve the last equation in SciLab. > > Thank a lot! > > > > > > -- > View this message in context: http://mailinglists.scilab.org/Solving-a-ecuation-tp4027804.html > Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users From Serge.Steer at inria.fr Sat Nov 9 10:31:13 2013 From: Serge.Steer at inria.fr (Serge Steer) Date: Sat, 09 Nov 2013 10:31:13 +0100 Subject: [Scilab-users] Write format In-Reply-To: <1383936478279-4027803.post@n3.nabble.com> References: <1383936478279-4027803.post@n3.nabble.com> Message-ID: <527E00E1.1000502@inria.fr> Le 08/11/2013 19:47, eleo a ?crit : > Hello, > > How to write the format to export data (a vector v) in a file as a vector > line (56 rows, 1 column). > write("v.dat",v, FORMAT ? ) something like write("v.dat",v,"(E15.8)") or write("v.dat",v,"(F15.8)") or fd=mopen("v.dat","w") mfprintf(fd,"%f\n",v) mclose(fd) Serge Steer > Thank you. > > Eleo > > > > -- > View this message in context: http://mailinglists.scilab.org/Write-format-tp4027803.html > Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > From d_r_ferguson at hotmail.com Sat Nov 16 02:03:02 2013 From: d_r_ferguson at hotmail.com (Ryan Ferguson) Date: Fri, 15 Nov 2013 21:03:02 -0400 Subject: [Scilab-users] Scilab Startup Failure Message-ID: Every time I start-up SciLab I get the following error (See below). Even though the UI appears operational, the menu buttons (i.e. open file, save as, etc?) do not work. This is happening on multiple computers including my home laptop, PC at work, and PC at the university I am at. When I try and chase the problem down by going through the code, I can get as far as seeing the problem exists in the ?lib? file in ?C:\Program Files\scilab-5.4.1\modules\atoms\macros?. I am running Windows 7, 64 bit, on all of the computers. The problem started as soon as I started using 5.4.0. and continued when I tried 5.4.1?Any ideas? Startup execution: loading initial environment %val=[?000sinternalslib; !--error 2 Invalid factor. in execstr instruction called by : at line 35 of function evstr called by : at line 848 of function %_sodload called by : at line 6 of function atomsSystemInit called by : atomsSystemInit(); at line 107 of exec file called by : exec('SCI/etc/scilab.start',-1);; -------------- next part -------------- An HTML attachment was scrubbed... URL: From d_r_ferguson at hotmail.com Sat Nov 16 02:09:07 2013 From: d_r_ferguson at hotmail.com (DRFerguson) Date: Fri, 15 Nov 2013 17:09:07 -0800 (PST) Subject: [Scilab-users] Scilab Startup Failure on Multiple PC's Message-ID: <1384564147333-4027823.post@n3.nabble.com> Every time I start-up SciLab I get the following error (See below). Even though the UI appears operational, the menu buttons (i.e. open file, save as, etc?) do not work. This is happening on multiple computers including my home laptop, PC at work, and PC at the university I am at. When I try and chase the problem down by going through the code, I can get as far as seeing the problem exists in the ?lib? file in ?C:\Program Files\scilab-5.4.1\modules\atoms\macros?. I am running Windows 7, 64 bit, on all of the computers. The problem started as soon as I started using 5.4.0. and continued when I tried 5.4.1?Any ideas? Startup execution: loading initial environment %val=[?000sinternalslib; !--error 2 Invalid factor. in execstr instruction called by : at line 35 of function evstr called by : at line 848 of function %_sodload called by : at line 6 of function atomsSystemInit called by : atomsSystemInit(); at line 107 of exec file called by : exec('SCI/etc/scilab.start',-1);; -- View this message in context: http://mailinglists.scilab.org/Scilab-Startup-Failure-on-Multiple-PC-s-tp4027823.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From nomiya at galaxy.dti.ne.jp Sun Nov 17 05:07:11 2013 From: nomiya at galaxy.dti.ne.jp (Masaru Nomiya) Date: Sun, 17 Nov 2013 13:07:11 +0900 Subject: [Scilab-users] Which java's error? Message-ID: <87bo1jk6xc.wl%nomiya@galaxy.dti.ne.jp> Hello, I'm using scilab-5.5.0-beta. I tested scilab with equdation; a=5; b=3; c=a*a-2*b.^2; plot2d(a,b); But I'vs got no graph with the error messases; > env LC_ALL=ja_JP.UTF-8 scilab libEGL warning: DRI2: failed to authenticate javax.media.opengl.GLException: Zero components, format and/or type: PixelAttributes[comp 4, fmt 0x1908, type 0x0, bytesPerPixel 0] javax.media.opengl.GLException: Zero components, format and/or type: PixelAttributes[comp 4, fmt 0x1908, type 0x0, bytesPerPixel 0] javax.media.opengl.GLException: Zero components, format and/or type: PixelAttributes[comp 4, fmt 0x1908, type 0x0, bytesPerPixel 0] javax.media.opengl.GLException: Zero components, format and/or type: PixelAttributes[comp 4, fmt 0x1908, type 0x0, bytesPerPixel 0] Which java's error, I wonder? Could you inform me of this problem? Thanks in adavance. --- ????? Masaru Nomiya mail-to: nomiya @ galaxy.dti.ne.jp ???? ???? "Bill! You married with Computers. Not with Me!" "No..., with money." From vincent.couvert at scilab-enterprises.com Mon Nov 18 08:42:24 2013 From: vincent.couvert at scilab-enterprises.com (Vincent COUVERT) Date: Mon, 18 Nov 2013 08:42:24 +0100 Subject: [Scilab-users] Scilab Startup Failure on Multiple PC's In-Reply-To: <1384564147333-4027823.post@n3.nabble.com> References: <1384564147333-4027823.post@n3.nabble.com> Message-ID: <5289C4E0.3070701@scilab-enterprises.com> Hello, This bug has been reported here http://bugzilla.scilab.org/show_bug.cgi?id=12842 Can you attach this corrupted file to the bug report? Thanks. Le 16/11/2013 02:09, DRFerguson a ?crit : > Every time I start-up SciLab I get the following error (See below). Even > though the UI appears operational, the menu buttons (i.e. open file, save > as, etc?) do not work. This is happening on multiple computers including my > home laptop, PC at work, and PC at the university I am at. When I try and > chase the problem down by going through the code, I can get as far as seeing > the problem exists in the ?lib? file in ?C:\Program > Files\scilab-5.4.1\modules\atoms\macros?. I am running Windows 7, 64 bit, on > all of the computers. The problem started as soon as I started using 5.4.0. > and continued when I tried 5.4.1?Any ideas? > > Startup execution: > loading initial environment > %val=[?000sinternalslib; > !--error 2 > Invalid factor. > in execstr instruction called by : > at line 35 of function evstr called by : > at line 848 of function %_sodload called by : > at line 6 of function atomsSystemInit called by : > atomsSystemInit(); > at line 107 of exec file called by : > exec('SCI/etc/scilab.start',-1);; > > > > > -- > View this message in context: http://mailinglists.scilab.org/Scilab-Startup-Failure-on-Multiple-PC-s-tp4027823.html > Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users From communication at scilab-enterprises.com Mon Nov 18 09:22:03 2013 From: communication at scilab-enterprises.com (Scilab Communications) Date: Mon, 18 Nov 2013 09:22:03 +0100 Subject: [Scilab-users] ScilabTEC 2014 - Call for papers Message-ID: <5289CE2B.2090701@scilab-enterprises.com> Is this email not displaying correctly? View it in your browser ScilabTEC Call for Papers ScilabTEC is the annual meeting of current and future Scilab users which has become the major event of numerical computation and simulation community since 2009. SUBMIT YOUR ABSTRACT at scilabtec at scilab-enterprises.com Deadline for abstract submission: 17th January 2014 The Conference Commitee welcomes abstracts on the main scientific domains using Scilab/Xcos for numerical computation such as automotive, aeronautics, space, energy, defense, telecommunications, biomedical, finance, transportation, environment. The purpose of the presentation is to show the full potential of Scilab/Xcos for solving real life problems. In particular, Scilab industrial applications and new Scilab external modules presentations will be greatly appreciated. http://www.scilabtec.com Communication Department, Scilab Enterprises | communication at scilab-enterprises.com 143bis rue Yves Le Coz - 78000 Versailles | www.scilab-enterprises.com - www.scilab.org scilabtec -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/png Size: 12875 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/png Size: 16786 bytes Desc: not available URL: From martin.highUp at gmx.net Tue Nov 19 15:45:41 2013 From: martin.highUp at gmx.net (MartinUp2) Date: Tue, 19 Nov 2013 06:45:41 -0800 (PST) Subject: [Scilab-users] xcos blocks showing dynamic parameters Message-ID: <1384872341133-4027839.post@n3.nabble.com> Hello My problem seems to be similar to the thread http://mailinglists.scilab.org/xcos-blocks-showing-dynamic-parameters-tp4025340.html but I could not solve it with this information. My goal is to show some parameters (text and graphs) in the icon of the block which shall be calculated based on the parameters and updated when parameters change. My current, not working, solution looks simplified like following. ----------------- function [x,y,typ] = MyBlock(job, arg1, arg2) ......... disp(job) select job case "plot" then txt = Do something to generate the text which shall be shown. standard_draw(arg1); ............... case "define" then ............... txt = Do something to generate the text which shall be shown. gr_i=['xstringb(orig(1),orig(2),txt,sz(1),sz(2),''fill'');']; blockIconDefaultSize = [4, 2]; x = standard_define(blockIconDefaultSize, model, exprs, gr_i); x.graphics.in_label = inport_labels; x.graphics.out_label = outport_labels; x.graphics.style = 'fillColor=#61bdfc;gradientColor=#61bdfc;rounded=%f;' ................ end endfunction ----------------- job=?plot? is run while generating the palette and then never again and thus the icon is created but never updated. Where can be the problem that job=?plot? is not run to update the icons? job=?plot? is implemented the same way in most of the standard blocks I looked at, e.g. CONST. The solution mentioned in the thread http://mailinglists.scilab.org/xcos-blocks-showing-dynamic-parameters-tp4025340.html does not work for me. I need to do some calculation to get the text which is not directly stored in exprs. Additionally I want to add some graphs to the block icon. How can I get something like the CONST block working? When I make copy of the CONST block it is not working either. A related question: How can I get rid of the box around xstringb() and make it transparent? The original CONST block does not have that box and is using xstringb() too. Thanks for help / Martin -- View this message in context: http://mailinglists.scilab.org/xcos-blocks-showing-dynamic-parameters-tp4027839.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From papriwalprateek at gmail.com Thu Nov 21 09:45:34 2013 From: papriwalprateek at gmail.com (prateek papriwal) Date: Thu, 21 Nov 2013 14:15:34 +0530 Subject: [Scilab-users] Building Collection of Scilab Information Message-ID: Hello Everyone, We are a group of engineering students from IIT Delhi, India. I, myself took part in Google Summer Of Code 2012 under Scilab organization. Working with scilab, i found out that there is a lot of information present in the archives of mailing list. Similarly a lot information is present on bugzilla.scilab.org, scilab help, stackoverflow and other important resources and documentations. What we aim is to structure and organize the information. The information present on web is - 1) Scattered (information related to scilab is present in different places) 2) Unstructured and unorganized 3) Unused (as in case of archives of scilab mailing list) We have built a platform (www.daqwest.com) which aims at systematically tackling each of these issues and build an ideal format which leads to a cleaner, more organized and highly quality information. For example, check out--> http://daqwest.com/quests/207/search?search=plot3d , http://daqwest.com/quests/207/search?search=call_scilab This leads to the platform which has definition, examples, results from the huge archives of mailing list, stackoverflow questions, bugzilla issues. And the related terms. More --> http://daqwest.com/quests/207/search?search=installation%20problem, http://daqwest.com/quests/207/search?search=ilib_for_link Similarly check out the maling list platform--> http://daqwest.com/quests/207/qs/2902 This is a thread on the subject "use of fsolve". There are tags on the right side which link this thread to other threads,bugs, stackoverflow questions. Moreover, by clicking on "fsolve", you can traverse through all the threads related to "fsolve". There are a lot of interesting features of the mailing list platform -: - Spam-free mailing list - Interactive User Interface - Beautiful and Responsive Editor - Mails linked through tags - Send invites to join the Mailing List - Colored Code Blocks Join the scilab quest :) Waiting for your feedbacks and suggestions !!! Thanks and Regards Prateek Papriwal Daqwest Team -------------- next part -------------- An HTML attachment was scrubbed... URL: From dick.ibitoru at yahoo.com Mon Nov 25 15:34:42 2013 From: dick.ibitoru at yahoo.com (Ibitoru Dick) Date: Mon, 25 Nov 2013 14:34:42 +0000 (GMT) Subject: [Scilab-users] (no subject) Message-ID: <1385390082.18763.YahooMailNeo@web171604.mail.ir2.yahoo.com> please what is the advantage of SCILAB over MATLAB -------------- next part -------------- An HTML attachment was scrubbed... URL: From Christophe.Dang at sidel.com Mon Nov 25 15:48:14 2013 From: Christophe.Dang at sidel.com (Dang, Christophe) Date: Mon, 25 Nov 2013 15:48:14 +0100 Subject: [Scilab-users] (no subject) In-Reply-To: <1385390082.18763.YahooMailNeo@web171604.mail.ir2.yahoo.com> References: <1385390082.18763.YahooMailNeo@web171604.mail.ir2.yahoo.com> Message-ID: <3B5FFC67498DFF49AE7271A584867D16F3254CDD58@301EX00100.sidel.com> Hello, > De : Ibitoru Dick > Envoy? : lundi 25 novembre 2013 15:35 > > please what is the advantage of SCILAB over MATLAB similar answer to http://mailinglists.scilab.org/Scilab-users-Advantages-of-Scilab-over-MATLAB-td4027282.html You might have some elements in Alan Edelman, /Open Source and Traditional Technical Computing/ http://www.scilab.org/content/download/395/2850/file/ScilabTec_Keynote.pdf Best regards -- Christophe Dang Ngoc Chan Mechanical calculation engineer ______________________________________________________________________ This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error), please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden. ______________________________________________________________________ From krotersv at gmail.com Mon Nov 25 15:49:11 2013 From: krotersv at gmail.com (=?UTF-8?B?0KHRgtCw0L3QuNGB0LvQsNCy?=) Date: Mon, 25 Nov 2013 20:49:11 +0600 Subject: [Scilab-users] (no subject) In-Reply-To: <1385390082.18763.YahooMailNeo@web171604.mail.ir2.yahoo.com> References: <1385390082.18763.YahooMailNeo@web171604.mail.ir2.yahoo.com> Message-ID: <52936367.6090102@gmail.com> Hi. 1) The cost of Scilab. 2) Scilab allow working in Windows and GNU/Linux simultaneously (for me it is the biggest advantage). If alphabet of your language is larger than ASCII, then you will appreciate it. Matlab is cross-platform but codepage is its weak point. Stanislav 25.11.2013 20:34, Ibitoru Dick ?????: > please what is the advantage of SCILAB over MATLAB > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users -------------- next part -------------- An HTML attachment was scrubbed... URL: From papriwalprateek at gmail.com Tue Nov 26 06:23:50 2013 From: papriwalprateek at gmail.com (prateek papriwal) Date: Tue, 26 Nov 2013 10:53:50 +0530 Subject: [Scilab-users] (no subject) In-Reply-To: <52936367.6090102@gmail.com> References: <1385390082.18763.YahooMailNeo@web171604.mail.ir2.yahoo.com> <52936367.6090102@gmail.com> Message-ID: Hi, Check out http://daqwest.com/quests/207/search?search=SCILAB%20over%20MATLAB. Here u can get the related mails, as well as questions from stackoverflow. On Mon, Nov 25, 2013 at 8:19 PM, ????????? wrote: > Hi. > > 1) The cost of Scilab. > 2) Scilab allow working in Windows and GNU/Linux simultaneously (for me it > is the biggest advantage). If alphabet of your language is larger than > ASCII, then you will appreciate it. Matlab is cross-platform but codepage > is its weak point. > > Stanislav > > 25.11.2013 20:34, Ibitoru Dick ?????: > > please what is the advantage of SCILAB over MATLAB > > > _______________________________________________ > users mailing listusers at lists.scilab.orghttp://lists.scilab.org/mailman/listinfo/users > > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > > -- Thanks and Regards Prateek Papriwal B.Tech, Electrical IIT Delhi -------------- next part -------------- An HTML attachment was scrubbed... URL: From sasza7 at gmail.com Tue Nov 26 01:21:16 2013 From: sasza7 at gmail.com (=?ISO-8859-2?Q?Piotr_G=B3=EAbski?=) Date: Tue, 26 Nov 2013 01:21:16 +0100 Subject: [Scilab-users] Open comport in C macro Message-ID: I try to develop some hardware which I want to connect to Xcos in Linux (simply DAQ). Right now i write macro making a block in Xcos. I can put parameters to my C library and get date from (loopback). Right now i try to connect to usb/rs device using this library: http://www.teuniz.net/RS-232/ And get this error: !Oups. A fatal error has been detected by Scilab. ! ! ! !Your instance will probably crash soon. ! ! ! !Please report a bug on http://bugzilla.scilab.org/ ! ! ! !with: ! ! ! !* a sample code which reproduces the issue ! ! ! !* the result of [a, b] = getdebuginfo() ! ! ! !* the following information: ! ! ! ![debian:10408] Signal: Segmentation fault (11) ! ! ! ![debian:10408] Signal code: Invalid permissions (2) ! ! ! ![debian:10408] Failing at address: 0x7f36042c1d10 ! ! ! ! ! ! ! !Stos wywo?a?: ! ! ! ! 1: 0x7107eb < > (/opt/scilab-5.4.1/t! ! hirdparty/java//lib/amd64/server/libjvm.so) ! ! ! ! 2: 0x714350 (/opt/scilab-5.4.1/t! ! hirdparty/java//lib/amd64/server/libjvm.so) ! ! ! ! 3: 0x7106fe < > (/opt/scilab-5.4.1/t! ! hirdparty/java//lib/amd64/server/libjvm.so) ! ! ! ! 4: 0xf030 < > (/lib/x86_64-linux-g! ! nu/libpthread.so.0) ! ! ! ! 5: 0x190b (/home/sasza/scilab/! ! LewitronInC3/src/c/liblewitron.so) ! ! ! ! 6: 0x139a (/home/sasza/scilab/! ! LewitronInC3/src/c/liblewitron.so) ! ! ! ! 7: 0x1235 (/home/sasza/scilab/! ! LewitronInC3/src/c/liblewitron.so) ! ! ! ! 8: 0x2852c (/opt/scilab-5.4.1/l! ! ib/scilab/libsciscicos.so) ! ! ! ! 9: 0x31919 (/opt/scilab-5.4.1/l! ! ib/scilab/libsciscicos.so) ! Becose i devide program into parts i can use the same source in standalone application - it's work perfectly. The problem is probably permission to /dev/ttyUSB. I don't know exactly the structure of scilab, but i think that the java virtual machine not allowed to open comport. So the question is: how to workaround it? (for dirty solution i try to exectue evrything as root, but it has not effect :/ ) Any ideas? Thanks for any replays Piotr -------------- next part -------------- An HTML attachment was scrubbed... URL: From ameni.khecharem at gmail.com Tue Nov 26 10:30:00 2013 From: ameni.khecharem at gmail.com (Akhechar) Date: Tue, 26 Nov 2013 01:30:00 -0800 (PST) Subject: [Scilab-users] HDF5: infinite loop closing library Message-ID: <1385458200817-4027882.post@n3.nabble.com> Hi, I am trying to run my program using javasci through eclipse but I had this error : *HDF5: infinite loop closing library D,T,F,FD,P,FD,P,FD,P,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E* I am working under linux mint with the binary version of Scilab! >From what I understand, it is a bug but I can not fix it .. Thank you! -- View this message in context: http://mailinglists.scilab.org/HDF5-infinite-loop-closing-library-tp4027882.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From sumit.silentstorm at gmail.com Tue Nov 26 11:38:26 2013 From: sumit.silentstorm at gmail.com (sumit7) Date: Tue, 26 Nov 2013 02:38:26 -0800 (PST) Subject: [Scilab-users] HDF5: infinite loop closing library In-Reply-To: <1385458200817-4027882.post@n3.nabble.com> References: <1385458200817-4027882.post@n3.nabble.com> Message-ID: <1385462306727-4027884.post@n3.nabble.com> Hi , I found here http://www.daqwest.com/quests/207/search?search=hdf5%20javasci a similar mail and a related bug(last in the list) in the bugs category . Hope it helps :) -- View this message in context: http://mailinglists.scilab.org/HDF5-infinite-loop-closing-library-tp4027882p4027884.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From ameni.khecharem at gmail.com Tue Nov 26 12:28:11 2013 From: ameni.khecharem at gmail.com (Akhechar) Date: Tue, 26 Nov 2013 03:28:11 -0800 (PST) Subject: [Scilab-users] HDF5: infinite loop closing library In-Reply-To: <1385462306727-4027884.post@n3.nabble.com> References: <1385458200817-4027882.post@n3.nabble.com> <1385462306727-4027884.post@n3.nabble.com> Message-ID: <1385465291905-4027885.post@n3.nabble.com> Unfortunately, it did not have answers to this mail ! :( -- View this message in context: http://mailinglists.scilab.org/HDF5-infinite-loop-closing-library-tp4027882p4027885.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From antoine.monmayrant at laas.fr Tue Nov 26 13:07:52 2013 From: antoine.monmayrant at laas.fr (Antoine Monmayrant) Date: Tue, 26 Nov 2013 13:07:52 +0100 Subject: [Scilab-users] HDF5: infinite loop closing library In-Reply-To: <1385465291905-4027885.post@n3.nabble.com> References: <1385458200817-4027882.post@n3.nabble.com> <1385462306727-4027884.post@n3.nabble.com> <1385465291905-4027885.post@n3.nabble.com> Message-ID: <52948F18.3010809@laas.fr> On 11/26/2013 12:28 PM, Akhechar wrote: > Unfortunately, it did not have answers to this mail ! :( > > > > -- > View this message in context: http://mailinglists.scilab.org/HDF5-infinite-loop-closing-library-tp4027882p4027885.html > Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users Hi, Here are two bugs filled on bugzilla.scilab.org that might be related: http://bugzilla.scilab.org/show_bug.cgi?id=6935 http://bugzilla.scilab.org/show_bug.cgi?id=6935 My own experience with recent versions of Scilab is that this error message occurs every time Scilab crashes, whatever the reason. I wonder whether this is just a consequence of Scilab crashing, and not the cause of the crash. Like Scilab crashed and thus did not close the hdf5 library properly, which generates this error message. But I'm just guessing... Antoine -------------- next part -------------- An HTML attachment was scrubbed... URL: From eduardo.torrecillas at gmail.com Tue Nov 26 19:13:58 2013 From: eduardo.torrecillas at gmail.com (Eduardo Torrecillas) Date: Tue, 26 Nov 2013 16:13:58 -0200 Subject: [Scilab-users] Help with text files Message-ID: Hello all, I currently have some text files and I would like to extract information from them using Scilab. I have done this before, using mopen and mgetl, for example. Don't know why, but strangely in this case it is not working. I am using Scilab 5.4.1 on Ubuntu (but Scilab 5.4.0 under Windows produced the same result). Please check the attached text file. Simple code such as: fd=mopen('scilab_example.txt','r') phrase=mgetl(fd,1) Produces: phrase=?p If i still try to use mgetl, next lines are always returned as empty. Does anybody have any clue on whats happening? Best regards, -- Eduardo Torrecillas AER-09 -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ? 60A 488F/19-19-21 488*/19-19-21 488*/19-19-21 488*/19-19-21 58A 494F/19-19-22 497*/20-20-22 497*/20-20-22 497*/20-20-22 56A 501F/20-20-23 507*/21-21-23 507*/21-21-23 507*/21-21-23 54A 508F/21-21-24 517*/22-22-25 517*/22-22-25 517*/22-22-25 52A 515F/21-21-24 527*/23-23-26 527*/23-23-26 527*/23-23-26 50 522F/22-22-25 538*/24-24-27 538*/24-24-27 538*/24-24-27 48 529F/22-23-26 547F/25-25-28 550*/26-26-29 550*/26-26-29 46 536F/23-24-27 555F/26-26-29 561F/27-27-30 562*/27-27-30 44 543F/24-24-28 563F/27-27-30 569F/28-28-31 574*/29-29-32 42 550F/24-25-29 571F/27-28-31 577F/28-29-32 584F/30-30-33 40 558F/25-26-30 579F/28-29-32 586F/29-29-33 592F/30-30-34 40 565F/25-26-31 586F/28-29-33 593F/29-30-34 600F/30-31-35 38 565F/25-26-31 587F/29-29-33 594F/30-30-34 601F/31-31-35 38 573F/25-27-31 594F/29-30-34 601F/30-31-35 609F/31-32-36 36 573F/26-27-31 594F/29-30-34 602F/30-31-35 609F/31-32-36 36 580F/26-28-32 602F/29-31-35 609F/31-32-36 617F/32-33-37 34 580F/26-28-32 602F/30-31-35 610F/31-32-36 617F/32-33-37 34 588F/27-28-33 610F/30-31-36 617F/31-32-37 625F/32-33-38 32 588F/27-29-33 610F/30-31-36 617F/31-32-37 625F/33-33-38 32 595F/27-29-34 617F/31-32-37 625F/32-33-38 633F/33-34-39 30 595F/27-29-34 617F/31-32-37 625F/32-33-38 633F/33-34-39 30 602F/28-30-35 625F/31-33-38 633F/32-34-39 640F/34-35-39 28 602F/28-30-35 625F/31-33-38 632F/33-34-39 640F/34-35-39 28 610F/28-30-36 632F/32-33-39 640F/33-34-39 648F/34-35-40 26 609F/28-30-36 632F/32-34-38 640F/33-35-39 647F/34-36-40 26 617F/29-31-37 640F/32-34-39 647F/33-35-40 655F/35-36-41 24 611F/29-31-36 634F/32-34-39 642F/33-35-40 649F/35-36-40 24 619F/29-31-37 642F/33-34-40 649F/34-35-40 658F/35-36-41 22 613F/29-31-36 636F/33-34-39 644F/34-35-40 652F/35-36-41 22 621F/29-32-37 644F/33-35-40 651F/34-36-41 660F/35-37-42 20 615F/29-31-36 638F/33-34-39 646F/34-35-40 654F/35-36-41 20 623F/30-32-37 646F/33-35-40 654F/34-36-41 662F/35-37-42 18 617F/30-31-37 640F/33-35-39 648F/34-36-40 656F/35-37-41 18 625F/30-32-38 648F/33-35-40 656F/35-36-41 664F/36-37-42 16 619F/30-32-37 642F/33-35-40 650F/35-36-41 658F/36-37-41 16 627F/30-32-38 650F/34-35-41 658F/35-36-41 667F/36-37-42 14 621F/30-32-37 644F/34-35-40 652F/35-36-41 661F/36-37-42 14 629F/30-33-38 652F/34-36-41 660F/35-37-42 669F/36-38-43 12 623F/30-32-37 646F/34-35-40 654F/35-36-41 663F/36-37-42 12 631F/31-33-38 654F/34-36-41 663F/35-37-42 671F/37-38-43 10 625F/31-33-38 648F/34-36-40 657F/35-37-41 665F/37-38-42 10 633F/31-33-39 656F/35-36-41 665F/36-37-42 674F/37-38-43 5 630F/31-33-38 654F/35-36-41 662F/36-37-42 671F/37-38-43 5 638F/32-34-39 662F/35-37-42 671F/36-38-43 680F/38-39-44 0 635F/32-34-39 660F/36-37-42 668F/37-38-42 677F/38-39-43 0 643F/32-34-40 668F/36-38-42 677F/37-39-43 685F/38-40-44 -5 641F/33-35-39 666F/36-38-42 674F/38-39-43 682F/39-40-44 -5 648F/33-35-40 674F/37-38-43 683F/38-39-44 691F/39-40-45 From paul.carrico at free.fr Tue Nov 26 20:22:46 2013 From: paul.carrico at free.fr (Paul Carrico) Date: Tue, 26 Nov 2013 20:22:46 +0100 Subject: [Scilab-users] Help with text files In-Reply-To: References: Message-ID: <000401ceeadc$e41020d0$ac306270$@carrico@free.fr> Try basicaly phrase=mgetl(fd) then you?ve an array of characters Paul De : users [mailto:users-bounces at lists.scilab.org] De la part de Eduardo Torrecillas Envoy? : mardi 26 novembre 2013 19:14 ? : International users mailing list for Scilab. Objet : [Scilab-users] Help with text files Hello all, I currently have some text files and I would like to extract information from them using Scilab. I have done this before, using mopen and mgetl, for example. Don't know why, but strangely in this case it is not working. I am using Scilab 5.4.1 on Ubuntu (but Scilab 5.4.0 under Windows produced the same result). Please check the attached text file. Simple code such as: fd=mopen('scilab_example.txt','r') phrase=mgetl(fd,1) Produces: phrase=?p If i still try to use mgetl, next lines are always returned as empty. Does anybody have any clue on whats happening? Best regards, -- Eduardo Torrecillas AER-09 --- Ce courrier ?lectronique ne contient aucun virus ou logiciel malveillant parce que la protection avast! Antivirus est active. http://www.avast.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From eduardo.torrecillas at gmail.com Tue Nov 26 20:43:17 2013 From: eduardo.torrecillas at gmail.com (Eduardo Torrecillas) Date: Tue, 26 Nov 2013 17:43:17 -0200 Subject: [Scilab-users] Help with text files In-Reply-To: <5294f51c.0ce7b40a.6ba1.6d05SMTPIN_ADDED_BROKEN@mx.google.com> References: <5294f51c.0ce7b40a.6ba1.6d05SMTPIN_ADDED_BROKEN@mx.google.com> Message-ID: Hi Paul, Using phrase=mgetl(fd) turns into the same result: phrase = ?? Regards, On Tue, Nov 26, 2013 at 5:22 PM, Paul Carrico wrote: > Try basicaly ? > > phrase=mgetl(fd) > > then you?ve an array of characters ? > > > > Paul > > > > > > > > *De :* users [mailto:users-bounces at lists.scilab.org] *De la part de*Eduardo Torrecillas > *Envoy? :* mardi 26 novembre 2013 19:14 > *? :* International users mailing list for Scilab. > *Objet :* [Scilab-users] Help with text files > > > > Hello all, > > I currently have some text files and I would like to extract information > from them using Scilab. > I have done this before, using mopen and mgetl, for example. > > Don't know why, but strangely in this case it is not working. I am using > Scilab 5.4.1 on Ubuntu (but Scilab 5.4.0 under Windows produced the same > result). > > Please check the attached text file. > > Simple code such as: > > fd=mopen('scilab_example.txt','r') > > phrase=mgetl(fd,1) > > Produces: > > phrase=?p > > If i still try to use mgetl, next lines are always returned as empty. > > Does anybody have any clue on whats happening? > > Best regards, > > > -- > Eduardo Torrecillas > AER-09 > > > ------------------------------ > > > Ce courrier ?lectronique ne contient aucun virus ou logiciel malveillant > parce que la protection Antivirus avast! est > active. > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > > -- Eduardo Torrecillas AER-09 -------------- next part -------------- An HTML attachment was scrubbed... URL: From Mike at Page-One.Waitrose.com Tue Nov 26 20:58:27 2013 From: Mike at Page-One.Waitrose.com (Mike Page) Date: Tue, 26 Nov 2013 19:58:27 -0000 Subject: [Scilab-users] Help with text files In-Reply-To: Message-ID: Hi Eduardo, Sometimes I have had problems like this due to line termination characters. It's possible if a file gets moved from Linux to Windows and back again, it can get unexpected CR or LF characters. Sometimes these are read as a garbage line. I would take a look at your text file with a hex editor to make sure the line terminations are what you expect. Unfortunately as the file you attached got sent via email I can't tell from looking at it what was in your original file. What happens when you try to read the next line? HTH, Mike. -----Original Message----- From: users [mailto:users-bounces at lists.scilab.org]On Behalf Of Eduardo Torrecillas Sent: 26 November 2013 19:43 To: International users mailing list for Scilab. Subject: Re: [Scilab-users] Help with text files Hi Paul, Using phrase=mgetl(fd) turns into the same result: phrase = ?? Regards, On Tue, Nov 26, 2013 at 5:22 PM, Paul Carrico wrote: Try basicaly ? phrase=mgetl(fd) then you?ve an array of characters ? Paul De : users [mailto:users-bounces at lists.scilab.org] De la part de Eduardo Torrecillas Envoy? : mardi 26 novembre 2013 19:14 ? : International users mailing list for Scilab. Objet : [Scilab-users] Help with text files Hello all, I currently have some text files and I would like to extract information from them using Scilab. I have done this before, using mopen and mgetl, for example. Don't know why, but strangely in this case it is not working. I am using Scilab 5.4.1 on Ubuntu (but Scilab 5.4.0 under Windows produced the same result). Please check the attached text file. Simple code such as: fd=mopen('scilab_example.txt','r') phrase=mgetl(fd,1) Produces: phrase=?p If i still try to use mgetl, next lines are always returned as empty. Does anybody have any clue on whats happening? Best regards, -- Eduardo Torrecillas AER-09 ---------------------------------------------------------------------------- Ce courrier ?lectronique ne contient aucun virus ou logiciel malveillant parce que la protection Antivirus avast! est active. _______________________________________________ users mailing list users at lists.scilab.org http://lists.scilab.org/mailman/listinfo/users -- Eduardo Torrecillas AER-09 -------------- next part -------------- An HTML attachment was scrubbed... URL: From eduardo.torrecillas at gmail.com Tue Nov 26 21:11:44 2013 From: eduardo.torrecillas at gmail.com (Eduardo Torrecillas) Date: Tue, 26 Nov 2013 18:11:44 -0200 Subject: [Scilab-users] Help with text files In-Reply-To: References: Message-ID: Hi Mike! When I try to read the next line, it gets empty, showing [ ] As I said, I also tried at Windows, where the files were generated, because I was thinking that transportation between OS could cause that, but maybe it's not the case since I got the same results at Windows. Best regards, On Tue, Nov 26, 2013 at 5:58 PM, Mike Page wrote: > Hi Eduardo, > > Sometimes I have had problems like this due to line termination > characters. It's possible if a file gets moved from Linux to Windows and > back again, it can get unexpected CR or LF characters. Sometimes these are > read as a garbage line. I would take a look at your text file with a hex > editor to make sure the line terminations are what you expect. > Unfortunately as the file you attached got sent via email I can't tell from > looking at it what was in your original file. > > What happens when you try to read the next line? > > HTH, > Mike. > > > -----Original Message----- > *From:* users [mailto:users-bounces at lists.scilab.org]*On Behalf Of *Eduardo > Torrecillas > *Sent:* 26 November 2013 19:43 > *To:* International users mailing list for Scilab. > *Subject:* Re: [Scilab-users] Help with text files > > > Hi Paul, > > Using phrase=mgetl(fd) turns into the same result: > > phrase = > > ?? > > > Regards, > > > On Tue, Nov 26, 2013 at 5:22 PM, Paul Carrico wrote: > >> Try basicaly ? >> >> phrase=mgetl(fd) >> >> then you?ve an array of characters ? >> >> >> >> Paul >> >> >> >> >> >> >> >> *De :* users [mailto:users-bounces at lists.scilab.org] *De la part de*Eduardo Torrecillas >> *Envoy? :* mardi 26 novembre 2013 19:14 >> *? :* International users mailing list for Scilab. >> *Objet :* [Scilab-users] Help with text files >> >> >> >> Hello all, >> >> I currently have some text files and I would like to extract information >> from them using Scilab. >> I have done this before, using mopen and mgetl, for example. >> >> Don't know why, but strangely in this case it is not working. I am using >> Scilab 5.4.1 on Ubuntu (but Scilab 5.4.0 under Windows produced the same >> result). >> >> Please check the attached text file. >> >> Simple code such as: >> >> fd=mopen('scilab_example.txt','r') >> >> phrase=mgetl(fd,1) >> >> Produces: >> >> phrase=?p >> >> If i still try to use mgetl, next lines are always returned as empty. >> >> Does anybody have any clue on whats happening? >> >> Best regards, >> >> >> -- >> Eduardo Torrecillas >> AER-09 >> >> >> ------------------------------ >> >> >> Ce courrier ?lectronique ne contient aucun virus ou logiciel malveillant >> parce que la protection Antivirus avast! est >> active. >> >> >> _______________________________________________ >> users mailing list >> users at lists.scilab.org >> http://lists.scilab.org/mailman/listinfo/users >> >> > > > -- > Eduardo Torrecillas > AER-09 > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > > -- Eduardo Torrecillas AER-09 -------------- next part -------------- An HTML attachment was scrubbed... URL: From antoine.monmayrant at laas.fr Wed Nov 27 09:07:53 2013 From: antoine.monmayrant at laas.fr (Antoine Monmayrant) Date: Wed, 27 Nov 2013 09:07:53 +0100 Subject: [Scilab-users] Help with text files In-Reply-To: References: Message-ID: <5295A859.9020407@laas.fr> On 11/26/2013 07:13 PM, Eduardo Torrecillas wrote: > Hello all, > > I currently have some text files and I would like to extract > information from them using Scilab. > I have done this before, using mopen and mgetl, for example. > > Don't know why, but strangely in this case it is not working. I am > using Scilab 5.4.1 on Ubuntu (but Scilab 5.4.0 under Windows produced > the same result). > > Please check the attached text file. > > Simple code such as: > > fd=mopen('scilab_example.txt','r') > phrase=mgetl(fd,1) > > Produces: > > phrase=?p > > If i still try to use mgetl, next lines are always returned as empty. > > Does anybody have any clue on whats happening? > > Best regards, > > -- > Eduardo Torrecillas > AER-09 > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users Hi, Here is what I found: On my linux box, it seems your file is UTF-16: $ file scilab_example.txt scilab_example.txt: Little-endian UTF-16 Unicode text, with CRLF, CR line terminators I cannot read it with mgetl, but I can use mgetstr: -->fd=mopen('scilab_example.txt','r') fd = 1. -->chars=mgetstr(50) chars = ?? 6 0 A 4 8 8 F / 1 -->chars=mgetstr(50) chars = 9 - 1 9 - 2 1 4 8 8 * / 1 9 - 1 9 - 2 1 4 8 -->chars=mgetstr(50) chars = 8 * / 1 9 - 1 9 - 2 1 4 8 8 * / 1 9 - 1 9 - 2 As you can see, it looks like a problem of encoding (the ?? or the ?p are usually showing up when encoding is wrong). You can solve it that way: $ iconv -f UTF-16 -t LATIN1 scilab_example.txt > latin1.txt than in Scilab: -->fd=mopen('latin1.txt','r') fd = 1. -->phrase=mgetl(fd,1) phrase = 60A 488F/19-19-21 488*/19-19-21 488*/19-19-21 488*/19-19-21 Hope it helps -------------- next part -------------- An HTML attachment was scrubbed... URL: From alparslanpehlivan at yahoo.com Wed Nov 27 13:08:02 2013 From: alparslanpehlivan at yahoo.com (scilaber) Date: Wed, 27 Nov 2013 04:08:02 -0800 (PST) Subject: [Scilab-users] Scilab and Genetic Algorithm Message-ID: <1385554082622-4027899.post@n3.nabble.com> Hi, I am noob in genetic algorithm and want to learn how i make optimization. Often, I see "Rastrigin function". What is the meaning of function? Is this function always making better? For example; I have a functon as below; y = x^2 - z I want to optimize value of y and I know interval of x and z. ( x from 0 to 50, z from 10 to 500). How do I take best result with genetic algoritm? Thanks your helping, Regards. -- View this message in context: http://mailinglists.scilab.org/Scilab-and-Genetic-Algorithm-tp4027899.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From paul.carrico at esterline.com Wed Nov 27 16:08:58 2013 From: paul.carrico at esterline.com (Carrico, Paul) Date: Wed, 27 Nov 2013 15:08:58 +0000 Subject: [Scilab-users] Scilab and Genetic Algorithm In-Reply-To: <1385554082622-4027899.post@n3.nabble.com> References: <1385554082622-4027899.post@n3.nabble.com> Message-ID: <3A6B7233274DB449A2A0053A47684F95041DB8D1@BGS-EX01.auxitrol.ad> Typical function that allows to test global optimization methods and algorithms ... i.e you've a lot of local minimums but a single global one See http://en.wikipedia.org/wiki/Rastrigin_function -----Message d'origine----- De?: users [mailto:users-bounces at lists.scilab.org] De la part de scilaber Envoy??: mercredi 27 novembre 2013 13:08 ??: users at lists.scilab.org Objet?: [Scilab-users] Scilab and Genetic Algorithm Hi, I am noob in genetic algorithm and want to learn how i make optimization. Often, I see "Rastrigin function". What is the meaning of function? Is this function always making better? For example; I have a functon as below; y = x^2 - z I want to optimize value of y and I know interval of x and z. ( x from 0 to 50, z from 10 to 500). How do I take best result with genetic algoritm? Thanks your helping, Regards. -- View this message in context: http://mailinglists.scilab.org/Scilab-and-Genetic-Algorithm-tp4027899.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. _______________________________________________ users mailing list users at lists.scilab.org http://lists.scilab.org/mailman/listinfo/users -------------------------------------------------------------------------------- Le pr?sent mail et ses pi?ces jointes sont confidentiels et destin?s ? la personne ou aux personnes vis?e(s) ci-dessus. Si vous avez re?u cet e-mail par erreur, veuillez contacter imm?diatement l'exp?diteur et effacer le message de votre syst?me. Toute divulgation, copie ou distribution de cet e-mail est strictement interdite. This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error, please contact the sender and delete the email from your system. If you are not the named addressee you should not disseminate, distribute or copy this email. From eduardo.torrecillas at gmail.com Wed Nov 27 16:40:06 2013 From: eduardo.torrecillas at gmail.com (Eduardo Torrecillas) Date: Wed, 27 Nov 2013 13:40:06 -0200 Subject: [Scilab-users] Help with text files In-Reply-To: <5295A859.9020407@laas.fr> References: <5295A859.9020407@laas.fr> Message-ID: Hello Antoine! Looks like the problem is solved, and actually has nothing to do with SciLab, but with file encoding! Thank you very much! Best regards, On Wed, Nov 27, 2013 at 6:07 AM, Antoine Monmayrant < antoine.monmayrant at laas.fr> wrote: > On 11/26/2013 07:13 PM, Eduardo Torrecillas wrote: > > Hello all, > > I currently have some text files and I would like to extract information > from them using Scilab. > I have done this before, using mopen and mgetl, for example. > > Don't know why, but strangely in this case it is not working. I am using > Scilab 5.4.1 on Ubuntu (but Scilab 5.4.0 under Windows produced the same > result). > > Please check the attached text file. > > Simple code such as: > > fd=mopen('scilab_example.txt','r') > phrase=mgetl(fd,1) > > Produces: > > phrase=?p > > If i still try to use mgetl, next lines are always returned as empty. > > Does anybody have any clue on whats happening? > > Best regards, > > -- > Eduardo Torrecillas > AER-09 > > > _______________________________________________ > users mailing listusers at lists.scilab.orghttp://lists.scilab.org/mailman/listinfo/users > > > Hi, > > Here is what I found: > > On my linux box, it seems your file is UTF-16: > > $ file scilab_example.txt > scilab_example.txt: Little-endian UTF-16 Unicode text, with CRLF, CR line > terminators > > I cannot read it with mgetl, but I can use mgetstr: > > -->fd=mopen('scilab_example.txt','r') > fd = > > 1. > > -->chars=mgetstr(50) > chars = > > ?? 6 0 A 4 8 8 F / 1 > > -->chars=mgetstr(50) > chars = > > 9 - 1 9 - 2 1 4 8 8 * / 1 9 - 1 9 - 2 1 4 8 > > -->chars=mgetstr(50) > chars = > > 8 * / 1 9 - 1 9 - 2 1 4 8 8 * / 1 9 - 1 9 - 2 > > > As you can see, it looks like a problem of encoding (the ?? or the ?p are > usually showing up when encoding is wrong). > You can solve it that way: > > $ iconv -f UTF-16 -t LATIN1 scilab_example.txt > latin1.txt > > than in Scilab: > > -->fd=mopen('latin1.txt','r') > fd = > > 1. > > -->phrase=mgetl(fd,1) > phrase = > > 60A 488F/19-19-21 488*/19-19-21 488*/19-19-21 > 488*/19-19-21 > > Hope it helps > > > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > > -- Eduardo Torrecillas AER-09 -------------- next part -------------- An HTML attachment was scrubbed... URL: From vinayrajchoudhary at gmail.com Thu Nov 28 12:50:04 2013 From: vinayrajchoudhary at gmail.com (vinayrajchoudhary) Date: Thu, 28 Nov 2013 03:50:04 -0800 (PST) Subject: [Scilab-users] Scilab and Genetic Algorithm In-Reply-To: <1385554082622-4027899.post@n3.nabble.com> References: <1385554082622-4027899.post@n3.nabble.com> Message-ID: <1385639404652-4027914.post@n3.nabble.com> This might be relevant, I found this archived discussion thread http://www.daqwest.com/quests/207/qs/2331 -- View this message in context: http://mailinglists.scilab.org/Scilab-and-Genetic-Algorithm-tp4027899p4027914.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From ameni.khecharem at gmail.com Thu Nov 28 12:53:47 2013 From: ameni.khecharem at gmail.com (Akhechar) Date: Thu, 28 Nov 2013 03:53:47 -0800 (PST) Subject: [Scilab-users] javasci and eclipse under windows Message-ID: <1385639627100-4027915.post@n3.nabble.com> Hi, I am using scilab 5.4.0 with eclipse to run java file including javasci. I added org.scilab.modules.javasci.jar and org.scilab.modules.types.jar in the build path and i defined two variables environnements in run configuration: SCI=C:\Program Files\scilab-5.4.0\ PATH=C:\Program Files\scilab-5.4.0\bin;%PATH% when i excute my program under eclipse, i had this error : *The native library javasci does not exist or cannot be found. java.lang.UnsatisfiedLinkError: C:\Program Files\scilab-5.4.0\bin\javasci.dll: La proc?dure sp?cifi?e est introuvable* what's wrong please ? Thank you -- View this message in context: http://mailinglists.scilab.org/javasci-and-eclipse-under-windows-tp4027915.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From vinayrajchoudhary at gmail.com Thu Nov 28 13:08:46 2013 From: vinayrajchoudhary at gmail.com (vinayrajchoudhary) Date: Thu, 28 Nov 2013 04:08:46 -0800 (PST) Subject: [Scilab-users] javasci and eclipse under windows In-Reply-To: <1385639627100-4027915.post@n3.nabble.com> References: <1385639627100-4027915.post@n3.nabble.com> Message-ID: <1385640526857-4027916.post@n3.nabble.com> Following link has some previous question answers and bugs which might be relevant, click on "qna" or "bugs" tab after opening this link and then click on particular question or bug to see it in detail. http://www.daqwest.com/quests/207/search?search=eclipse%20javasci specifically in qna open the first question and it's second answer might be helpful Hope it helps! :) -- View this message in context: http://mailinglists.scilab.org/javasci-and-eclipse-under-windows-tp4027915p4027916.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From ameni.khecharem at gmail.com Fri Nov 29 11:01:56 2013 From: ameni.khecharem at gmail.com (Akhechar) Date: Fri, 29 Nov 2013 02:01:56 -0800 (PST) Subject: [Scilab-users] javasci and eclipse under windows In-Reply-To: <1385640526857-4027916.post@n3.nabble.com> References: <1385639627100-4027915.post@n3.nabble.com> <1385640526857-4027916.post@n3.nabble.com> Message-ID: <1385719316942-4027925.post@n3.nabble.com> I followed this link but I didn't found a response :( that's what I do in detail: 1/ I added org.scilab.modules.types.jar and org.scilab.modules.javasci.jar in the Build Path 2/ I created two variables in the run configuration in Eclipse: SCI= C:\Program Files\scilab-5.4.1\ PATH= C:\Program Files\scilab-5.4.1\bin;%PATH% 3/ I run my file.java I had always this error :( The native library javasci does not exist or cannot be found. java.lang.UnsatisfiedLinkError: C:\Program Files\scilab-5.4.1\bin\javasci.dll: La proc?dure sp?cifi?e est introuvable -- View this message in context: http://mailinglists.scilab.org/javasci-and-eclipse-under-windows-tp4027915p4027925.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From vinayrajchoudhary at gmail.com Fri Nov 29 12:17:35 2013 From: vinayrajchoudhary at gmail.com (vinayrajchoudhary) Date: Fri, 29 Nov 2013 03:17:35 -0800 (PST) Subject: [Scilab-users] javasci and eclipse under windows In-Reply-To: <1385719316942-4027925.post@n3.nabble.com> References: <1385639627100-4027915.post@n3.nabble.com> <1385640526857-4027916.post@n3.nabble.com> <1385719316942-4027925.post@n3.nabble.com> Message-ID: <1385723855643-4027926.post@n3.nabble.com> Did you checked your version of java and scilab if you have a 32 bit version of jre, you must use a 32 bit version of Scilab, if you have a 64 bit version of jre, you must use a 32 bit version of Scilab Let me know the result! Or you can also check this, I found this somewhere --- You need create two variables in configurations Run, on the eclipse. The first variable will point to two folders, ../scilab-5.4.1/lib/scilab and ../scilab-5.4.1/lib/thirdparty. The second variable will point to folder ../scilab-5.4.1/share/scilab eclipse >> Run configurations >> Environment >> New... >> name = LD_LIBRARY_PATH >> value = path of scilab/scilab-5.4.1/lib/scilab:/path of scilab/scilab-5.4.1/lib/thirdparty >> Ok New... >> name = SCI >> value = path of scilab/scilab-5.4.1/share/scilab >> Ok >> Apply you need too import two library that are on the folder ../scilab-5.4.1/share/scilab/modules/javasci/jar and ../scilab-5.4.1/share/scilab/modules/types/jar -- View this message in context: http://mailinglists.scilab.org/javasci-and-eclipse-under-windows-tp4027915p4027926.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From ameni.khecharem at gmail.com Fri Nov 29 14:23:34 2013 From: ameni.khecharem at gmail.com (Akhechar) Date: Fri, 29 Nov 2013 05:23:34 -0800 (PST) Subject: [Scilab-users] javasci and eclipse under windows In-Reply-To: <1385723855643-4027926.post@n3.nabble.com> References: <1385639627100-4027915.post@n3.nabble.com> <1385640526857-4027916.post@n3.nabble.com> <1385719316942-4027925.post@n3.nabble.com> <1385723855643-4027926.post@n3.nabble.com> Message-ID: <1385731414864-4027928.post@n3.nabble.com> Thanks vinayrajchoudhary for your response. I use a 64 bit version of jre and 64 bit version of Scilab .. I already use your second proposition! .. -- View this message in context: http://mailinglists.scilab.org/javasci-and-eclipse-under-windows-tp4027915p4027928.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From ameni.khecharem at gmail.com Fri Nov 29 16:26:37 2013 From: ameni.khecharem at gmail.com (Akhechar) Date: Fri, 29 Nov 2013 07:26:37 -0800 (PST) Subject: [Scilab-users] HDF5: infinite loop closing library In-Reply-To: <52948F18.3010809@laas.fr> References: <1385458200817-4027882.post@n3.nabble.com> <1385462306727-4027884.post@n3.nabble.com> <1385465291905-4027885.post@n3.nabble.com> <52948F18.3010809@laas.fr> Message-ID: <1385738797836-4027929.post@n3.nabble.com> No proposition ?! :(( -- View this message in context: http://mailinglists.scilab.org/HDF5-infinite-loop-closing-library-tp4027882p4027929.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From calixte.denizet at scilab-enterprises.com Fri Nov 29 17:39:28 2013 From: calixte.denizet at scilab-enterprises.com (Calixte Denizet) Date: Fri, 29 Nov 2013 17:39:28 +0100 Subject: [Scilab-users] HDF5: infinite loop closing library In-Reply-To: <1385738797836-4027929.post@n3.nabble.com> References: <1385458200817-4027882.post@n3.nabble.com> <1385462306727-4027884.post@n3.nabble.com> <1385465291905-4027885.post@n3.nabble.com> <52948F18.3010809@laas.fr> <1385738797836-4027929.post@n3.nabble.com> Message-ID: <5298C340.1020105@scilab-enterprises.com> Hi, Wait a little, I probably will commit a patch next week. Thanks Calixte On 29/11/2013 16:26, Akhechar wrote: > No proposition ?! :(( > > > > -- > View this message in context: http://mailinglists.scilab.org/HDF5-infinite-loop-closing-library-tp4027882p4027929.html > Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users -- Calixte Denizet Software Development Engineer ----------------------------------------------------------- Scilab Enterprises 143bis rue Yves Le Coz - 78000 Versailles, France http://www.scilab-enterprises.com From amonmayr at laas.fr Fri Nov 29 19:55:01 2013 From: amonmayr at laas.fr (Antoine Monmayrant) Date: Fri, 29 Nov 2013 19:55:01 +0100 Subject: [Scilab-users] HDF5: infinite loop closing library In-Reply-To: <5298C340.1020105@scilab-enterprises.com> Message-ID: <52a9-5298e300-1-55b1fb00@119084260> Le Vendredi 29 Novembre 2013 17.39 CET, Calixte Denizet a ?crit: > Hi, > > Wait a little, I probably will commit a patch next week. Could you share any detail on what's behind this bug? (just curious and I also would like to know whether my guess was just plain wrong ;-) ) Antoine > > Thanks > > Calixte > > On 29/11/2013 16:26, Akhechar wrote: > > No proposition ?! :(( > > > > > > > > -- > > View this message in context: http://mailinglists.scilab.org/HDF5-infinite-loop-closing-library-tp4027882p4027929.html > > Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. > > _______________________________________________ > > users mailing list > > users at lists.scilab.org > > http://lists.scilab.org/mailman/listinfo/users > > > -- > Calixte Denizet > Software Development Engineer > ----------------------------------------------------------- > Scilab Enterprises > 143bis rue Yves Le Coz - 78000 Versailles, France > http://www.scilab-enterprises.com > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users