From mueller at ite-web.de Tue Feb 1 11:41:08 2011 From: mueller at ite-web.de (Stefan Mueller) Date: Tue, 1 Feb 2011 11:41:08 +0100 Subject: Problem with linking standalone C-Code with Visual Studio 2005 Message-ID: <18761B4443771E48A58DDD86A871928A57E93E@ITE-SERVER.ite.local> Hi, I`m trying to compile an exported block as a standalone application. I added the files machine.h, scicos-block4.h, MyBlock_act_sens_events.c and MyBlock_standalone.c to a solution In Visual Studio 2005 and added all libs referenced in the make for linking. But I get the errors: LNK2019 : No reference for Symbol "_integr" in function "_MyBlock_sim" LNK2019 : No reference for Symbol "_dset" in function "_MyBlocksimblk" As it seems a lib is missing but I wasn't able to find out which. Can anybody give me a hint? Thx Stefan From ginters.buss at gmail.com Tue Feb 1 12:57:20 2011 From: ginters.buss at gmail.com (=?UTF-8?Q?Ginters_Bu=C5=A1s?=) Date: Tue, 1 Feb 2011 13:57:20 +0200 Subject: [scilab-Users] URL read/write In-Reply-To: <1271837175.1523.8969.camel@korcula.inria.fr> References: <4BCEADCD.6010307@univ-lemans.fr> <4BCEB124.8020802@univ-lemans.fr> <1271837175.1523.8969.camel@korcula.inria.fr> Message-ID: So, what's another option, if not curl? Ginters On Wed, Apr 21, 2010 at 11:06 AM, Sylvestre Ledru < sylvestre.ledru at scilab.org> wrote: > Le mercredi 21 avril 2010 ? 10:02 +0200, Samuel Gougeon a ?crit : > > ----- Message d'origine ----- > > De : Samuel Gougeon > > Date : 21/04/2010 09:48: > > > Hello, > > > > > > ----- Message d'origine ----- > > > De : H Carl > > > Date : 20/04/2010 16:04: > > > > I have been unable to find any SciLab commands that would allow > > > > reading/writing to a url. Does that possibility exist? It would > > > > be very helpful for taking advantage of a site's webservices. > > > > Thanks. > > > You can use Curl that is embedded into scilab. > > > If you are using Scilab under Windows, here is an example : > > > URL=" > http://www-cgi.uni-regensburg.de/WWW_Server/Dokumentation/misc/CURL/curl.pdf > "; > > > filename="curl_manual.pdf"; > > > rep=unix(SCI+"/tools/curl/curl -o "+filename+" "+URL) > > > The file targetted by the URL will be recorded into the specified > > > local file. > > > If you are using another operating system, you just have to > > > customize the > > > path leading to the curl executable file. > > After the Sylvestre's remark, please note that, like it is presented > > on the curl main webpage, > > and like Scilab, > > > > > > Curl is free and open software that compiles and runs under a wide > > variety of operating systems. > > Curl exists thanks to efforts from many contributors. > > > > Therefore, you can freely instal it on your machine, and use it > > through the unix() scilab's command. > > So, back-compatibility cannot be a concern. > Obviously but it is important to highlight that a Scilab script cannot > expect to find curl on every Scilab distribution ... > > Sylvestre > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From Samuel.Gougeon at univ-lemans.fr Tue Feb 1 14:04:19 2011 From: Samuel.Gougeon at univ-lemans.fr (Samuel GOUGEON) Date: Tue, 01 Feb 2011 14:04:19 +0100 Subject: [scilab-Users] URL read/write In-Reply-To: References: <4BCEADCD.6010307@univ-lemans.fr> <4BCEB124.8020802@univ-lemans.fr> <1271837175.1523.8969.camel@korcula.inria.fr> Message-ID: <4D4804D3.40808@univ-lemans.fr> ----- Message d'origine ----- De : Ginters Bu?s Date : 01/02/2011 12:57: > So, what's another option, if not curl? Install it before using it through Scilab, or use ATOMS/Socket. Samuel From Ding.Zheng at reson.com Tue Feb 1 14:58:16 2011 From: Ding.Zheng at reson.com (Ding Zheng) Date: Tue, 1 Feb 2011 13:58:16 +0000 Subject: mget and mgeti for reading binary file Message-ID: <26CBBB51A278494180C1043F7D33A99707DC5E@SLAEXC01.reson.root> Hi, I got a very strange problem when using mget function to read binary file as below: nItems = mgeti(1,'ui',fid) data = mget(nItems,'f',fid) the error is 999 mget: Wrong type for input argument #1: A integer expected. I check the result of variable nItems. it is correct. If I set the nItems = 500(a constant number). Then it has no problem. I tried using int16 or int32 to do conversion of nItems, the problem still is there. Can every one help me? Thanks in advance. Ding zheng -------------- next part -------------- An HTML attachment was scrubbed... URL: From sam at cctech.co.in Wed Feb 2 08:02:18 2011 From: sam at cctech.co.in (Sam Mathew) Date: Wed, 2 Feb 2011 12:32:18 +0530 Subject: CFD through Scilab Message-ID: Hi everyone, Has anyone among you come across any module for simple flow simulations (Computational Fluid Dynamics) coupled with Structural analysis, i.e., Fluid Structure Interaction. Surely there are some open source solutions for CFD but they are often limited to Linux platforms. I was wondering if there is any way SCILAB has been employed for this, especially that SCILAB is platform independent! Best wishes, -- *Sam Mathew* | Asst. Manager, CFD *Centre for Computational Technologies - CCTech** * 1 Akshay Residancy | 50 Anand Park | Aundh | Pune | 411007 | India Ph: +91 20 40098381/82 | M: +91-9975960244 | www.cctech.co.in* * *CCTech ? "Simulation is The Future"* * * * * ** -------------- next part -------------- An HTML attachment was scrubbed... URL: From antoine.monmayrant at laas.fr Wed Feb 2 09:11:51 2011 From: antoine.monmayrant at laas.fr (Antoine Monmayrant) Date: Wed, 02 Feb 2011 09:11:51 +0100 Subject: [scilab-Users] CFD through Scilab In-Reply-To: References: Message-ID: <4D4911C7.9060809@laas.fr> Le 02/02/2011 08:02, Sam Mathew a ?crit : > Hi everyone, > > Has anyone among you come across any module for simple flow > simulations (Computational Fluid Dynamics) coupled with Structural > analysis, i.e., Fluid Structure Interaction. > > Surely there are some open source solutions for CFD but they are often > limited to Linux platforms. I was wondering if there is any way SCILAB > has been employed for this, especially that SCILAB is platform > independent! > > Best wishes, > > -- > /Sam Mathew/ | Asst. Manager, CFD > *Centre for Computational Technologies - CCTech** > * > 1 Akshay Residancy | 50 Anand Park | Aundh | Pune | 411007 | India > Ph: +91 20 40098381/82 | M: +91-9975960244 | www.cctech.co.in > * > * > *CCTech ? "Simulation is The Future"* > * > * > * > * > ** Did you check SALOME? http://www.salome-platform.org/ I tried it few years ago and from what I understood it could fit your needs... Antoine -------------- next part -------------- An HTML attachment was scrubbed... URL: From sam at cctech.co.in Wed Feb 2 09:16:35 2011 From: sam at cctech.co.in (Sam Mathew) Date: Wed, 2 Feb 2011 13:46:35 +0530 Subject: [scilab-Users] CFD through Scilab In-Reply-To: <4D4911C7.9060809@laas.fr> References: <4D4911C7.9060809@laas.fr> Message-ID: Hi, Thank you Antoine for your answer. As far as I can understand, Salome is only for CAD generation and data visualization but not for numerically solving the governing equations for flow and stresses, isn't it? I am unsure then how Salome would fit. Regards, On 2 February 2011 13:41, Antoine Monmayrant wrote: > > Did you check SALOME? > http://www.salome-platform.org/ > I tried it few years ago and from what I understood it could fit your > needs... > > Antoine > > -- *Sam Mathew* | Asst. Manager, CFD *Centre for Computational Technologies - CCTech** * 1 Akshay Residancy | 50 Anand Park | Aundh | Pune | 411007 | India Ph: +91 20 40098381/82 | M: +91-9975960244 | www.cctech.co.in* * *CCTech ? "Simulation is The Future"* * * * * ** -------------- next part -------------- An HTML attachment was scrubbed... URL: From sylvestre.ledru at scilab.org Wed Feb 2 09:22:53 2011 From: sylvestre.ledru at scilab.org (Sylvestre Ledru) Date: Wed, 02 Feb 2011 09:22:53 +0100 Subject: [scilab-Users] CFD through Scilab In-Reply-To: References: <4D4911C7.9060809@laas.fr> Message-ID: <1296634973.23916.4194.camel@korcula.inria.fr> And Salome is not supported official under Windows. The CFD code from EDF is Code Saturne[1] but I don't think it will be trivial to build it under Windows... (while it works very well under Linux). We have been in touch with the Code Saturne team to create a link between Scilab & Code Saturne but we did not feel enough interest from users to go further. By the way, it is not CFD out-of-the-box but you might be interested by getfem++ [2] which includes a Scilab interface since its version 4.1.1. [1] http://research.edf.com/research-and-the-scientific-community/softwares/code-saturne/introduction-code-saturne-80058.html [2] http://home.gna.org/getfem/ Le mercredi 02 f?vrier 2011 ? 13:46 +0530, Sam Mathew a ?crit : > Hi, > > Thank you Antoine for your answer. As far as I can understand, Salome > is only for CAD generation and data visualization but not for > numerically solving the governing equations for flow and stresses, > isn't it? I am unsure then how Salome would fit. > > Regards, > > > On 2 February 2011 13:41, Antoine Monmayrant > wrote: > > > Did you check SALOME? > http://www.salome-platform.org/ > I tried it few years ago and from what I understood it could > fit your needs... > > Antoine > > > > > > -- > Sam Mathew | Asst. Manager, CFD > Centre for Computational Technologies - CCTech > 1 Akshay Residancy | 50 Anand Park | Aundh | Pune | 411007 | India > Ph: +91 20 40098381/82 | M: +91-9975960244 | www.cctech.co.in > > CCTech ? "Simulation is The Future" > > > > > > From paul.carrico at esterline.com Wed Feb 2 10:03:46 2011 From: paul.carrico at esterline.com (Carrico, Paul) Date: Wed, 2 Feb 2011 10:03:46 +0100 Subject: [scilab-Users] CFD through Scilab In-Reply-To: References: Message-ID: <55A12CBC06A8C9459DCE0BBEF8122FDC0498B0E4@exchsrv.AUXITROL1> did you have a look to Elmer ? http://www.csc.fi/english/pages/elmer Paul ________________________________ De : Sam Mathew [mailto:sam at cctech.co.in] Envoy? : mercredi 2 f?vrier 2011 08:02 ? : users at lists.scilab.org Objet : [scilab-Users] CFD through Scilab Hi everyone, Has anyone among you come across any module for simple flow simulations (Computational Fluid Dynamics) coupled with Structural analysis, i.e., Fluid Structure Interaction. Surely there are some open source solutions for CFD but they are often limited to Linux platforms. I was wondering if there is any way SCILAB has been employed for this, especially that SCILAB is platform independent! Best wishes, -- Sam Mathew | Asst. Manager, CFD Centre for Computational Technologies - CCTech 1 Akshay Residancy | 50 Anand Park | Aundh | Pune | 411007 | India Ph: +91 20 40098381/82 | M: +91-9975960244 | www.cctech.co.in CCTech - "Simulation is The Future" -------------------------------------------------------------------------------- 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. -------------- next part -------------- An HTML attachment was scrubbed... URL: From Mike at Page-One.Waitrose.com Wed Feb 2 10:58:38 2011 From: Mike at Page-One.Waitrose.com (Mike Page) Date: Wed, 2 Feb 2011 09:58:38 -0000 Subject: [scilab-Users] Question on using plot in call_scilab module In-Reply-To: <1296043154.7063.13501.camel@korcula.inria.fr> Message-ID: Hi Sylvestre, I am not really an expert in using Call_Scilab. In fact, this is the only time I have used it. It does seem to work OK for me, but there are a few things worth improving maybe: 1. The documentation is quite weak in places and sometimes it seems even wrong. For example the fourth parameter of Start_Scilab is given as int*, when it actually seems to be int. 2. The examples don't always seem to compile and/or work properly. For example, the code includes stack-c.h, which the build says is deprecated and shouldn't be used. 3. It would be useful to give a list of the required include (.h) and library (.lib, .dll) files , although I guess this could be quite complicated. The include files are scattered in the various module directories and not easy to collect into a C project. 4. The help information is very Linux specific - some of the sections relating to Windows are just blank. 5. The error return I got from SendScilabJob was usually "999". This error is not listed in the help. 6. There seems no way to interact with Scilab's more complicated types such as handles, lists, etc. Hope that's useful. I can log any of the above in the Bugzilla if you want. By the way - there is a bug in the example code I provided (below). All three events should be created in main, otherwise there's a chance the Reply event won't be created by the time the main thread waits on it. Cheers, Mike. -----Original Message----- From: Sylvestre Ledru [mailto:sylvestre.ledru at scilab.org] Sent: 26 January 2011 11:59 To: users at lists.scilab.org Subject: RE: [scilab-Users] Question on using plot in call_scilab module Thanks for sharing this. Managing Scilab graphics and Scilab windows from call_scilab & Javasci v2 is something I would like to improve in the next releases but I am still unsure on the right way to implement this... If you have ideas, I would be happy to hear them. Sylvestre Le mercredi 26 janvier 2011 ? 11:26 +0000, Mike Page a ?crit : > Hi Norm, > > Sorry if this response is too late for you, but it may help somebody else... > > I came across your post while looking for help on another issue related to > plotting with SendScilabJob. Here is some example code that runs the > plotting in a separate thread under WinXp. It works for me and I think it > would do what you wanted. Sorry it's a bit short on comments ;-) > > To build this, you need to also include the /include directories from: > SCI/modules/call_scilab > SCI/modules/api_scilab > SCI/modules/core > > You also need to set the library path to include SCI/bin and include the > libraries: > api_scilab.lib > call_scilab.lib > MALLOC.lib > LibScilab.lib > > When running, /SCI/bin needs to be in your path so Scilab can find the DLLs. > > HTH. > Mike. > > /*-------------------------------------------------------------------------- > */ > #include > #include > #include > #include "call_scilab.h" > #include "api_scilab.h" > > > HANDLE PlotCmd[2]; > HANDLE Reply; > double x[100]; > double y[100]; > > > /*-------------------------------------------------------------------------- > */ > static void SciPlot (void* Params) > { > DWORD Event; > BOOL Exit = FALSE; > > if (StartScilab (NULL, NULL, 0) == FALSE) > { > printf ("Error : StartScilab\n"); > } > > Reply = CreateEvent (NULL, FALSE, FALSE, NULL); > > while (!Exit) > { > Event = WaitForMultipleObjects (2, PlotCmd, FALSE, INFINITE); > > switch (Event) > { > case (WAIT_OBJECT_0 + 0): > { > createNamedMatrixOfDouble (pvApiCtx, "x", 1, 100, x); > createNamedMatrixOfDouble (pvApiCtx, "y", 1, 100, y); > SendScilabJob ("delete (e);"); > SendScilabJob ("plot2d(x,y);"); > SendScilabJob ("e = gce ();"); > printf ("...Plot started\n"); > SetEvent (Reply); > break; > } > case (WAIT_OBJECT_0 + 1): > { > Exit = TRUE; > break; > } > } > } > > if (TerminateScilab (NULL) == FALSE) > { > printf ("Error : TerminateScilab\n"); > } > > SetEvent (Reply); > } > > /*-------------------------------------------------------------------------- > */ > int main(void) > { > int i, j; > > printf ("Starting\n"); > PlotCmd[0] = CreateEvent (NULL, FALSE, FALSE, NULL); > PlotCmd[1] = CreateEvent (NULL, FALSE, FALSE, NULL); > _beginthread (SciPlot, 0, NULL); > Sleep (1000); > > for (j=1; j<100; j++) > { > x[j] = j; > } > > for (i=0; i<10; i++) > { > for (j=1; j<100; j++) > { > y[j] = (2.0 *(double)rand () / (double)RAND_MAX) - 1.0; > } > printf ("Update Plot\n"); > SetEvent (PlotCmd[0]); > WaitForSingleObject (Reply, INFINITE); > Sleep (1000); > } > printf ("Terminate Plot\n"); > SetEvent (PlotCmd[1]); > WaitForSingleObject (Reply, INFINITE); > CloseHandle (PlotCmd[0]); > CloseHandle (PlotCmd[1]); > return 0; > } > /*-------------------------------------------------------------------------- > */ > > > > -----Original Message----- > From: Norman Beamish [mailto:norman.beamish at m4s.be] > Sent: 03 June 2010 11:13 > To: users at lists.scilab.org > Subject: [scilab-Users] Question on using plot in call_scilab module > > > Hi, > > I'm using the call_scilab module to access scilab functions from within > a C program. I'm using MS Visual C++ 2008 on MS Vista. > > Everything that just writes its output to the console works ok. However > when I use the scilab plot command > SendScilabJob("plot(x,y, style);") > I find that the plot window freezes and the plot menu options are > unavailable unless I run the following loop: - > while( ScilabHaveAGraph() ) > { > ScilabDoOneEvent(); > } > Of course this loop stops my program from doing anything else. > > My question: > I believe this problem arises because everything is operating in a > single thread. Is there a way to make the plot command start out in a > separate thread so that it can still monitor for user events such as > mouse clicks while the rest of my program continues. > > thanks, > Norm > > No virus found in this incoming message. > Checked by AVG - www.avg.com > Version: 9.0.829 / Virus Database: 271.1.1/2914 - Release Date: 06/02/10 > 19:25:00 > No virus found in this incoming message. Checked by AVG - www.avg.com Version: 9.0.872 / Virus Database: 271.1.1/3402 - Release Date: 01/25/11 07:34:00 From Samuel.Gougeon at univ-lemans.fr Wed Feb 2 11:11:34 2011 From: Samuel.Gougeon at univ-lemans.fr (Samuel GOUGEON) Date: Wed, 02 Feb 2011 11:11:34 +0100 Subject: [scilab-Users] CFD through Scilab In-Reply-To: References: Message-ID: <4D492DD6.9050901@univ-lemans.fr> Hello, ----- Message d'origine ----- De : Sam Mathew Date : 02/02/2011 08:02: > Hi everyone, > > Has anyone among you come across any module for simple flow simulations > (Computational Fluid Dynamics) coupled with Structural analysis, i.e., Fluid > Structure Interaction. > > Surely there are some open source solutions for CFD but they are often limited > to Linux platforms. I was wondering if there is any way SCILAB has been > employed for this, especially that SCILAB is platform independent! > > Best wishes, You may have a look at the Enrico Segre contributions here : http://www.weizmann.ac.il/home/fesegre/scistuff.html (It is quite easy to find the right unconcealled URLs to scifeat (Featflow for Scilab), pivtool, etc) http://www.weizmann.ac.il/home/fesegre/scistuff/pages/scigallery.html Regards Samuel From cwarner7_11 at hotmail.com Wed Feb 2 18:11:43 2011 From: cwarner7_11 at hotmail.com (Charlie Warner) Date: Wed, 2 Feb 2011 12:11:43 -0500 Subject: [scilab-Users] CFD through Scilab In-Reply-To: References: ,<4D4911C7.9060809@laas.fr>, Message-ID: Salome-MECA is now provided integrated with Code Aster FEA solver and can be coupled to Code_Saturne CFD solver, which, in turn, can be coupled to syrthes thermal analysis for combined flow/temperature studies. The easiest implementation of this, by far, is the CAELinux distribution, built on Ubuntu 10.04, 64-bit required, although earlier, 32-bit versions (with more limited capabilities) are still available. One can run this in a dual-boot environment without interfering with your Windows installation, or possibly in a virtual machine such as VirtualBox (I run dual boot, and older Windows in a VirtualBox installation under Linux with no problems). If you build Salome from source rather than the CAELinux package, you may have to go through some acrobatics to get all of the integrations working properly. Salome can be found here. There are Windows binaries available, but they are still in the beta stage. There is a reason why people prefer *nux for scientific applications, and it has very little to do with the cost of software (although cost can be critical to some- the CAELinux package, for free, compares quite favorably to the capabilities of the COMSOL commercial package, which can set you back $15,000 or more). But, COMSOL runs on Windows... Charlie Date: Wed, 2 Feb 2011 13:46:35 +0530 From: sam at cctech.co.in To: users at lists.scilab.org Subject: Re: [scilab-Users] CFD through Scilab Hi, Thank you Antoine for your answer. As far as I can understand, Salome is only for CAD generation and data visualization but not for numerically solving the governing equations for flow and stresses, isn't it? I am unsure then how Salome would fit. Regards, On 2 February 2011 13:41, Antoine Monmayrant wrote: Did you check SALOME? http://www.salome-platform.org/ I tried it few years ago and from what I understood it could fit your needs... Antoine -- Sam Mathew | Asst. Manager, CFD Centre for Computational Technologies - CCTech 1 Akshay Residancy | 50 Anand Park | Aundh | Pune | 411007 | India Ph: +91 20 40098381/82 | M: +91-9975960244 | www.cctech.co.in CCTech ? "Simulation is The Future" -------------- next part -------------- An HTML attachment was scrubbed... URL: From cwarner7_11 at hotmail.com Wed Feb 2 18:15:05 2011 From: cwarner7_11 at hotmail.com (Charlie Warner) Date: Wed, 2 Feb 2011 12:15:05 -0500 Subject: [scilab-Users] CFD through Scilab In-Reply-To: References: ,<4D4911C7.9060809@laas.fr>, Message-ID: PS: CAELinux includes Elmer, OpenOAM, Gerris, and other multiphysics solvers that may be more appropriate for the particular class of problem you are addressing. It also comes with Scilab and Octave... Charlie Date: Wed, 2 Feb 2011 13:46:35 +0530 From: sam at cctech.co.in To: users at lists.scilab.org Subject: Re: [scilab-Users] CFD through Scilab Hi, Thank you Antoine for your answer. As far as I can understand, Salome is only for CAD generation and data visualization but not for numerically solving the governing equations for flow and stresses, isn't it? I am unsure then how Salome would fit. Regards, On 2 February 2011 13:41, Antoine Monmayrant wrote: Did you check SALOME? http://www.salome-platform.org/ I tried it few years ago and from what I understood it could fit your needs... Antoine -- Sam Mathew | Asst. Manager, CFD Centre for Computational Technologies - CCTech 1 Akshay Residancy | 50 Anand Park | Aundh | Pune | 411007 | India Ph: +91 20 40098381/82 | M: +91-9975960244 | www.cctech.co.in CCTech ? "Simulation is The Future" -------------- next part -------------- An HTML attachment was scrubbed... URL: From sylvestre.ledru at scilab.org Wed Feb 2 18:27:03 2011 From: sylvestre.ledru at scilab.org (Sylvestre Ledru) Date: Wed, 02 Feb 2011 18:27:03 +0100 Subject: [scilab-Users] Question on using plot in call_scilab module In-Reply-To: References: Message-ID: <1296667623.23916.4244.camel@korcula.inria.fr> Hello Mike, If you don't mind, it would be great to have bug reports on these. (one per issue please) Thanks for the feedback. It is appreciated. Sylvestre Le mercredi 02 f?vrier 2011 ? 09:58 +0000, Mike Page a ?crit : > Hi Sylvestre, > > I am not really an expert in using Call_Scilab. In fact, this is the only time I have used it. It does seem to work OK for me, but there are a few things worth improving maybe: > > 1. The documentation is quite weak in places and sometimes it seems even wrong. For example the fourth parameter of Start_Scilab is given as int*, when it actually seems to be int. > > 2. The examples don't always seem to compile and/or work properly. For example, the code includes stack-c.h, which the build says is deprecated and shouldn't be used. > > 3. It would be useful to give a list of the required include (.h) and library (.lib, .dll) files , although I guess this could be quite complicated. The include files are scattered in the various module directories and not easy to collect into a C project. > > 4. The help information is very Linux specific - some of the sections relating to Windows are just blank. > > 5. The error return I got from SendScilabJob was usually "999". This error is not listed in the help. > > 6. There seems no way to interact with Scilab's more complicated types such as handles, lists, etc. > > Hope that's useful. I can log any of the above in the Bugzilla if you want. > > By the way - there is a bug in the example code I provided (below). All three events should be created in main, otherwise there's a chance the Reply event won't be created by the time the main thread waits on it. > > Cheers, > Mike. > > > > -----Original Message----- > From: Sylvestre Ledru [mailto:sylvestre.ledru at scilab.org] > Sent: 26 January 2011 11:59 > To: users at lists.scilab.org > Subject: RE: [scilab-Users] Question on using plot in call_scilab module > > > Thanks for sharing this. > > Managing Scilab graphics and Scilab windows from call_scilab & Javasci > v2 is something I would like to improve in the next releases but I am > still unsure on the right way to implement this... > > If you have ideas, I would be happy to hear them. > > Sylvestre > > > Le mercredi 26 janvier 2011 ? 11:26 +0000, Mike Page a ?crit : > > Hi Norm, > > > > Sorry if this response is too late for you, but it may help somebody else... > > > > I came across your post while looking for help on another issue related to > > plotting with SendScilabJob. Here is some example code that runs the > > plotting in a separate thread under WinXp. It works for me and I think it > > would do what you wanted. Sorry it's a bit short on comments ;-) > > > > To build this, you need to also include the /include directories from: > > SCI/modules/call_scilab > > SCI/modules/api_scilab > > SCI/modules/core > > > > You also need to set the library path to include SCI/bin and include the > > libraries: > > api_scilab.lib > > call_scilab.lib > > MALLOC.lib > > LibScilab.lib > > > > When running, /SCI/bin needs to be in your path so Scilab can find the DLLs. > > > > HTH. > > Mike. > > > > /*-------------------------------------------------------------------------- > > */ > > #include > > #include > > #include > > #include "call_scilab.h" > > #include "api_scilab.h" > > > > > > HANDLE PlotCmd[2]; > > HANDLE Reply; > > double x[100]; > > double y[100]; > > > > > > /*-------------------------------------------------------------------------- > > */ > > static void SciPlot (void* Params) > > { > > DWORD Event; > > BOOL Exit = FALSE; > > > > if (StartScilab (NULL, NULL, 0) == FALSE) > > { > > printf ("Error : StartScilab\n"); > > } > > > > Reply = CreateEvent (NULL, FALSE, FALSE, NULL); > > > > while (!Exit) > > { > > Event = WaitForMultipleObjects (2, PlotCmd, FALSE, INFINITE); > > > > switch (Event) > > { > > case (WAIT_OBJECT_0 + 0): > > { > > createNamedMatrixOfDouble (pvApiCtx, "x", 1, 100, x); > > createNamedMatrixOfDouble (pvApiCtx, "y", 1, 100, y); > > SendScilabJob ("delete (e);"); > > SendScilabJob ("plot2d(x,y);"); > > SendScilabJob ("e = gce ();"); > > printf ("...Plot started\n"); > > SetEvent (Reply); > > break; > > } > > case (WAIT_OBJECT_0 + 1): > > { > > Exit = TRUE; > > break; > > } > > } > > } > > > > if (TerminateScilab (NULL) == FALSE) > > { > > printf ("Error : TerminateScilab\n"); > > } > > > > SetEvent (Reply); > > } > > > > /*-------------------------------------------------------------------------- > > */ > > int main(void) > > { > > int i, j; > > > > printf ("Starting\n"); > > PlotCmd[0] = CreateEvent (NULL, FALSE, FALSE, NULL); > > PlotCmd[1] = CreateEvent (NULL, FALSE, FALSE, NULL); > > _beginthread (SciPlot, 0, NULL); > > Sleep (1000); > > > > for (j=1; j<100; j++) > > { > > x[j] = j; > > } > > > > for (i=0; i<10; i++) > > { > > for (j=1; j<100; j++) > > { > > y[j] = (2.0 *(double)rand () / (double)RAND_MAX) - 1.0; > > } > > printf ("Update Plot\n"); > > SetEvent (PlotCmd[0]); > > WaitForSingleObject (Reply, INFINITE); > > Sleep (1000); > > } > > printf ("Terminate Plot\n"); > > SetEvent (PlotCmd[1]); > > WaitForSingleObject (Reply, INFINITE); > > CloseHandle (PlotCmd[0]); > > CloseHandle (PlotCmd[1]); > > return 0; > > } > > /*-------------------------------------------------------------------------- > > */ > > > > > > > > -----Original Message----- > > From: Norman Beamish [mailto:norman.beamish at m4s.be] > > Sent: 03 June 2010 11:13 > > To: users at lists.scilab.org > > Subject: [scilab-Users] Question on using plot in call_scilab module > > > > > > Hi, > > > > I'm using the call_scilab module to access scilab functions from within > > a C program. I'm using MS Visual C++ 2008 on MS Vista. > > > > Everything that just writes its output to the console works ok. However > > when I use the scilab plot command > > SendScilabJob("plot(x,y, style);") > > I find that the plot window freezes and the plot menu options are > > unavailable unless I run the following loop: - > > while( ScilabHaveAGraph() ) > > { > > ScilabDoOneEvent(); > > } > > Of course this loop stops my program from doing anything else. > > > > My question: > > I believe this problem arises because everything is operating in a > > single thread. Is there a way to make the plot command start out in a > > separate thread so that it can still monitor for user events such as > > mouse clicks while the rest of my program continues. > > > > thanks, > > Norm > > > > No virus found in this incoming message. > > Checked by AVG - www.avg.com > > Version: 9.0.829 / Virus Database: 271.1.1/2914 - Release Date: 06/02/10 > > 19:25:00 > > > > > No virus found in this incoming message. > Checked by AVG - www.avg.com > Version: 9.0.872 / Virus Database: 271.1.1/3402 - Release Date: 01/25/11 07:34:00 > > From dariush.ghorbanzadeh at gmail.com Wed Feb 2 19:25:02 2011 From: dariush.ghorbanzadeh at gmail.com (D.GH) Date: Wed, 2 Feb 2011 18:25:02 +0000 (UTC) Subject: EPS image Message-ID: hello, I would like to save the image in eps. The following code does not work. I am running Windows XP and I use Scilab-5.3. /////////////////////////////////////////////// scf(0) x = linspace(-%pi,%pi,100); plot(x,sin(x),"Color",[0.15,0.47,0.99]) %v0 = gca(); %v0.box = "off"; //xs2eps(0,'fig01.eps') xs2eps(gcf(),'fig01.eps') xdel(0) /////////////////////////////////////////////// I have the following error message: PolylineLineDrawerJoGL::drawPolyline : Plus de m?moire disponible. DrawableObjectJoGL::endDrawing : Plus de m?moire disponible. xs2eps(gcf(),'fig01.eps') !--error 999 A native error occurred during the drawing of the figure. Description: glGetError() returned the following error codes after a call to glGetString(): GL_INVALID_OPERATION Exception Name: javax.media.opengl.GLException Scilab's graphic may become unstable. Please report a bug on http://bugzilla.scilab.org/ with your example and the result of getdebuginfo(). at line 9 of exec file called by : exec('D:\scilab-Kar\testm2.sci', -1) DrawableObjectJoGL::endDrawing : Plus de m?moire disponible. *** Thank you for your help From michael.baudin at scilab.org Thu Feb 3 08:35:06 2011 From: michael.baudin at scilab.org (=?windows-1252?Q?Micha=EBl_Baudin?=) Date: Thu, 03 Feb 2011 08:35:06 +0100 Subject: [scilab-Users] CFD through Scilab In-Reply-To: References: Message-ID: <4D4A5AAA.1020909@scilab.org> Hi, Did you see the collection of finite elements tools for Scilab that we presented on the wiki : http://wiki.scilab.org/Finite_Elements_in_Scilab Best regards, Micha?l Baudin Le 02/02/2011 08:02, Sam Mathew a ?crit : > Hi everyone, > > Has anyone among you come across any module for simple flow > simulations (Computational Fluid Dynamics) coupled with Structural > analysis, i.e., Fluid Structure Interaction. > > Surely there are some open source solutions for CFD but they are often > limited to Linux platforms. I was wondering if there is any way SCILAB > has been employed for this, especially that SCILAB is platform > independent! > > Best wishes, > > -- > /Sam Mathew/ | Asst. Manager, CFD > *Centre for Computational Technologies - CCTech** > * > 1 Akshay Residancy | 50 Anand Park | Aundh | Pune | 411007 | India > Ph: +91 20 40098381/82 | M: +91-9975960244 | www.cctech.co.in > * > * > *CCTech ? "Simulation is The Future"* > * > * > * > * > ** -- Micha?l Baudin Ing?nieur de d?veloppement michael.baudin at scilab.org ------------------------- Consortium Scilab - Digiteo Domaine de Voluceau - Rocquencourt B.P. 105 - 78153 Le Chesnay Cedex Tel. : 01 39 63 56 87 - Fax : 01 39 63 55 94 -------------- next part -------------- An HTML attachment was scrubbed... URL: From mathieu.dubois at limsi.fr Thu Feb 3 11:41:46 2011 From: mathieu.dubois at limsi.fr (Mathieu Dubois) Date: Thu, 03 Feb 2011 11:41:46 +0100 Subject: [scilab-Users] EPS image In-Reply-To: References: Message-ID: <4D4A866A.7060607@limsi.fr> Hello, On 02/02/2011 07:25 PM, D.GH wrote: > hello, > > I would like to save the image in eps. The following code does not > work. I am running Windows XP and I use Scilab-5.3. > > /////////////////////////////////////////////// > scf(0) > x = linspace(-%pi,%pi,100); > plot(x,sin(x),"Color",[0.15,0.47,0.99]) > %v0 = gca(); > %v0.box = "off"; > > //xs2eps(0,'fig01.eps') > xs2eps(gcf(),'fig01.eps') > xdel(0) > > /////////////////////////////////////////////// Such a simple example should work (and actually works for me under linux with proprietary drivers). This suggest a driver problem. Try to update your graphics card driver. In case it doesn't work I guess you should report a bug as mentioned in the error message. > I have the following error message: > > PolylineLineDrawerJoGL::drawPolyline : Plus de m?moire disponible. > DrawableObjectJoGL::endDrawing : Plus de m?moire disponible. > xs2eps(gcf(),'fig01.eps') > !--error 999 > A native error occurred during the drawing of the figure. > Description: glGetError() returned the following error codes after a > call to glGetString(): GL_INVALID_OPERATION > Exception Name: javax.media.opengl.GLException > Scilab's graphic may become unstable. > Please report a bug on http://bugzilla.scilab.org/ with your example > and the result of getdebuginfo(). > at line 9 of exec file called by : > exec('D:\scilab-Kar\testm2.sci', -1) > > DrawableObjectJoGL::endDrawing : Plus de m?moire disponible. > > *** > Thank you for your help > HTH, Mathieu From ginters.buss at gmail.com Thu Feb 3 14:35:34 2011 From: ginters.buss at gmail.com (=?UTF-8?Q?Ginters_Bu=C5=A1s?=) Date: Thu, 3 Feb 2011 15:35:34 +0200 Subject: [scilab-Users] URL read/write In-Reply-To: <4D4804D3.40808@univ-lemans.fr> References: <4BCEADCD.6010307@univ-lemans.fr> <4BCEB124.8020802@univ-lemans.fr> <1271837175.1523.8969.camel@korcula.inria.fr> <4D4804D3.40808@univ-lemans.fr> Message-ID: > > So, what's another option, if not curl? >> > Install it before using it through Scilab, or use ATOMS/Socket. > > Samuel > > Thanks a lot. cURL seems to work for me; great. Gin. -------------- next part -------------- An HTML attachment was scrubbed... URL: From calixte at contrib.scilab.org Thu Feb 3 21:57:39 2011 From: calixte at contrib.scilab.org (Calixte Denizet) Date: Thu, 03 Feb 2011 21:57:39 +0100 Subject: [scilab-Users] eps export unusable with psfrag In-Reply-To: <4D46C569.9000709@utc.fr> References: <4D46C569.9000709@utc.fr> Message-ID: <1296766659.3649.463.camel@Calixte-Dell> Le lundi 31 janvier 2011 ? 15:21 +0100, St?phane Mottelet a ?crit : > Hi all, > Hello Stephane, > it seems that the new eps (an also others) export transforms fonts glyphs > to paths, so that it is impossible to psfrag to recover strings in the eps. > Is there a workaround ? I tryed to find one but without any success... I just tryed in exporting into SVG and used inkscape --export-eps but strings are not in plain format. The graphics rendering is currently refactorized so the export will be refactorized too. > I know that latex rendering is now possible in scilab graphic text, but > sometimes you have to scale a graph without scaling also the text. > You can use LaTeX macros to rescale text: \scalebox or \DeclareMathSizes or \magnification. The two macros \Declare... and \magni... are global so you just have to use them one time. Calixte > S. From stephane.mottelet at utc.fr Thu Feb 3 22:21:05 2011 From: stephane.mottelet at utc.fr (Stephane Mottelet) Date: Thu, 03 Feb 2011 22:21:05 +0100 Subject: [scilab-Users] eps export unusable with psfrag In-Reply-To: <1296766659.3649.463.camel@Calixte-Dell> References: <4D46C569.9000709@utc.fr> <1296766659.3649.463.camel@Calixte-Dell> Message-ID: <20110203222105.20856klkuzh8156o@webmail.utc.fr> Hi, Calixte Denizet a ?crit?: > Le lundi 31 janvier 2011 ? 15:21 +0100, St?phane Mottelet a ?crit : >> Hi all, >> > > Hello Stephane, > >> it seems that the new eps (an also others) export transforms fonts glyphs >> to paths, so that it is impossible to psfrag to recover strings in the eps. >> Is there a workaround ? > > I tryed to find one but without any success... I just tryed in exporting > into SVG and used inkscape --export-eps but strings are not in plain > format. The graphics rendering is currently refactorized so the export > will be refactorized too. Yeah, it's a known problem of Cairo which only includes the font glyphs which are actually used, and then uses "references" which are not the original characters... >> I know that latex rendering is now possible in scilab graphic text, but >> sometimes you have to scale a graph without scaling also the text. >> > > You can use LaTeX macros to rescale text: \scalebox or \DeclareMathSizes > or \magnification. The two macros \Declare... and \magni... are global > so you just have to use them one time. OK I will try that. Thanks. S. > > Calixte > >> S. > > > From paul.carrico at esterline.com Fri Feb 4 09:58:04 2011 From: paul.carrico at esterline.com (Carrico, Paul) Date: Fri, 4 Feb 2011 09:58:04 +0100 Subject: Atoms packages Message-ID: <55A12CBC06A8C9459DCE0BBEF8122FDC0498B0F3@exchsrv.AUXITROL1> Dear All, Due to workstation configuration It seems not to be possible to install Atoms packages from the module manager (it failes) ... Nevertheless I suppose it's possible to manually install it directly in the good directory after having untar/unzip it isn't it ? So where have I to depose it ? Thanks Paul -------------------------------------------------------------------------------- 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. -------------- next part -------------- An HTML attachment was scrubbed... URL: From sylvestre.ledru at scilab.org Fri Feb 4 10:01:24 2011 From: sylvestre.ledru at scilab.org (Sylvestre Ledru) Date: Fri, 04 Feb 2011 10:01:24 +0100 Subject: [scilab-Users] Atoms packages In-Reply-To: <55A12CBC06A8C9459DCE0BBEF8122FDC0498B0F3@exchsrv.AUXITROL1> References: <55A12CBC06A8C9459DCE0BBEF8122FDC0498B0F3@exchsrv.AUXITROL1> Message-ID: <1296810084.6213.23.camel@korcula.inria.fr> Le vendredi 04 f?vrier 2011 ? 09:58 +0100, Carrico, Paul a ?crit : > Dear All, > > Due to workstation configuration It seems not to be possible to > install Atoms packages from the module manager (it fails) ... Do you know why ? Are you using a proxy ? > Nevertheless I suppose it's possible to manually install it directly > in the good directory after having untar/unzip it isn't it ? > > So where have I to depose it ? http://help.scilab.org/docs/5.3.0/en_US/atomsInstall.html result = atomsInstall(file) S From paul.carrico at esterline.com Fri Feb 4 12:38:39 2011 From: paul.carrico at esterline.com (Carrico, Paul) Date: Fri, 4 Feb 2011 12:38:39 +0100 Subject: [scilab-Users] Atoms packages In-Reply-To: <1296810084.6213.23.camel@korcula.inria.fr> References: <55A12CBC06A8C9459DCE0BBEF8122FDC0498B0F3@exchsrv.AUXITROL1> <1296810084.6213.23.camel@korcula.inria.fr> Message-ID: <55A12CBC06A8C9459DCE0BBEF8122FDC0498B0F5@exchsrv.AUXITROL1> "Do you know why ? Are you using a proxy ? " Yes there's a proxy .... -----Message d'origine----- De : Sylvestre Ledru [mailto:sylvestre.ledru at scilab.org] Envoy? : vendredi 4 f?vrier 2011 10:01 ? : users at lists.scilab.org Objet : Re: [scilab-Users] Atoms packages Le vendredi 04 f?vrier 2011 ? 09:58 +0100, Carrico, Paul a ?crit : > Dear All, > > Due to workstation configuration It seems not to be possible to > install Atoms packages from the module manager (it fails) ... Do you know why ? Are you using a proxy ? > Nevertheless I suppose it's possible to manually install it directly > in the good directory after having untar/unzip it isn't it ? > > So where have I to depose it ? http://help.scilab.org/docs/5.3.0/en_US/atomsInstall.html result = atomsInstall(file) S -------------------------------------------------------------------------------- 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 paul.carrico at esterline.com Fri Feb 4 12:44:13 2011 From: paul.carrico at esterline.com (Carrico, Paul) Date: Fri, 4 Feb 2011 12:44:13 +0100 Subject: SQP method Message-ID: <55A12CBC06A8C9459DCE0BBEF8122FDC0498B0F6@exchsrv.AUXITROL1> All, Except fsqp that's under license, is there another library including Sequential Quadratic Programming in Scilab ? - HQP in sourceforce but it needs C compileur (I'm currently under windows and I don't want to install either cygwin nor mygwin - dakota libraries ... - and so on ... Any feedback ? Regards Paul -------------------------------------------------------------------------------- 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. -------------- next part -------------- An HTML attachment was scrubbed... URL: From ycollette.nospam at free.fr Fri Feb 4 13:02:17 2011 From: ycollette.nospam at free.fr (ycollette.nospam at free.fr) Date: Fri, 4 Feb 2011 13:02:17 +0100 (CET) Subject: [scilab-Users] SQP method In-Reply-To: <55A12CBC06A8C9459DCE0BBEF8122FDC0498B0F6@exchsrv.AUXITROL1> Message-ID: <1476241307.3188101296820937505.JavaMail.root@zimbra40-e7.priv.proxad.net> There is a NLOPT library which have a SQP: http://ab-initio.mit.edu/wiki/index.php/NLopt I have started a scilab interface for this library. It's nearly finished, but still need some improvements (and a C compiler under windows :)). YC ----- Mail Original ----- De: "Paul Carrico" ?: users at lists.scilab.org Envoy?: Vendredi 4 F?vrier 2011 12h44:13 GMT +01:00 Amsterdam / Berlin / Berne / Rome / Stockholm / Vienne Objet: [scilab-Users] SQP method All, Except fsqp that's under license, is there another library including Sequential Quadratic Programming in Scilab ? - HQP in sourceforce but it needs C compileur (I'm currently under windows and I don't want to install either cygwin nor mygwin - dakota libraries ... - and so on ... Any feedback ? Regards Paul -------------------------------------------------------------------------------- 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 paul.carrico at esterline.com Fri Feb 4 13:37:36 2011 From: paul.carrico at esterline.com (Carrico, Paul) Date: Fri, 4 Feb 2011 13:37:36 +0100 Subject: [scilab-Users] SQP method In-Reply-To: <1476241307.3188101296820937505.JavaMail.root@zimbra40-e7.priv.proxad.net> References: <55A12CBC06A8C9459DCE0BBEF8122FDC0498B0F6@exchsrv.AUXITROL1> <1476241307.3188101296820937505.JavaMail.root@zimbra40-e7.priv.proxad.net> Message-ID: <55A12CBC06A8C9459DCE0BBEF8122FDC0498B0F7@exchsrv.AUXITROL1> Thanks for the information ... A pre-compiled windows library exists .... PC -----Message d'origine----- De : ycollette.nospam at free.fr [mailto:ycollette.nospam at free.fr] Envoy? : vendredi 4 f?vrier 2011 13:02 ? : users at lists.scilab.org Objet : Re: [scilab-Users] SQP method There is a NLOPT library which have a SQP: http://ab-initio.mit.edu/wiki/index.php/NLopt I have started a scilab interface for this library. It's nearly finished, but still need some improvements (and a C compiler under windows :)). YC ----- Mail Original ----- De: "Paul Carrico" ?: users at lists.scilab.org Envoy?: Vendredi 4 F?vrier 2011 12h44:13 GMT +01:00 Amsterdam / Berlin / Berne / Rome / Stockholm / Vienne Objet: [scilab-Users] SQP method All, Except fsqp that's under license, is there another library including Sequential Quadratic Programming in Scilab ? - HQP in sourceforce but it needs C compileur (I'm currently under windows and I don't want to install either cygwin nor mygwin - dakota libraries ... - and so on ... Any feedback ? Regards Paul -------------------------------------------------------------------------------- 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. -------------------------------------------------------------------------------- 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 ycollette.nospam at free.fr Fri Feb 4 13:54:46 2011 From: ycollette.nospam at free.fr (ycollette.nospam at free.fr) Date: Fri, 4 Feb 2011 13:54:46 +0100 (CET) Subject: [scilab-Users] SQP method In-Reply-To: <799827619.3191661296824041355.JavaMail.root@zimbra40-e7.priv.proxad.net> Message-ID: <2084138216.3191731296824086522.JavaMail.root@zimbra40-e7.priv.proxad.net> I will try to find some time to build this toolbox (and to put it into atoms). The source code is here: http://code.google.com/p/scilab-mip/source/browse/#svn%2Ftrunk%2Fscinlopt YC ----- Mail Original ----- De: "Paul Carrico" ?: users at lists.scilab.org Envoy?: Vendredi 4 F?vrier 2011 13h37:36 GMT +01:00 Amsterdam / Berlin / Berne / Rome / Stockholm / Vienne Objet: RE: [scilab-Users] SQP method Thanks for the information ... A pre-compiled windows library exists .... PC -----Message d'origine----- De : ycollette.nospam at free.fr [mailto:ycollette.nospam at free.fr] Envoy? : vendredi 4 f?vrier 2011 13:02 ? : users at lists.scilab.org Objet : Re: [scilab-Users] SQP method There is a NLOPT library which have a SQP: http://ab-initio.mit.edu/wiki/index.php/NLopt I have started a scilab interface for this library. It's nearly finished, but still need some improvements (and a C compiler under windows :)). YC ----- Mail Original ----- De: "Paul Carrico" ?: users at lists.scilab.org Envoy?: Vendredi 4 F?vrier 2011 12h44:13 GMT +01:00 Amsterdam / Berlin / Berne / Rome / Stockholm / Vienne Objet: [scilab-Users] SQP method All, Except fsqp that's under license, is there another library including Sequential Quadratic Programming in Scilab ? - HQP in sourceforce but it needs C compileur (I'm currently under windows and I don't want to install either cygwin nor mygwin - dakota libraries ... - and so on ... Any feedback ? Regards Paul -------------------------------------------------------------------------------- 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. -------------------------------------------------------------------------------- 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 paul.carrico at esterline.com Fri Feb 4 13:57:33 2011 From: paul.carrico at esterline.com (Carrico, Paul) Date: Fri, 4 Feb 2011 13:57:33 +0100 Subject: [scilab-Users] SQP method In-Reply-To: <2084138216.3191731296824086522.JavaMail.root@zimbra40-e7.priv.proxad.net> References: <799827619.3191661296824041355.JavaMail.root@zimbra40-e7.priv.proxad.net> <2084138216.3191731296824086522.JavaMail.root@zimbra40-e7.priv.proxad.net> Message-ID: <55A12CBC06A8C9459DCE0BBEF8122FDC0498B0F8@exchsrv.AUXITROL1> Ohhhhhhhhhhhhhh I was not expecting for that ... Nevertheless thanks for sharing your work ! (I'll have a look on it) PC -----Message d'origine----- De : ycollette.nospam at free.fr [mailto:ycollette.nospam at free.fr] Envoy? : vendredi 4 f?vrier 2011 13:55 ? : users at lists.scilab.org Objet : Re: [scilab-Users] SQP method I will try to find some time to build this toolbox (and to put it into atoms). The source code is here: http://code.google.com/p/scilab-mip/source/browse/#svn%2Ftrunk%2Fscinlopt YC ----- Mail Original ----- De: "Paul Carrico" ?: users at lists.scilab.org Envoy?: Vendredi 4 F?vrier 2011 13h37:36 GMT +01:00 Amsterdam / Berlin / Berne / Rome / Stockholm / Vienne Objet: RE: [scilab-Users] SQP method Thanks for the information ... A pre-compiled windows library exists .... PC -----Message d'origine----- De : ycollette.nospam at free.fr [mailto:ycollette.nospam at free.fr] Envoy? : vendredi 4 f?vrier 2011 13:02 ? : users at lists.scilab.org Objet : Re: [scilab-Users] SQP method There is a NLOPT library which have a SQP: http://ab-initio.mit.edu/wiki/index.php/NLopt I have started a scilab interface for this library. It's nearly finished, but still need some improvements (and a C compiler under windows :)). YC ----- Mail Original ----- De: "Paul Carrico" ?: users at lists.scilab.org Envoy?: Vendredi 4 F?vrier 2011 12h44:13 GMT +01:00 Amsterdam / Berlin / Berne / Rome / Stockholm / Vienne Objet: [scilab-Users] SQP method All, Except fsqp that's under license, is there another library including Sequential Quadratic Programming in Scilab ? - HQP in sourceforce but it needs C compileur (I'm currently under windows and I don't want to install either cygwin nor mygwin - dakota libraries ... - and so on ... Any feedback ? Regards Paul -------------------------------------------------------------------------------- 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. -------------------------------------------------------------------------------- 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. -------------------------------------------------------------------------------- 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 communication at scilab.org Fri Feb 4 15:17:11 2011 From: communication at scilab.org (Scilab Communication) Date: Fri, 04 Feb 2011 15:17:11 +0100 Subject: Scilab File Exchange Message-ID: <4D4C0A67.6060508@scilab.org> Dear all, We are pleased to announce the launch of Scilab File Exchange - new website for Scilab community of users, dedicated to easily exchange files, script, data, experiences, etc. We invite you to connect to: http://fileexchange.scilab.org/ Do not hesitate to make us comments or suggestions in return. Best Regards ----------------------------------------------- The Scilab Consortium R&D Team ----------------------------------------------- Digiteo Domaine de Voluceau Rocquencourt - B.P. 105 78153 Le Chesnay Cedex - France From khaos1987 at gmail.com Sun Feb 6 10:02:33 2011 From: khaos1987 at gmail.com (Gary Tang) Date: Sun, 6 Feb 2011 01:02:33 -0800 Subject: Using plot function Message-ID: Hi, I just downloaded the free 64-bit silab 5.3.0 but whenever I try to use the plot function the entire scilab program closes down on me? I even tried using the same coding used in the examples when i do "help plot" and silab still closes down on me, is this normal or no? and how can i fix this? -- Gary -------------- next part -------------- An HTML attachment was scrubbed... URL: From vogt at centre-cired.fr Sun Feb 6 12:31:34 2011 From: vogt at centre-cired.fr (Adrien Vogt-Schilb) Date: Sun, 06 Feb 2011 12:31:34 +0100 Subject: [scilab-Users] Using plot function In-Reply-To: References: Message-ID: <4D4E8696.2040405@centre-cired.fr> Le 06/02/2011 10:02, Gary Tang a ?crit : > Hi, I just downloaded the free 64-bit silab 5.3.0 but whenever I try > to use the plot function the entire scilab program closes down on me? > I even tried using the same coding used in the examples when i do > "help plot" and silab still closes down on me, is this normal or no? > and how can i fix this? > > -- > Gary Hi It looks like a driver problem. Does the following mail apply to your case? Hello, On Sun, 2011-01-23 at 15:09 -0500, JIGAR PATEL wrote: > > I am using SciLab 5.2.2 for one of my classes as instructed by my > > teacher and when I use the plot command it exits the programs, I have > > tried the Windows 7 32-bit as well as the 64-bit version of SciLab and > > both do the same, my laptop is running on Windows 7 Home Premium > > 64-bit. I know that I'm using the plot command correctly as the same > > command works on my desktop please let me know what steps can be taken > > to fix this. I'm attaching a video so show you what exactly happens > > when I try to plot a function. Your problem is probably due to a problem with your graphic driver (especially if you run an Intel HD graphic card). We are aware of the issue and we are working on it. Sylvestre -- *Adrien Vogt-Schilb* Research Fellow vogt at centre-cired.fr Tel: (+33) 1 43 94 73 72 Fax: (+33) 1 43 94 73 70 CIRED 45 bis, Av de la Belle Gabrielle F-94736 Nogent-sur-Marne http://www.centre-cired.fr/ -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: logocired.png Type: image/png Size: 4092 bytes Desc: not available URL: From sylvestre.ledru at scilab.org Sun Feb 6 12:51:36 2011 From: sylvestre.ledru at scilab.org (Sylvestre Ledru) Date: Sun, 06 Feb 2011 12:51:36 +0100 Subject: [scilab-Users] Using plot function In-Reply-To: <4D4E8696.2040405@centre-cired.fr> References: <4D4E8696.2040405@centre-cired.fr> Message-ID: <1296993096.3972.1219.camel@losinj.inria.fr> On Sun, 2011-02-06 at 12:31 +0100, Adrien Vogt-Schilb wrote: > Le 06/02/2011 10:02, Gary Tang a ?crit : > > Hi, I just downloaded the free 64-bit silab 5.3.0 but whenever I try > > to use the plot function the entire scilab program closes down on > > me? I even tried using the same coding used in the examples when i > > do "help plot" and silab still closes down on me, is this normal or > > no? and how can i fix this? > > > > -- > > Gary > > Hi > > It looks like a driver problem. Does the following mail apply to your > case? I think it is the case (once more). Could you try the workaround described here ? http://bugzilla.scilab.org/show_bug.cgi?id=7526#c10 Sylvestre From jan.mike.hollis at verizon.net Sun Feb 6 19:29:59 2011 From: jan.mike.hollis at verizon.net (Jan M. Hollis) Date: Sun, 06 Feb 2011 12:29:59 -0600 (CST) Subject: [scilab-Users] Using plot function Message-ID: <1586597825.1301595.1297017000109.JavaMail.root@vznit170060> Hi, On my computer (HP dm3-3012nr with Intel HD Graphics) I am able to get into the 8-bit graphics mode by performing the following: Go Right-click on an empty spot on the desktop>Screen Resolution>Advanced Settings>List All Modes>Scroll up. You see some 256 color modes. Select one. Click Ok. Click Apply. This allows the Scilab plot function to execute without crashing the program; however, I do not see any resultant plot on the Scilab graphics window. Any thoughts on this? Cheers, Jan M. Hollis No man knows how bad he is until he has tried very hard to be good. -- C.S. Lewis in Mere Christianity -- Feb 6, 2011 06:52:17 AM, users at lists.scilab.org wrote: =========================================== On Sun, 2011-02-06 at 12:31 +0100, Adrien Vogt-Schilb wrote: > Le 06/02/2011 10:02, Gary Tang a ?crit : > > Hi, I just downloaded the free 64-bit silab 5.3.0 but whenever I try > > to use the plot function the entire scilab program closes down on > > me? I even tried using the same coding used in the examples when i > > do "help plot" and silab still closes down on me, is this normal or > > no? and how can i fix this? > > > > -- > > Gary > > Hi > > It looks like a driver problem. Does the following mail apply to your > case? I think it is the case (once more). Could you try the workaround described here ? http://bugzilla.scilab.org/show_bug.cgi?id=7526#c10 Sylvestre From paul.hillereau at gmail.com Mon Feb 7 14:54:50 2011 From: paul.hillereau at gmail.com (Paul Hillereau) Date: Mon, 7 Feb 2011 14:54:50 +0100 Subject: Using SOCKET2 toolbox under Linux Message-ID: Hello, I'm trying to use the SOCKET2 toolbox with scilab 5.3.0 under Linux (redhat 5, 32 bits, java 1.6) and my script seems to go in an infinite wait. When opening a socket with SOCKET_open() scilab goes into a strange state : I can still interact with scinotes, but I can't break the execution of my script, the only solution to exit scilab is to kill it. I try to understand what is happening by using strace -f but I got too much useless feedback to understand what happen. Under Windows XP with scilab 5.1.1 (portable version), the same script does not fail ; but I don't get any message from my server (a small C program)... I try the SOCKET toolbox (with WinSocket) and it works perfectly well. Do anybody know something about the SOCKET2 Toolbox ? I search bugs report on the scilab's bugzilla using the search box but I didn't find anything on this toolbox. I've attached the scilab script and C program I used to test my configuration. Tanks for help, Paul. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: test_socket.c Type: text/x-csrc Size: 2102 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: test_socket.sci Type: application/octet-stream Size: 335 bytes Desc: not available URL: From eduardo.torrecillas at gmail.com Mon Feb 7 18:08:10 2011 From: eduardo.torrecillas at gmail.com (Eduardo Torrecillas) Date: Mon, 7 Feb 2011 15:08:10 -0200 Subject: Help with 64bit transition Message-ID: Dear all, Recently I moved from Ubuntu32+scilab 4.1.2 (32bit) to scilab 5.3.0 (64bit), as I am now using Ubuntu 64 version. I had a bunch of external C functions linked to scilab using intersci, and now I have some problems using them. For example, when dealing with arrays, indexes are a little bit confusing. It looks like when trying to access index "n" in array, the program actually operates on index "2*n". Here I posted a simple example, where I try to manipulate data on an array. Please, try to check array elemID after calling the "soma_inteiros" function. C code and desc file are also attached. Note that the sum operation works fine (variable c receives 5, which is correct for 4+1). Has anyone seen any similar problem or know how to solve this? Regards, -- Eduardo Torrecillas AER-09 -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: 64bit.zip Type: application/zip Size: 1674 bytes Desc: not available URL: From lhorodko at p.lodz.pl Mon Feb 7 18:46:21 2011 From: lhorodko at p.lodz.pl (Longin Horodko) Date: Mon, 07 Feb 2011 18:46:21 +0100 Subject: Using plot function Message-ID: <4D502FED.3040703@p.lodz.pl> I had the same problem with Windows 7 64bit and Intel HD Graphics. The old driver v. 8.15.10.1995 dated 2009-11-06 worked properly, but the newer one v. 8.15.10.2202 dated 2010-08-25 caused Scilab crash in every attempt to plot. This driver was installed automatically during the Windows update. Fortunately, the latest driver v. 8.15.10.2279 dated 2011-01-07 works correctly again. You can download it from Intel's web site. Longin Horodko From perrichon.pierre at wanadoo.fr Tue Feb 8 05:38:31 2011 From: perrichon.pierre at wanadoo.fr (Perrichon Pierre) Date: Tue, 8 Feb 2011 05:38:31 +0100 Subject: JavaSci interface Message-ID: Hello, One year ago, I'd developed a Java program interface to scilab with a nightly build version "scilab-branches-5.1-1252919380" , using JavaSci. This aim was to compute optimal parameters for a PID corrector for a hydraulic turbine. As this program very well worked, going to version scilab 5.3 brings serious problems, and the program doesn't compute the parameters anymore. This installation of this 5.3 version is apparently correct, but the runtime doesn't work. See the attached file. What is the meaning of the message "SendScilabJob call_scilab engine not started" Should anyone helps me (may be A.C)? If I go back to scilab-branches-5.1-1252919380, all is correct a new time. Best regards -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: JavaSCI Scilab Version 5.3.pdf Type: application/pdf Size: 87129 bytes Desc: not available URL: From Loic.Girod at esstin.uhp-nancy.fr Tue Feb 8 10:12:58 2011 From: Loic.Girod at esstin.uhp-nancy.fr (=?iso-8859-1?Q?Lo=EFc_GIROD?=) Date: Tue, 8 Feb 2011 10:12:58 +0100 Subject: reading file in hexadecimal Message-ID: <00a201cbc770$61c49990$254dccb0$@esstin.uhp-nancy.fr> Hello, Beginner under scilab, I?m trying to make a script to read a file and make some calculations on the data. I would like to read the file attached (F1_31) as an hexa format. For the moment, I use notepad++ to convert the file in hexadecimal and I can read it in scilab using mopen/mfscanf. I would like to be able to read the file directly under scilab, without using another software. Is it possible ? If yes, could you please explain me the procedure ? Best regards Lo?c -- Lo?c GIROD, Ph.D. Ing?nieur - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ESSTIN, LEMTA, LPMM 2 rue Jean Lamour 54500 VANDOEUVRE LES NANCY FRANCE Tel. : +33 3 83 68 51 44 Port. : +33 6 82 07 98 52 Email. : loic.girod at esstin.uhp-nancy.fr -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: F1_31 Type: application/octet-stream Size: 12260 bytes Desc: not available URL: From Mike at Page-One.Waitrose.com Tue Feb 8 10:54:36 2011 From: Mike at Page-One.Waitrose.com (Mike Page) Date: Tue, 8 Feb 2011 09:54:36 -0000 Subject: [scilab-Users] reading file in hexadecimal In-Reply-To: <00a201cbc770$61c49990$254dccb0$@esstin.uhp-nancy.fr> Message-ID: Hi Loic, Not sure what you want exactly, but the file looks like a set of floats (4-byte IEEE 754 floating point values). You can read these using: a = mget (n, 'f', fd) where n is the number you want to read and fd is the file descriptor (you get that using fd=mopen("F1_31.dat",'rb'). If you really want the values in hex, then it depends on how many bytes per hex value. If there are 4 bytes each, then you can use something like: a = dec2hex (mget (n, 'l', fd)) Hope that helps. Mike. -----Original Message----- From: Lo?c GIROD [mailto:Loic.Girod at esstin.uhp-nancy.fr] Sent: 08 February 2011 09:13 To: users at lists.scilab.org Subject: [scilab-Users] reading file in hexadecimal Hello, Beginner under scilab, I?m trying to make a script to read a file and make some calculations on the data. I would like to read the file attached (F1_31) as an hexa format. For the moment, I use notepad++ to convert the file in hexadecimal and I can read it in scilab using mopen/mfscanf. I would like to be able to read the file directly under scilab, without using another software. Is it possible ? If yes, could you please explain me the procedure ? Best regards Lo?c -- Lo?c GIROD, Ph.D. Ing?nieur - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ESSTIN, LEMTA, LPMM 2 rue Jean Lamour 54500 VANDOEUVRE LES NANCY FRANCE Tel. : +33 3 83 68 51 44 Port. : +33 6 82 07 98 52 Email. : loic.girod at esstin.uhp-nancy.fr -------------- next part -------------- An HTML attachment was scrubbed... URL: From stefansiek at gmx.net Tue Feb 8 15:09:57 2011 From: stefansiek at gmx.net (Stefan Siek) Date: Tue, 8 Feb 2011 15:09:57 +0100 Subject: Books & Papers Message-ID: Hello, I'm an German Student and my English is not the best. So I Ask you if it gives documentation about the use of Scilab in German? Yours faithfully Stefan Siek -------------- next part -------------- An HTML attachment was scrubbed... URL: From Samuel.Gougeon at univ-lemans.fr Tue Feb 8 16:41:15 2011 From: Samuel.Gougeon at univ-lemans.fr (Samuel GOUGEON) Date: Tue, 08 Feb 2011 16:41:15 +0100 Subject: [scilab-Users] Books & Papers In-Reply-To: References: Message-ID: <4D51641B.2080805@univ-lemans.fr> Hello, ----- Message d'origine ----- De : Stefan Siek Date : 08/02/2011 15:09: > > Hello, > > I'm an German Student and my English is not the best. > > So I Ask you if it gives documentation about the use of Scilab in German? > You may have a look here: http://wiki.scilab.org/Tutorials#head-b4ec665999f661743c70894fd1e34a81d7eed61f There is one presentation of Scilab and Scicos (Xcos) in German (125 pages). Regards Samuel -------------- next part -------------- An HTML attachment was scrubbed... URL: From Loic.Girod at esstin.uhp-nancy.fr Tue Feb 8 17:24:06 2011 From: Loic.Girod at esstin.uhp-nancy.fr (=?UTF-8?Q?Lo=C3=AFc_GIROD?=) Date: Tue, 8 Feb 2011 17:24:06 +0100 Subject: reading file in hexadecimal Message-ID: <00ef01cbc7ac$9d862e30$d8928a90$@esstin.uhp-nancy.fr> Hello Mike, Many thanks for your answer. It works perfect with a = dec2hex (mget (1, ?l?, fd)). I only need to read one float each time. Thank you again Loic Subject: Re: reading file in hexadecimal From: "Mike Page" ####@####.#### Date: 8 Feb 2011 10:54:36 +0100 Message-Id: Hi Loic, Not sure what you want exactly, but the file looks like a set of floats (4-byte IEEE 754 floating point values). You can read these using: a = mget (n, 'f', fd) where n is the number you want to read and fd is the file descriptor (you get that using fd=mopen("F1_31.dat",'rb'). If you really want the values in hex, then it depends on how many bytes per hex value. If there are 4 bytes each, then you can use something like: a = dec2hex (mget (n, 'l', fd)) Hope that helps. Mike. -----Original Message----- From: Lo?c GIROD ####@####.#### Sent: 08 February 2011 09:13 To: ####@####.#### Subject: [scilab-Users] reading file in hexadecimal Hello, Beginner under scilab, I?m trying to make a script to read a file and make some calculations on the data. I would like to read the file attached (F1_31) as an hexa format. For the moment, I use notepad++ to convert the file in hexadecimal and I can read it in scilab using mopen/mfscanf. I would like to be able to read the file directly under scilab, without using another software. Is it possible ? If yes, could you please explain me the procedure ? Best regards Loic -------------- next part -------------- An HTML attachment was scrubbed... URL: From Mike at Page-One.Waitrose.com Tue Feb 8 17:56:00 2011 From: Mike at Page-One.Waitrose.com (Mike Page) Date: Tue, 8 Feb 2011 16:56:00 -0000 Subject: [scilab-Users] Re: reading file in hexadecimal In-Reply-To: <00ef01cbc7ac$9d862e30$d8928a90$@esstin.uhp-nancy.fr> Message-ID: Hi Loic, Thinking about it, you might need to use an unsigned format ('ul') if any of your values are negative - dec2hex only works for positive numbers. Anyway, you can try various things now you have a partial solution. Mike. -----Original Message----- From: Lo?c GIROD [mailto:Loic.Girod at esstin.uhp-nancy.fr] Sent: 08 February 2011 16:24 To: users at lists.scilab.org Subject: [scilab-Users] Re: reading file in hexadecimal Hello Mike, Many thanks for your answer. It works perfect with a = dec2hex (mget (1, ?l?, fd)). I only need to read one float each time. Thank you again Loic Subject: Re: reading file in hexadecimal From: "Mike Page" ####@####.#### Date: 8 Feb 2011 10:54:36 +0100 Message-Id: Hi Loic, Not sure what you want exactly, but the file looks like a set of floats (4-byte IEEE 754 floating point values). You can read these using: a = mget (n, 'f', fd) where n is the number you want to read and fd is the file descriptor (you get that using fd=mopen("F1_31.dat",'rb'). If you really want the values in hex, then it depends on how many bytes per hex value. If there are 4 bytes each, then you can use something like: a = dec2hex (mget (n, 'l', fd)) Hope that helps. Mike. -----Original Message----- From: Lo?c GIROD ####@####.#### Sent: 08 February 2011 09:13 To: ####@####.#### Subject: [scilab-Users] reading file in hexadecimal Hello, Beginner under scilab, I?m trying to make a script to read a file and make some calculations on the data. I would like to read the file attached (F1_31) as an hexa format. For the moment, I use notepad++ to convert the file in hexadecimal and I can read it in scilab using mopen/mfscanf. I would like to be able to read the file directly under scilab, without using another software. Is it possible ? If yes, could you please explain me the procedure ? Best regards Loic -------------- next part -------------- An HTML attachment was scrubbed... URL: From Loic.Girod at esstin.uhp-nancy.fr Tue Feb 8 18:12:01 2011 From: Loic.Girod at esstin.uhp-nancy.fr (=?UTF-8?Q?Lo=C3=AFc_GIROD?=) Date: Tue, 8 Feb 2011 18:12:01 +0100 Subject: [scilab-Users] Re: reading file in hexadecimal In-Reply-To: References: <00ef01cbc7ac$9d862e30$d8928a90$@esstin.uhp-nancy.fr> Message-ID: <011c01cbc7b3$4d532880$e7f97980$@esstin.uhp-nancy.fr> Hello Mike, In fact, I?m trying to make a script to draw curves of a DSC scan (transformation temperatures in metal alloys). We use a SETARAM DSC scan but the very old printer attached is nearly death. Attached you will find a file describing the process to understand the values (sorry, it is in French). So, I?m trying to make a script under scilab to read the files and make the curves. The solution you gave me works well, but I?m not able to get more than 1000 floats in the file (I don?t know how to check the number of floats in the file). If the way the file is coded is well-known, can I read directly the values instead of calculating it with the method exposes in the attached document ? Many thanks Lo?c De : Mike Page [mailto:Mike at Page-One.Waitrose.com] Envoy? : mardi 8 f?vrier 2011 17:56 ? : users at lists.scilab.org Objet : RE: [scilab-Users] Re: reading file in hexadecimal Hi Loic, Thinking about it, you might need to use an unsigned format ('ul') if any of your values are negative - dec2hex only works for positive numbers. Anyway, you can try various things now you have a partial solution. Mike. -----Original Message----- From: Lo?c GIROD [mailto:Loic.Girod at esstin.uhp-nancy.fr] Sent: 08 February 2011 16:24 To: users at lists.scilab.org Subject: [scilab-Users] Re: reading file in hexadecimal Hello Mike, Many thanks for your answer. It works perfect with a = dec2hex (mget (1, ?l?, fd)). I only need to read one float each time. Thank you again Loic Subject: Re: reading file in hexadecimal From: "Mike Page" ####@####.#### Date: 8 Feb 2011 10:54:36 +0100 Message-Id: Hi Loic, Not sure what you want exactly, but the file looks like a set of floats (4-byte IEEE 754 floating point values). You can read these using: a = mget (n, 'f', fd) where n is the number you want to read and fd is the file descriptor (you get that using fd=mopen("F1_31.dat",'rb'). If you really want the values in hex, then it depends on how many bytes per hex value. If there are 4 bytes each, then you can use something like: a = dec2hex (mget (n, 'l', fd)) Hope that helps. Mike. -----Original Message----- From: Lo?c GIROD ####@####.#### Sent: 08 February 2011 09:13 To: ####@####.#### Subject: [scilab-Users] reading file in hexadecimal Hello, Beginner under scilab, I?m trying to make a script to read a file and make some calculations on the data. I would like to read the file attached (F1_31) as an hexa format. For the moment, I use notepad++ to convert the file in hexadecimal and I can read it in scilab using mopen/mfscanf. I would like to be able to read the file directly under scilab, without using another software. Is it possible ? If yes, could you please explain me the procedure ? Best regards Loic -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: description_format_fichier.pdf Type: application/pdf Size: 52841 bytes Desc: not available URL: From Mike at Page-One.Waitrose.com Tue Feb 8 18:32:26 2011 From: Mike at Page-One.Waitrose.com (Mike Page) Date: Tue, 8 Feb 2011 17:32:26 -0000 Subject: [scilab-Users] Re: reading file in hexadecimal In-Reply-To: <011c01cbc7b3$4d532880$e7f97980$@esstin.uhp-nancy.fr> Message-ID: Hi Loic, You can find the size of a file using fileinfo: info = fileinfo("F1_31.dat"); This returns a vector - the first element info(1) is the file size in bytes. As an IEEE float is 4 bytes, divide by 4 to get the number of values in the file. For the example you provided, this seems to be 3065 values. Since the values are IEEE float format and little-endian, you can read them directly using: a = mget (3065, 'f', fd); Hope that helps. Mike. -----Original Message----- From: Lo?c GIROD [mailto:Loic.Girod at esstin.uhp-nancy.fr] Sent: 08 February 2011 17:12 To: users at lists.scilab.org Subject: RE: [scilab-Users] Re: reading file in hexadecimal Hello Mike, In fact, I?m trying to make a script to draw curves of a DSC scan (transformation temperatures in metal alloys). We use a SETARAM DSC scan but the very old printer attached is nearly death. Attached you will find a file describing the process to understand the values (sorry, it is in French). So, I?m trying to make a script under scilab to read the files and make the curves. The solution you gave me works well, but I?m not able to get more than 1000 floats in the file (I don?t know how to check the number of floats in the file). If the way the file is coded is well-known, can I read directly the values instead of calculating it with the method exposes in the attached document ? Many thanks Lo?c De : Mike Page [mailto:Mike at Page-One.Waitrose.com] Envoy? : mardi 8 f?vrier 2011 17:56 ? : users at lists.scilab.org Objet : RE: [scilab-Users] Re: reading file in hexadecimal Hi Loic, Thinking about it, you might need to use an unsigned format ('ul') if any of your values are negative - dec2hex only works for positive numbers. Anyway, you can try various things now you have a partial solution. Mike. -----Original Message----- From: Lo?c GIROD [mailto:Loic.Girod at esstin.uhp-nancy.fr] Sent: 08 February 2011 16:24 To: users at lists.scilab.org Subject: [scilab-Users] Re: reading file in hexadecimal Hello Mike, Many thanks for your answer. It works perfect with a = dec2hex (mget (1, ?l?, fd)). I only need to read one float each time. Thank you again Loic Subject: Re: reading file in hexadecimal From: "Mike Page" ####@####.#### Date: 8 Feb 2011 10:54:36 +0100 Message-Id: Hi Loic, Not sure what you want exactly, but the file looks like a set of floats (4-byte IEEE 754 floating point values). You can read these using: a = mget (n, 'f', fd) where n is the number you want to read and fd is the file descriptor (you get that using fd=mopen("F1_31.dat",'rb'). If you really want the values in hex, then it depends on how many bytes per hex value. If there are 4 bytes each, then you can use something like: a = dec2hex (mget (n, 'l', fd)) Hope that helps. Mike. -----Original Message----- From: Lo?c GIROD ####@####.#### Sent: 08 February 2011 09:13 To: ####@####.#### Subject: [scilab-Users] reading file in hexadecimal Hello, Beginner under scilab, I?m trying to make a script to read a file and make some calculations on the data. I would like to read the file attached (F1_31) as an hexa format. For the moment, I use notepad++ to convert the file in hexadecimal and I can read it in scilab using mopen/mfscanf. I would like to be able to read the file directly under scilab, without using another software. Is it possible ? If yes, could you please explain me the procedure ? Best regards Loic -------------- next part -------------- An HTML attachment was scrubbed... URL: From Loic.Girod at esstin.uhp-nancy.fr Tue Feb 8 18:48:37 2011 From: Loic.Girod at esstin.uhp-nancy.fr (=?UTF-8?Q?Lo=C3=AFc_GIROD?=) Date: Tue, 8 Feb 2011 18:48:37 +0100 Subject: [scilab-Users] Re: reading file in hexadecimal In-Reply-To: References: <011c01cbc7b3$4d532880$e7f97980$@esstin.uhp-nancy.fr> Message-ID: <013101cbc7b8$6a954b30$3fbfe190$@esstin.uhp-nancy.fr> Hi Mike, Many thanks, it works great ! Bye Lo?c De : Mike Page [mailto:Mike at Page-One.Waitrose.com] Envoy? : mardi 8 f?vrier 2011 18:32 ? : users at lists.scilab.org Objet : RE: [scilab-Users] Re: reading file in hexadecimal Hi Loic, You can find the size of a file using fileinfo: info = fileinfo("F1_31.dat"); This returns a vector - the first element info(1) is the file size in bytes. As an IEEE float is 4 bytes, divide by 4 to get the number of values in the file. For the example you provided, this seems to be 3065 values. Since the values are IEEE float format and little-endian, you can read them directly using: a = mget (3065, 'f', fd); Hope that helps. Mike. -----Original Message----- From: Lo?c GIROD [mailto:Loic.Girod at esstin.uhp-nancy.fr] Sent: 08 February 2011 17:12 To: users at lists.scilab.org Subject: RE: [scilab-Users] Re: reading file in hexadecimal Hello Mike, In fact, I?m trying to make a script to draw curves of a DSC scan (transformation temperatures in metal alloys). We use a SETARAM DSC scan but the very old printer attached is nearly death. Attached you will find a file describing the process to understand the values (sorry, it is in French). So, I?m trying to make a script under scilab to read the files and make the curves. The solution you gave me works well, but I?m not able to get more than 1000 floats in the file (I don?t know how to check the number of floats in the file). If the way the file is coded is well-known, can I read directly the values instead of calculating it with the method exposes in the attached document ? Many thanks Lo?c De : Mike Page [mailto:Mike at Page-One.Waitrose.com] Envoy? : mardi 8 f?vrier 2011 17:56 ? : users at lists.scilab.org Objet : RE: [scilab-Users] Re: reading file in hexadecimal Hi Loic, Thinking about it, you might need to use an unsigned format ('ul') if any of your values are negative - dec2hex only works for positive numbers. Anyway, you can try various things now you have a partial solution. Mike. -----Original Message----- From: Lo?c GIROD [mailto:Loic.Girod at esstin.uhp-nancy.fr] Sent: 08 February 2011 16:24 To: users at lists.scilab.org Subject: [scilab-Users] Re: reading file in hexadecimal Hello Mike, Many thanks for your answer. It works perfect with a = dec2hex (mget (1, ?l?, fd)). I only need to read one float each time. Thank you again Loic Subject: Re: reading file in hexadecimal From: "Mike Page" ####@####.#### Date: 8 Feb 2011 10:54:36 +0100 Message-Id: Hi Loic, Not sure what you want exactly, but the file looks like a set of floats (4-byte IEEE 754 floating point values). You can read these using: a = mget (n, 'f', fd) where n is the number you want to read and fd is the file descriptor (you get that using fd=mopen("F1_31.dat",'rb'). If you really want the values in hex, then it depends on how many bytes per hex value. If there are 4 bytes each, then you can use something like: a = dec2hex (mget (n, 'l', fd)) Hope that helps. Mike. -----Original Message----- From: Lo?c GIROD ####@####.#### Sent: 08 February 2011 09:13 To: ####@####.#### Subject: [scilab-Users] reading file in hexadecimal Hello, Beginner under scilab, I?m trying to make a script to read a file and make some calculations on the data. I would like to read the file attached (F1_31) as an hexa format. For the moment, I use notepad++ to convert the file in hexadecimal and I can read it in scilab using mopen/mfscanf. I would like to be able to read the file directly under scilab, without using another software. Is it possible ? If yes, could you please explain me the procedure ? Best regards Loic -------------- next part -------------- An HTML attachment was scrubbed... URL: From stephane.mottelet at utc.fr Tue Feb 8 22:04:56 2011 From: stephane.mottelet at utc.fr (Stephane Mottelet) Date: Tue, 08 Feb 2011 22:04:56 +0100 Subject: weird problem with fscanfMat Message-ID: <20110208220456.10173l6pldi4dzb4@webmail.utc.fr> Hi all, I cannot manage to read the attached file with fscanfMat, although it has a compatible structure, i.e. one line one text then many lines of the same number of columns. I have even tried to read the first line with mgetl, but then eof is reached although I only get the first line (composed of text). I know each line is only finished with a cr and not an eol. Is it a problem ? Thanks for help of anybody willing to solve this weird issue !!! S. -------------- next part -------------- Time (days) ch1 (L) ch2 (L) ch3 (L) ch4 (L) ch5 (L) ch6 (L) ch7 (L) ch8 (L) ch9 (L) ch10 (L) ch11 (L) ch12 (L) ch13 (L) ch14 (L) ch15 (L)0.000 0.000 0.000 0.000 0.000 0.000 0.012 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.0000.001 0.000 0.000 0.000 0.000 0.000 0.012 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.012 0.0000.002 0.000 0.000 0.013 0.000 0.000 0.012 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.012 0.0000.003 0.000 0.000 0.013 0.000 0.000 0.012 0.012 0.000 0.000 0.000 0.000 0.000 0.000 0.012 0.0000.004 0.000 0.000 0.013 0.000 0.000 0.012 0.012 0.013 0.000 0.000 0.000 0.000 0.000 0.012 0.0000.004 0.000 0.000 0.013 0.000 0.000 0.012 0.012 0.013 0.000 0.013 0.000 0.000 0.000 0.012 0.0000.005 0.000 0.000 0.013 0.000 0.000 0.012 0.012 0.013 0.012 0.013 0.000 0.000 0.000 0.012 0.0000.005 0.000 0.000 0.013 0.000 0.000 0.012 0.012 0.013 0.012 0.013 0.000 0.000 0.013 0.012 0.0000.006 0.000 0.000 0.013 0.000 0.000 0.012 0.012 0.013 0.012 0.013 0.000 0.000 0.013 0.012 0.0130.006 0.000 0.000 0.013 0.000 0.000 0.012 0.012 0.013 0.012 0.013 0.014 0.000 0.013 0.012 0.0130.006 0.000 0.000 0.013 0.000 0.000 0.012 0.012 0.013 0.012 0.013 0.014 0.013 0.013 0.012 0.0130.006 0.000 0.000 0.013 0.000 0.000 0.012 0.024 0.013 0.012 0.013 0.014 0.013 0.013 0.012 0.0130.007 0.000 0.000 0.013 0.000 0.000 0.012 0.024 0.025 0.012 0.013 0.014 0.013 0.013 0.012 0.0130.007 0.000 0.000 0.013 0.000 0.000 0.012 0.024 0.025 0.012 0.013 0.014 0.013 0.013 0.024 0.0130.007 0.000 0.000 0.013 0.000 0.000 0.012 0.024 0.025 0.012 0.026 0.014 0.013 0.013 0.024 0.0130.007 0.000 0.000 0.013 0.000 0.000 0.012 0.024 0.025 0.012 0.026 0.014 0.013 0.013 0.024 0.0260.009 0.000 0.000 0.013 0.000 0.000 0.012 0.024 0.025 0.012 0.026 0.014 0.013 0.025 0.024 0.0260.012 0.000 0.000 0.013 0.000 0.000 0.012 0.024 0.025 0.025 0.026 0.014 0.013 0.025 0.024 0.0260.013 0.000 0.000 0.013 0.000 0.000 0.012 0.024 0.025 0.025 0.026 0.028 0.013 0.025 0.024 0.0260.017 0.000 0.000 0.013 0.000 0.000 0.012 0.024 0.025 0.025 0.026 0.028 0.026 0.025 0.024 0.0260.017 0.000 0.000 0.013 0.012 0.000 0.012 0.024 0.025 0.025 0.026 0.028 0.026 0.025 0.024 0.0260.022 0.000 0.000 0.013 0.012 0.000 0.012 0.024 0.025 0.025 0.026 0.028 0.026 0.025 0.024 0.0390.029 0.000 0.000 0.013 0.012 0.000 0.012 0.036 0.025 0.025 0.026 0.028 0.026 0.025 0.024 0.0390.029 0.000 0.000 0.013 0.012 0.000 0.012 0.036 0.025 0.025 0.038 0.028 0.026 0.025 0.024 0.0390.031 0.013 0.000 0.013 0.012 0.000 0.012 0.036 0.025 0.025 0.038 0.028 0.026 0.025 0.024 0.0390.037 0.013 0.000 0.013 0.012 0.013 0.012 0.036 0.025 0.025 0.038 0.028 0.026 0.025 0.024 0.0390.038 0.013 0.000 0.013 0.012 0.013 0.012 0.036 0.025 0.025 0.038 0.028 0.026 0.025 0.036 0.0390.041 0.013 0.013 0.013 0.012 0.013 0.012 0.036 0.025 0.025 0.038 0.028 0.026 0.025 0.036 0.0390.042 0.013 0.013 0.013 0.012 0.013 0.012 0.036 0.025 0.025 0.038 0.028 0.026 0.038 0.036 0.0390.051 0.013 0.013 0.013 0.012 0.013 0.012 0.036 0.038 0.025 0.038 0.028 0.026 0.038 0.036 0.0390.062 0.013 0.013 0.013 0.012 0.013 0.012 0.036 0.038 0.025 0.038 0.042 0.026 0.038 0.036 0.0390.063 0.013 0.013 0.013 0.012 0.013 0.024 0.036 0.038 0.025 0.038 0.042 0.026 0.038 0.036 0.0390.063 0.013 0.013 0.013 0.012 0.013 0.024 0.036 0.038 0.037 0.038 0.042 0.026 0.038 0.036 0.0390.079 0.013 0.013 0.013 0.012 0.013 0.024 0.036 0.038 0.037 0.038 0.042 0.039 0.038 0.036 0.0390.090 0.013 0.013 0.013 0.012 0.013 0.024 0.048 0.038 0.037 0.038 0.042 0.039 0.038 0.036 0.0390.101 0.013 0.013 0.026 0.012 0.013 0.024 0.048 0.038 0.037 0.038 0.042 0.039 0.038 0.036 0.0390.112 0.013 0.013 0.026 0.012 0.013 0.024 0.048 0.038 0.037 0.038 0.042 0.039 0.038 0.036 0.0510.124 0.013 0.013 0.026 0.012 0.013 0.024 0.048 0.038 0.037 0.051 0.042 0.039 0.038 0.036 0.0510.129 0.013 0.013 0.026 0.024 0.013 0.024 0.048 0.038 0.037 0.051 0.042 0.039 0.038 0.036 0.0510.141 0.013 0.013 0.026 0.024 0.013 0.024 0.048 0.038 0.037 0.051 0.042 0.039 0.038 0.049 0.0510.167 0.013 0.013 0.026 0.024 0.013 0.024 0.048 0.038 0.037 0.051 0.042 0.039 0.051 0.049 0.0510.184 0.013 0.013 0.026 0.024 0.013 0.024 0.048 0.038 0.049 0.051 0.042 0.039 0.051 0.049 0.0510.189 0.013 0.013 0.026 0.024 0.013 0.024 0.048 0.038 0.049 0.051 0.056 0.039 0.051 0.049 0.0510.189 0.013 0.013 0.026 0.024 0.013 0.024 0.048 0.051 0.049 0.051 0.056 0.039 0.051 0.049 0.0510.205 0.013 0.013 0.026 0.024 0.013 0.024 0.048 0.051 0.049 0.051 0.056 0.052 0.051 0.049 0.0510.265 0.013 0.013 0.026 0.024 0.013 0.024 0.061 0.051 0.049 0.051 0.056 0.052 0.051 0.049 0.0510.267 0.013 0.013 0.026 0.024 0.013 0.024 0.061 0.051 0.049 0.051 0.056 0.052 0.051 0.049 0.0640.309 0.013 0.013 0.026 0.024 0.013 0.024 0.061 0.051 0.049 0.064 0.056 0.052 0.051 0.049 0.0640.309 0.013 0.013 0.026 0.024 0.013 0.024 0.061 0.051 0.049 0.064 0.056 0.052 0.064 0.049 0.0640.339 0.013 0.013 0.026 0.024 0.013 0.024 0.061 0.051 0.049 0.064 0.056 0.052 0.064 0.061 0.0640.498 0.013 0.013 0.026 0.024 0.013 0.024 0.061 0.064 0.049 0.064 0.056 0.052 0.064 0.061 0.0640.791 0.026 0.013 0.026 0.024 0.013 0.024 0.061 0.064 0.049 0.064 0.056 0.052 0.064 0.061 0.0641.182 0.026 0.013 0.026 0.024 0.013 0.024 0.061 0.064 0.062 0.064 0.056 0.052 0.064 0.061 0.0641.213 0.026 0.013 0.026 0.024 0.025 0.024 0.061 0.064 0.062 0.064 0.056 0.052 0.064 0.061 0.0641.327 0.026 0.025 0.026 0.024 0.025 0.024 0.061 0.064 0.062 0.064 0.056 0.052 0.064 0.061 0.0641.344 0.026 0.025 0.026 0.024 0.025 0.036 0.061 0.064 0.062 0.064 0.056 0.052 0.064 0.061 0.0641.377 0.026 0.025 0.026 0.024 0.025 0.036 0.061 0.064 0.062 0.064 0.056 0.052 0.064 0.073 0.0641.377 0.026 0.025 0.026 0.024 0.025 0.036 0.061 0.064 0.062 0.064 0.070 0.052 0.064 0.073 0.0641.526 0.026 0.025 0.039 0.024 0.025 0.036 0.061 0.064 0.062 0.064 0.070 0.052 0.064 0.073 0.0641.577 0.026 0.025 0.039 0.024 0.025 0.036 0.061 0.064 0.062 0.064 0.070 0.052 0.064 0.073 0.0771.679 0.026 0.025 0.039 0.024 0.025 0.036 0.061 0.064 0.062 0.064 0.070 0.065 0.064 0.073 0.0771.735 0.026 0.025 0.039 0.036 0.025 0.036 0.061 0.064 0.062 0.064 0.070 0.065 0.064 0.073 0.0771.846 0.026 0.025 0.039 0.036 0.025 0.036 0.061 0.064 0.062 0.064 0.070 0.065 0.076 0.073 0.0771.846 0.026 0.025 0.039 0.036 0.025 0.036 0.061 0.064 0.062 0.077 0.070 0.065 0.076 0.073 0.0771.931 0.026 0.025 0.039 0.036 0.025 0.036 0.073 0.064 0.062 0.077 0.070 0.065 0.076 0.073 0.0771.997 0.026 0.025 0.039 0.036 0.025 0.036 0.073 0.076 0.062 0.077 0.070 0.065 0.076 0.073 0.0772.074 0.039 0.025 0.039 0.036 0.025 0.036 0.073 0.076 0.062 0.077 0.070 0.065 0.076 0.073 0.0772.164 0.039 0.025 0.039 0.036 0.038 0.036 0.073 0.076 0.062 0.077 0.070 0.065 0.076 0.073 0.0772.219 0.039 0.025 0.039 0.036 0.038 0.048 0.073 0.076 0.062 0.077 0.070 0.065 0.076 0.073 0.0772.230 0.039 0.038 0.039 0.036 0.038 0.048 0.073 0.076 0.062 0.077 0.070 0.065 0.076 0.073 0.0772.291 0.039 0.038 0.039 0.036 0.038 0.048 0.073 0.076 0.074 0.077 0.070 0.065 0.076 0.073 0.0772.335 0.039 0.038 0.039 0.036 0.038 0.048 0.073 0.076 0.074 0.077 0.070 0.065 0.076 0.085 0.0772.372 0.039 0.038 0.039 0.036 0.038 0.048 0.073 0.076 0.074 0.077 0.070 0.065 0.076 0.085 0.0902.404 0.039 0.038 0.051 0.036 0.038 0.048 0.073 0.076 0.074 0.077 0.070 0.065 0.076 0.085 0.0902.428 0.039 0.038 0.051 0.036 0.038 0.048 0.073 0.076 0.074 0.077 0.084 0.065 0.076 0.085 0.0902.436 0.039 0.038 0.051 0.048 0.038 0.048 0.073 0.076 0.074 0.077 0.084 0.065 0.076 0.085 0.0902.449 0.039 0.038 0.051 0.048 0.038 0.048 0.073 0.076 0.074 0.077 0.084 0.078 0.076 0.085 0.0902.676 0.039 0.038 0.051 0.048 0.038 0.048 0.073 0.076 0.074 0.077 0.084 0.078 0.089 0.085 0.0902.737 0.039 0.038 0.051 0.048 0.038 0.048 0.073 0.076 0.074 0.089 0.084 0.078 0.089 0.085 0.0902.737 0.039 0.038 0.051 0.048 0.038 0.048 0.085 0.076 0.074 0.089 0.084 0.078 0.089 0.085 0.0902.774 0.052 0.038 0.051 0.048 0.038 0.048 0.085 0.076 0.074 0.089 0.084 0.078 0.089 0.085 0.0902.792 0.052 0.038 0.051 0.048 0.038 0.060 0.085 0.076 0.074 0.089 0.084 0.078 0.089 0.085 0.0902.839 0.052 0.038 0.051 0.048 0.038 0.060 0.085 0.089 0.074 0.089 0.084 0.078 0.089 0.085 0.0902.839 0.052 0.038 0.051 0.048 0.050 0.060 0.085 0.089 0.074 0.089 0.084 0.078 0.089 0.085 0.0902.860 0.052 0.051 0.051 0.048 0.050 0.060 0.085 0.089 0.074 0.089 0.084 0.078 0.089 0.085 0.0903.092 0.052 0.051 0.064 0.048 0.050 0.060 0.085 0.089 0.074 0.089 0.084 0.078 0.089 0.085 0.0903.123 0.052 0.051 0.064 0.061 0.050 0.060 0.085 0.089 0.074 0.089 0.084 0.078 0.089 0.085 0.0903.323 0.052 0.051 0.064 0.061 0.050 0.060 0.085 0.089 0.086 0.089 0.084 0.078 0.089 0.085 0.0903.329 0.052 0.051 0.064 0.061 0.050 0.060 0.085 0.089 0.086 0.089 0.084 0.078 0.089 0.097 0.0903.342 0.052 0.051 0.064 0.061 0.050 0.060 0.085 0.089 0.086 0.089 0.084 0.078 0.089 0.097 0.1033.386 0.052 0.051 0.064 0.061 0.050 0.060 0.085 0.089 0.086 0.089 0.084 0.091 0.089 0.097 0.1033.405 0.052 0.051 0.064 0.061 0.050 0.072 0.085 0.089 0.086 0.089 0.084 0.091 0.089 0.097 0.1033.417 0.066 0.051 0.064 0.061 0.050 0.072 0.085 0.089 0.086 0.089 0.084 0.091 0.089 0.097 0.1033.437 0.066 0.051 0.064 0.061 0.050 0.072 0.085 0.089 0.086 0.089 0.098 0.091 0.089 0.097 0.1033.441 0.066 0.051 0.064 0.061 0.063 0.072 0.085 0.089 0.086 0.089 0.098 0.091 0.089 0.097 0.1033.441 0.066 0.064 0.064 0.061 0.063 0.072 0.085 0.089 0.086 0.089 0.098 0.091 0.089 0.097 0.1033.565 0.066 0.064 0.064 0.061 0.063 0.072 0.097 0.089 0.086 0.089 0.098 0.091 0.089 0.097 0.1033.643 0.066 0.064 0.064 0.061 0.063 0.072 0.097 0.102 0.086 0.089 0.098 0.091 0.089 0.097 0.1033.646 0.066 0.064 0.064 0.073 0.063 0.072 0.097 0.102 0.086 0.089 0.098 0.091 0.089 0.097 0.1033.690 0.066 0.064 0.077 0.073 0.063 0.072 0.097 0.102 0.086 0.089 0.098 0.091 0.089 0.097 0.1033.848 0.066 0.064 0.077 0.073 0.063 0.084 0.097 0.102 0.086 0.089 0.098 0.091 0.089 0.097 0.1033.865 0.066 0.064 0.077 0.073 0.076 0.084 0.097 0.102 0.086 0.089 0.098 0.091 0.089 0.097 0.1033.895 0.066 0.076 0.077 0.073 0.076 0.084 0.097 0.102 0.086 0.089 0.098 0.091 0.089 0.097 0.1033.947 0.079 0.076 0.077 0.073 0.076 0.084 0.097 0.102 0.086 0.089 0.098 0.091 0.089 0.097 0.1033.993 0.079 0.076 0.077 0.073 0.076 0.084 0.097 0.102 0.086 0.089 0.098 0.091 0.089 0.097 0.1164.001 0.079 0.076 0.077 0.073 0.076 0.084 0.097 0.102 0.086 0.089 0.098 0.091 0.089 0.109 0.1164.072 0.079 0.076 0.077 0.085 0.076 0.084 0.097 0.102 0.086 0.089 0.098 0.091 0.089 0.109 0.1164.083 0.079 0.076 0.077 0.085 0.076 0.084 0.097 0.102 0.099 0.089 0.098 0.091 0.089 0.109 0.1164.119 0.079 0.076 0.077 0.085 0.076 0.084 0.097 0.102 0.099 0.089 0.098 0.105 0.089 0.109 0.1164.129 0.079 0.076 0.090 0.085 0.076 0.084 0.097 0.102 0.099 0.089 0.098 0.105 0.089 0.109 0.1164.224 0.079 0.076 0.090 0.085 0.076 0.096 0.097 0.102 0.099 0.089 0.098 0.105 0.089 0.109 0.1164.234 0.079 0.076 0.090 0.085 0.076 0.096 0.097 0.102 0.099 0.089 0.112 0.105 0.089 0.109 0.1164.245 0.079 0.076 0.090 0.085 0.076 0.096 0.109 0.102 0.099 0.089 0.112 0.105 0.089 0.109 0.1164.252 0.079 0.089 0.090 0.085 0.076 0.096 0.109 0.102 0.099 0.089 0.112 0.105 0.089 0.109 0.1164.252 0.079 0.089 0.090 0.085 0.088 0.096 0.109 0.102 0.099 0.089 0.112 0.105 0.089 0.109 0.1164.274 0.079 0.089 0.090 0.085 0.088 0.096 0.109 0.115 0.099 0.089 0.112 0.105 0.089 0.109 0.1164.291 0.079 0.089 0.090 0.085 0.088 0.096 0.109 0.115 0.099 0.102 0.112 0.105 0.089 0.109 0.1164.291 0.079 0.089 0.090 0.085 0.088 0.096 0.109 0.115 0.099 0.102 0.112 0.105 0.102 0.109 0.1164.350 0.092 0.089 0.090 0.085 0.088 0.096 0.109 0.115 0.099 0.102 0.112 0.105 0.102 0.109 0.1164.399 0.092 0.089 0.090 0.097 0.088 0.096 0.109 0.115 0.099 0.102 0.112 0.105 0.102 0.109 0.1164.467 0.092 0.089 0.103 0.097 0.088 0.096 0.109 0.115 0.099 0.102 0.112 0.105 0.102 0.109 0.1164.533 0.092 0.089 0.103 0.097 0.088 0.108 0.109 0.115 0.099 0.102 0.112 0.105 0.102 0.109 0.1164.558 0.092 0.089 0.103 0.097 0.101 0.108 0.109 0.115 0.099 0.102 0.112 0.105 0.102 0.109 0.1164.612 0.092 0.102 0.103 0.097 0.101 0.108 0.109 0.115 0.099 0.102 0.112 0.105 0.102 0.109 0.1164.697 0.105 0.102 0.103 0.097 0.101 0.108 0.109 0.115 0.099 0.102 0.112 0.105 0.102 0.109 0.1164.712 0.105 0.102 0.103 0.097 0.101 0.108 0.109 0.115 0.099 0.102 0.112 0.105 0.102 0.109 0.1294.718 0.105 0.102 0.103 0.109 0.101 0.108 0.109 0.115 0.099 0.102 0.112 0.105 0.102 0.109 0.1294.738 0.105 0.102 0.103 0.109 0.101 0.108 0.109 0.115 0.099 0.102 0.112 0.105 0.102 0.121 0.1294.757 0.105 0.102 0.103 0.109 0.101 0.108 0.109 0.115 0.111 0.102 0.112 0.105 0.102 0.121 0.1294.772 0.105 0.102 0.103 0.109 0.101 0.108 0.109 0.115 0.111 0.102 0.112 0.118 0.102 0.121 0.1294.781 0.105 0.102 0.116 0.109 0.101 0.108 0.109 0.115 0.111 0.102 0.112 0.118 0.102 0.121 0.1294.797 0.105 0.102 0.116 0.109 0.101 0.120 0.109 0.115 0.111 0.102 0.112 0.118 0.102 0.121 0.1294.828 0.105 0.102 0.116 0.109 0.113 0.120 0.109 0.115 0.111 0.102 0.112 0.118 0.102 0.121 0.1294.846 0.105 0.115 0.116 0.109 0.113 0.120 0.109 0.115 0.111 0.102 0.112 0.118 0.102 0.121 0.1294.930 0.105 0.115 0.116 0.109 0.113 0.120 0.109 0.115 0.111 0.102 0.112 0.118 0.115 0.121 0.1294.953 0.105 0.115 0.116 0.109 0.113 0.120 0.109 0.115 0.111 0.102 0.126 0.118 0.115 0.121 0.1294.967 0.105 0.115 0.116 0.121 0.113 0.120 0.109 0.115 0.111 0.102 0.126 0.118 0.115 0.121 0.1294.967 0.105 0.115 0.116 0.121 0.113 0.120 0.121 0.115 0.111 0.102 0.126 0.118 0.115 0.121 0.1294.981 0.105 0.115 0.116 0.121 0.113 0.120 0.121 0.127 0.111 0.102 0.126 0.118 0.115 0.121 0.1295.029 0.118 0.115 0.116 0.121 0.113 0.120 0.121 0.127 0.111 0.102 0.126 0.118 0.115 0.121 0.1295.031 0.118 0.115 0.116 0.121 0.113 0.120 0.121 0.127 0.111 0.115 0.126 0.118 0.115 0.121 0.1295.057 0.118 0.115 0.116 0.121 0.113 0.132 0.121 0.127 0.111 0.115 0.126 0.118 0.115 0.121 0.1295.076 0.118 0.115 0.128 0.121 0.113 0.132 0.121 0.127 0.111 0.115 0.126 0.118 0.115 0.121 0.1295.091 0.118 0.115 0.128 0.121 0.126 0.132 0.121 0.127 0.111 0.115 0.126 0.118 0.115 0.121 0.1295.138 0.118 0.127 0.128 0.121 0.126 0.132 0.121 0.127 0.111 0.115 0.126 0.118 0.115 0.121 0.1295.223 0.118 0.127 0.128 0.133 0.126 0.132 0.121 0.127 0.111 0.115 0.126 0.118 0.115 0.121 0.1295.271 0.131 0.127 0.128 0.133 0.126 0.132 0.121 0.127 0.111 0.115 0.126 0.118 0.115 0.121 0.1295.276 0.131 0.127 0.128 0.133 0.126 0.144 0.121 0.127 0.111 0.115 0.126 0.118 0.115 0.121 0.1295.313 0.131 0.127 0.128 0.133 0.138 0.144 0.121 0.127 0.111 0.115 0.126 0.118 0.115 0.121 0.1295.324 0.131 0.127 0.141 0.133 0.138 0.144 0.121 0.127 0.111 0.115 0.126 0.118 0.115 0.121 0.1295.366 0.131 0.140 0.141 0.133 0.138 0.144 0.121 0.127 0.111 0.115 0.126 0.118 0.115 0.121 0.1295.398 0.131 0.140 0.141 0.133 0.138 0.144 0.121 0.127 0.111 0.115 0.126 0.118 0.115 0.121 0.1415.438 0.131 0.140 0.141 0.145 0.138 0.144 0.121 0.127 0.111 0.115 0.126 0.118 0.115 0.121 0.1415.449 0.131 0.140 0.141 0.145 0.138 0.144 0.121 0.127 0.111 0.115 0.126 0.118 0.115 0.133 0.1415.463 0.131 0.140 0.141 0.145 0.138 0.144 0.121 0.127 0.111 0.115 0.126 0.131 0.115 0.133 0.1415.463 0.131 0.140 0.141 0.145 0.138 0.156 0.121 0.127 0.111 0.115 0.126 0.131 0.115 0.133 0.1415.501 0.131 0.140 0.141 0.145 0.138 0.156 0.121 0.127 0.123 0.115 0.126 0.131 0.115 0.133 0.1415.512 0.131 0.140 0.141 0.145 0.151 0.156 0.121 0.127 0.123 0.115 0.126 0.131 0.115 0.133 0.1415.520 0.144 0.140 0.141 0.145 0.151 0.156 0.121 0.127 0.123 0.115 0.126 0.131 0.115 0.133 0.1415.553 0.144 0.140 0.154 0.145 0.151 0.156 0.121 0.127 0.123 0.115 0.126 0.131 0.115 0.133 0.1415.567 0.144 0.153 0.154 0.145 0.151 0.156 0.121 0.127 0.123 0.115 0.126 0.131 0.115 0.133 0.1415.643 0.144 0.153 0.154 0.157 0.151 0.156 0.121 0.127 0.123 0.115 0.126 0.131 0.115 0.133 0.1415.643 0.144 0.153 0.154 0.157 0.151 0.156 0.133 0.127 0.123 0.115 0.126 0.131 0.115 0.133 0.1415.652 0.144 0.153 0.154 0.157 0.151 0.156 0.133 0.140 0.123 0.115 0.126 0.131 0.115 0.133 0.1415.668 0.144 0.153 0.154 0.157 0.151 0.168 0.133 0.140 0.123 0.115 0.126 0.131 0.115 0.133 0.1415.685 0.144 0.153 0.154 0.157 0.151 0.168 0.133 0.140 0.123 0.115 0.126 0.131 0.127 0.133 0.1415.685 0.144 0.153 0.154 0.157 0.151 0.168 0.133 0.140 0.123 0.128 0.126 0.131 0.127 0.133 0.1415.699 0.144 0.153 0.154 0.157 0.164 0.168 0.133 0.140 0.123 0.128 0.126 0.131 0.127 0.133 0.1415.734 0.144 0.153 0.154 0.157 0.164 0.168 0.133 0.140 0.123 0.128 0.140 0.131 0.127 0.133 0.1415.748 0.144 0.165 0.154 0.157 0.164 0.168 0.133 0.140 0.123 0.128 0.140 0.131 0.127 0.133 0.1415.766 0.157 0.165 0.154 0.157 0.164 0.168 0.133 0.140 0.123 0.128 0.140 0.131 0.127 0.133 0.1415.770 0.157 0.165 0.167 0.157 0.164 0.168 0.133 0.140 0.123 0.128 0.140 0.131 0.127 0.133 0.1415.820 0.157 0.165 0.167 0.170 0.164 0.168 0.133 0.140 0.123 0.128 0.140 0.131 0.127 0.133 0.1415.835 0.157 0.165 0.167 0.170 0.164 0.180 0.133 0.140 0.123 0.128 0.140 0.131 0.127 0.133 0.1415.893 0.157 0.165 0.167 0.170 0.176 0.180 0.133 0.140 0.123 0.128 0.140 0.131 0.127 0.133 0.1415.950 0.157 0.178 0.167 0.170 0.176 0.180 0.133 0.140 0.123 0.128 0.140 0.131 0.127 0.133 0.1415.955 0.171 0.178 0.167 0.170 0.176 0.180 0.133 0.140 0.123 0.128 0.140 0.131 0.127 0.133 0.1415.960 0.171 0.178 0.180 0.170 0.176 0.180 0.133 0.140 0.123 0.128 0.140 0.131 0.127 0.133 0.1416.002 0.171 0.178 0.180 0.170 0.176 0.192 0.133 0.140 0.123 0.128 0.140 0.131 0.127 0.133 0.1416.016 0.171 0.178 0.180 0.182 0.176 0.192 0.133 0.140 0.123 0.128 0.140 0.131 0.127 0.133 0.1416.064 0.171 0.178 0.180 0.182 0.176 0.192 0.133 0.140 0.123 0.128 0.140 0.131 0.127 0.133 0.1546.072 0.171 0.178 0.180 0.182 0.189 0.192 0.133 0.140 0.123 0.128 0.140 0.131 0.127 0.133 0.1546.107 0.171 0.178 0.180 0.182 0.189 0.192 0.133 0.140 0.123 0.128 0.140 0.131 0.127 0.146 0.1546.111 0.171 0.191 0.180 0.182 0.189 0.192 0.133 0.140 0.123 0.128 0.140 0.131 0.127 0.146 0.1546.177 0.171 0.191 0.193 0.182 0.189 0.192 0.133 0.140 0.123 0.128 0.140 0.131 0.127 0.146 0.1546.177 0.171 0.191 0.193 0.182 0.189 0.203 0.133 0.140 0.123 0.128 0.140 0.131 0.127 0.146 0.1546.186 0.184 0.191 0.193 0.182 0.189 0.203 0.133 0.140 0.123 0.128 0.140 0.131 0.127 0.146 0.1546.186 0.184 0.191 0.193 0.194 0.189 0.203 0.133 0.140 0.123 0.128 0.140 0.131 0.127 0.146 0.1546.187 0.184 0.191 0.193 0.194 0.189 0.203 0.133 0.140 0.123 0.128 0.140 0.144 0.127 0.146 0.1546.268 0.184 0.191 0.193 0.194 0.201 0.203 0.133 0.140 0.123 0.128 0.140 0.144 0.127 0.146 0.1546.276 0.184 0.191 0.193 0.194 0.201 0.203 0.145 0.140 0.123 0.128 0.140 0.144 0.127 0.146 0.1546.295 0.184 0.191 0.193 0.194 0.201 0.203 0.145 0.140 0.136 0.128 0.140 0.144 0.127 0.146 0.1546.338 0.184 0.191 0.193 0.194 0.201 0.215 0.145 0.140 0.136 0.128 0.140 0.144 0.127 0.146 0.1546.369 0.184 0.191 0.193 0.206 0.201 0.215 0.145 0.140 0.136 0.128 0.140 0.144 0.127 0.146 0.1546.379 0.197 0.191 0.193 0.206 0.201 0.215 0.145 0.140 0.136 0.128 0.140 0.144 0.127 0.146 0.1546.379 0.197 0.191 0.205 0.206 0.201 0.215 0.145 0.140 0.136 0.128 0.140 0.144 0.127 0.146 0.1546.423 0.197 0.191 0.205 0.206 0.201 0.215 0.145 0.140 0.136 0.140 0.140 0.144 0.127 0.146 0.1546.455 0.197 0.191 0.205 0.206 0.214 0.215 0.145 0.140 0.136 0.140 0.140 0.144 0.127 0.146 0.1546.460 0.197 0.191 0.205 0.206 0.214 0.215 0.145 0.140 0.136 0.140 0.140 0.144 0.140 0.146 0.1546.504 0.197 0.191 0.205 0.206 0.214 0.227 0.145 0.140 0.136 0.140 0.140 0.144 0.140 0.146 0.1546.507 0.197 0.204 0.205 0.206 0.214 0.227 0.145 0.140 0.136 0.140 0.140 0.144 0.140 0.146 0.1546.559 0.197 0.204 0.205 0.218 0.214 0.227 0.145 0.140 0.136 0.140 0.140 0.144 0.140 0.146 0.1546.595 0.197 0.204 0.218 0.218 0.214 0.227 0.145 0.140 0.136 0.140 0.140 0.144 0.140 0.146 0.1546.602 0.210 0.204 0.218 0.218 0.214 0.227 0.145 0.140 0.136 0.140 0.140 0.144 0.140 0.146 0.1546.648 0.210 0.204 0.218 0.218 0.214 0.227 0.145 0.140 0.136 0.140 0.154 0.144 0.140 0.146 0.1546.678 0.210 0.216 0.218 0.218 0.214 0.227 0.145 0.140 0.136 0.140 0.154 0.144 0.140 0.146 0.1546.679 0.210 0.216 0.218 0.218 0.214 0.239 0.145 0.140 0.136 0.140 0.154 0.144 0.140 0.146 0.1546.684 0.210 0.216 0.218 0.218 0.227 0.239 0.145 0.140 0.136 0.140 0.154 0.144 0.140 0.146 0.1546.749 0.210 0.216 0.218 0.230 0.227 0.239 0.145 0.140 0.136 0.140 0.154 0.144 0.140 0.146 0.1546.787 0.210 0.216 0.231 0.230 0.227 0.239 0.145 0.140 0.136 0.140 0.154 0.144 0.140 0.146 0.1546.797 0.223 0.216 0.231 0.230 0.227 0.239 0.145 0.140 0.136 0.140 0.154 0.144 0.140 0.146 0.1546.851 0.223 0.229 0.231 0.230 0.227 0.239 0.145 0.140 0.136 0.140 0.154 0.144 0.140 0.146 0.1546.857 0.223 0.229 0.231 0.230 0.227 0.251 0.145 0.140 0.136 0.140 0.154 0.144 0.140 0.146 0.1546.893 0.223 0.229 0.231 0.230 0.227 0.251 0.145 0.140 0.136 0.140 0.154 0.144 0.140 0.146 0.1676.903 0.223 0.229 0.231 0.230 0.239 0.251 0.145 0.140 0.136 0.140 0.154 0.144 0.140 0.146 0.1676.949 0.223 0.229 0.231 0.242 0.239 0.251 0.145 0.140 0.136 0.140 0.154 0.144 0.140 0.146 0.1677.011 0.223 0.229 0.244 0.242 0.239 0.251 0.145 0.140 0.136 0.140 0.154 0.144 0.140 0.146 0.1677.016 0.236 0.229 0.244 0.242 0.239 0.251 0.145 0.140 0.136 0.140 0.154 0.144 0.140 0.146 0.1677.043 0.236 0.229 0.244 0.242 0.239 0.263 0.145 0.140 0.136 0.140 0.154 0.144 0.140 0.146 0.1677.048 0.236 0.242 0.244 0.242 0.239 0.263 0.145 0.140 0.136 0.140 0.154 0.144 0.140 0.146 0.1677.142 0.236 0.242 0.244 0.242 0.252 0.263 0.145 0.140 0.136 0.140 0.154 0.144 0.140 0.146 0.1677.159 0.236 0.242 0.244 0.242 0.252 0.263 0.145 0.140 0.136 0.140 0.154 0.144 0.140 0.158 0.1677.178 0.236 0.242 0.244 0.254 0.252 0.263 0.145 0.140 0.136 0.140 0.154 0.144 0.140 0.158 0.1677.229 0.236 0.242 0.257 0.254 0.252 0.263 0.145 0.140 0.136 0.140 0.154 0.144 0.140 0.158 0.1677.246 0.236 0.242 0.257 0.254 0.252 0.275 0.145 0.140 0.136 0.140 0.154 0.144 0.140 0.158 0.1677.246 0.236 0.242 0.257 0.254 0.252 0.275 0.145 0.140 0.136 0.140 0.154 0.157 0.140 0.158 0.1677.254 0.249 0.242 0.257 0.254 0.252 0.275 0.145 0.140 0.136 0.140 0.154 0.157 0.140 0.158 0.1677.275 0.249 0.255 0.257 0.254 0.252 0.275 0.145 0.140 0.136 0.140 0.154 0.157 0.140 0.158 0.1677.337 0.249 0.255 0.257 0.254 0.252 0.275 0.157 0.140 0.136 0.140 0.154 0.157 0.140 0.158 0.1677.389 0.249 0.255 0.257 0.254 0.264 0.275 0.157 0.140 0.136 0.140 0.154 0.157 0.140 0.158 0.1677.389 0.249 0.255 0.257 0.254 0.264 0.275 0.157 0.153 0.136 0.140 0.154 0.157 0.140 0.158 0.1677.394 0.249 0.255 0.257 0.266 0.264 0.275 0.157 0.153 0.136 0.140 0.154 0.157 0.140 0.158 0.1677.416 0.249 0.255 0.257 0.266 0.264 0.275 0.157 0.153 0.148 0.140 0.154 0.157 0.140 0.158 0.1677.453 0.249 0.255 0.257 0.266 0.264 0.287 0.157 0.153 0.148 0.140 0.154 0.157 0.140 0.158 0.1677.453 0.249 0.255 0.270 0.266 0.264 0.287 0.157 0.153 0.148 0.140 0.154 0.157 0.140 0.158 0.1677.457 0.262 0.255 0.270 0.266 0.264 0.287 0.157 0.153 0.148 0.140 0.154 0.157 0.140 0.158 0.1677.478 0.262 0.255 0.270 0.266 0.264 0.287 0.157 0.153 0.148 0.153 0.154 0.157 0.140 0.158 0.1677.478 0.262 0.255 0.270 0.266 0.264 0.287 0.157 0.153 0.148 0.153 0.154 0.157 0.153 0.158 0.1677.484 0.262 0.267 0.270 0.266 0.264 0.287 0.157 0.153 0.148 0.153 0.154 0.157 0.153 0.158 0.1677.660 0.262 0.267 0.270 0.279 0.264 0.287 0.157 0.153 0.148 0.153 0.154 0.157 0.153 0.158 0.1677.715 0.262 0.280 0.270 0.279 0.264 0.287 0.157 0.153 0.148 0.153 0.154 0.157 0.153 0.158 0.1677.724 0.262 0.280 0.270 0.279 0.264 0.299 0.157 0.153 0.148 0.153 0.154 0.157 0.153 0.158 0.1677.730 0.276 0.280 0.270 0.279 0.264 0.299 0.157 0.153 0.148 0.153 0.154 0.157 0.153 0.158 0.1677.734 0.276 0.280 0.270 0.279 0.277 0.299 0.157 0.153 0.148 0.153 0.154 0.157 0.153 0.158 0.1677.745 0.276 0.280 0.282 0.279 0.277 0.299 0.157 0.153 0.148 0.153 0.154 0.157 0.153 0.158 0.1677.761 0.276 0.280 0.282 0.279 0.277 0.299 0.157 0.153 0.148 0.153 0.168 0.157 0.153 0.158 0.1677.920 0.276 0.280 0.282 0.279 0.277 0.299 0.157 0.153 0.148 0.153 0.168 0.157 0.153 0.158 0.1807.954 0.276 0.280 0.282 0.291 0.277 0.299 0.157 0.153 0.148 0.153 0.168 0.157 0.153 0.158 0.1808.050 0.289 0.280 0.282 0.291 0.277 0.299 0.157 0.153 0.148 0.153 0.168 0.157 0.153 0.158 0.1808.060 0.289 0.280 0.295 0.291 0.277 0.299 0.157 0.153 0.148 0.153 0.168 0.157 0.153 0.158 0.1808.095 0.289 0.280 0.295 0.291 0.277 0.299 0.157 0.153 0.148 0.153 0.168 0.157 0.153 0.170 0.1808.100 0.289 0.280 0.295 0.291 0.277 0.311 0.157 0.153 0.148 0.153 0.168 0.157 0.153 0.170 0.1808.114 0.289 0.280 0.295 0.291 0.290 0.311 0.157 0.153 0.148 0.153 0.168 0.157 0.153 0.170 0.1808.114 0.289 0.293 0.295 0.291 0.290 0.311 0.157 0.153 0.148 0.153 0.168 0.157 0.153 0.170 0.1808.272 0.289 0.293 0.295 0.291 0.290 0.311 0.157 0.153 0.148 0.153 0.168 0.170 0.153 0.170 0.1808.389 0.289 0.293 0.295 0.291 0.290 0.311 0.170 0.153 0.148 0.153 0.168 0.170 0.153 0.170 0.1808.389 0.289 0.293 0.295 0.303 0.290 0.311 0.170 0.153 0.148 0.153 0.168 0.170 0.153 0.170 0.1808.475 0.289 0.293 0.308 0.303 0.290 0.311 0.170 0.153 0.148 0.153 0.168 0.170 0.153 0.170 0.1808.488 0.302 0.293 0.308 0.303 0.290 0.311 0.170 0.153 0.148 0.153 0.168 0.170 0.153 0.170 0.1808.685 0.302 0.293 0.308 0.303 0.290 0.311 0.170 0.153 0.148 0.153 0.168 0.170 0.166 0.170 0.1808.694 0.302 0.293 0.308 0.303 0.290 0.311 0.170 0.166 0.148 0.153 0.168 0.170 0.166 0.170 0.1808.710 0.302 0.293 0.308 0.303 0.290 0.311 0.170 0.166 0.160 0.153 0.168 0.170 0.166 0.170 0.1808.727 0.302 0.293 0.308 0.303 0.290 0.311 0.170 0.166 0.160 0.166 0.168 0.170 0.166 0.170 0.18011.682 0.302 0.293 0.308 0.303 0.290 0.311 0.170 0.166 0.160 0.166 0.168 0.170 0.166 0.170 0.19311.770 0.302 0.293 0.308 0.303 0.302 0.311 0.170 0.166 0.160 0.166 0.168 0.170 0.166 0.170 0.19312.349 0.302 0.293 0.321 0.303 0.302 0.311 0.170 0.166 0.160 0.166 0.168 0.170 0.166 0.170 0.19312.472 0.302 0.293 0.321 0.315 0.302 0.311 0.170 0.166 0.160 0.166 0.168 0.170 0.166 0.170 0.19312.510 0.302 0.293 0.321 0.315 0.302 0.323 0.170 0.166 0.160 0.166 0.168 0.170 0.166 0.170 0.19312.570 0.302 0.306 0.321 0.315 0.302 0.323 0.170 0.166 0.160 0.166 0.168 0.170 0.166 0.170 0.19312.724 0.302 0.306 0.321 0.315 0.302 0.323 0.170 0.166 0.160 0.166 0.168 0.183 0.166 0.170 0.19312.773 0.302 0.306 0.321 0.315 0.302 0.323 0.170 0.166 0.160 0.166 0.182 0.183 0.166 0.170 0.19312.988 0.315 0.306 0.321 0.315 0.302 0.323 0.170 0.166 0.160 0.166 0.182 0.183 0.166 0.170 0.19313.265 0.315 0.306 0.321 0.315 0.302 0.323 0.170 0.178 0.160 0.166 0.182 0.183 0.166 0.170 0.19313.334 0.315 0.306 0.321 0.315 0.315 0.323 0.170 0.178 0.160 0.166 0.182 0.183 0.166 0.170 0.19313.351 0.315 0.306 0.321 0.315 0.315 0.323 0.170 0.178 0.173 0.166 0.182 0.183 0.166 0.170 0.19313.474 0.315 0.306 0.321 0.315 0.315 0.323 0.182 0.178 0.173 0.166 0.182 0.183 0.166 0.170 0.19313.509 0.315 0.306 0.321 0.315 0.315 0.323 0.182 0.178 0.173 0.166 0.182 0.183 0.166 0.182 0.19313.575 0.315 0.306 0.321 0.315 0.315 0.323 0.182 0.178 0.173 0.166 0.182 0.183 0.166 0.182 0.20613.771 0.315 0.306 0.321 0.327 0.315 0.323 0.182 0.178 0.173 0.166 0.182 0.183 0.166 0.182 0.20613.994 0.315 0.318 0.321 0.327 0.315 0.323 0.182 0.178 0.173 0.166 0.182 0.183 0.166 0.182 0.20613.996 0.315 0.318 0.321 0.327 0.315 0.323 0.182 0.178 0.173 0.166 0.182 0.183 0.178 0.182 0.20613.998 0.315 0.318 0.334 0.327 0.315 0.323 0.182 0.178 0.173 0.166 0.182 0.183 0.178 0.182 0.20613.999 0.315 0.318 0.334 0.327 0.315 0.323 0.182 0.178 0.173 0.179 0.182 0.183 0.178 0.182 0.20614.000 0.315 0.318 0.334 0.327 0.315 0.335 0.182 0.178 0.173 0.179 0.182 0.183 0.178 0.182 0.20614.395 0.328 0.318 0.334 0.327 0.315 0.335 0.182 0.178 0.173 0.179 0.182 0.183 0.178 0.182 0.20614.754 0.328 0.331 0.334 0.327 0.315 0.335 0.182 0.178 0.173 0.179 0.182 0.183 0.178 0.182 0.20614.759 0.328 0.331 0.334 0.327 0.327 0.335 0.182 0.178 0.173 0.179 0.182 0.183 0.178 0.182 0.20615.166 0.328 0.331 0.334 0.327 0.327 0.335 0.182 0.178 0.173 0.179 0.182 0.183 0.178 0.194 0.20615.192 0.328 0.331 0.334 0.327 0.327 0.347 0.182 0.178 0.173 0.179 0.182 0.183 0.178 0.194 0.20615.196 0.328 0.331 0.347 0.327 0.327 0.347 0.182 0.178 0.173 0.179 0.182 0.183 0.178 0.194 0.20615.381 0.328 0.331 0.347 0.339 0.327 0.347 0.182 0.178 0.173 0.179 0.182 0.183 0.178 0.194 0.206 From mathieu.dubois at limsi.fr Tue Feb 8 22:26:09 2011 From: mathieu.dubois at limsi.fr (Mathieu Dubois) Date: Tue, 08 Feb 2011 22:26:09 +0100 Subject: [scilab-Users] Help with 64bit transition In-Reply-To: References: Message-ID: <4D51B4F1.6040500@limsi.fr> Hello, I have never interfaced scilab with C. A common problem on 64 bits architecture is that pointers are 64 bits wide and therefore may not fit in a int *. I don't know if this is related to your problem... By the way I didn't succeeded to use your example (when I try to execute loader.sce I have the message: "libtower.so: undefined symbol: intssoma_inteiros"). HTH, Mathieu Le 07/02/2011 18:08, Eduardo Torrecillas a ?crit : > Dear all, > > Recently I moved from Ubuntu32+scilab 4.1.2 (32bit) to scilab 5.3.0 > (64bit), as I am now using Ubuntu 64 version. > I had a bunch of external C functions linked to scilab using intersci, > and now I have some problems using them. > For example, when dealing with arrays, indexes are a little bit > confusing. It looks like when trying to access index "n" in array, the > program actually operates on index "2*n". > Here I posted a simple example, where I try to manipulate data on an > array. Please, try to check array elemID after calling the > "soma_inteiros" function. C code and desc file are also attached. Note > that the sum operation works fine (variable c receives 5, which is > correct for 4+1). > Has anyone seen any similar problem or know how to solve this? > > Regards, > > -- > Eduardo Torrecillas > AER-09 From daniel.rojas at cl.abb.com Tue Feb 8 19:18:50 2011 From: daniel.rojas at cl.abb.com (daniel.rojas at cl.abb.com) Date: Tue, 8 Feb 2011 15:18:50 -0300 Subject: consult Message-ID: Dears I'd like to know what are the provisions or requirements for the use of scilab with commercial purposes. best regards DRojas Service PA -------------- next part -------------- An HTML attachment was scrubbed... URL: From antoine.monmayrant at laas.fr Wed Feb 9 09:24:12 2011 From: antoine.monmayrant at laas.fr (Antoine Monmayrant) Date: Wed, 09 Feb 2011 09:24:12 +0100 Subject: [scilab-Users] weird problem with fscanfMat In-Reply-To: <20110208220456.10173l6pldi4dzb4@webmail.utc.fr> References: <20110208220456.10173l6pldi4dzb4@webmail.utc.fr> Message-ID: <4D524F2C.1020709@laas.fr> Le 08/02/2011 22:04, Stephane Mottelet a ?crit : > Hi all, > > I cannot manage to read the attached file with > fscanfMat, although it has a compatible structure, > i.e. one line one text then many lines of the same > number of columns. > > I have even tried to read the first line with mgetl, > but then eof is reached although I only get the first line > (composed of text). > > I know each line is only finished with a cr and not > an eol. Is it a problem ? > Thanks for help of anybody willing to solve this > weird issue !!! > > S. When I open the file you attached to your email, I don't see any separator to mark the end of line (no cr, no \n, no nothing). It might have been mangled by my mail program but I doubt it. I managed to open it in scilab with read_csv and it also looks like there is no separator at the end of line: the last item of a line is touching the first item on next line: -->a_string=read_csv("20101122_VOLUME.txt","\t"); -->a_string(16) ans = ch15 (L)0.000 -->a_string(31) ans = 0.0000.001 -->a_string(46) ans = 0.0000.002 Hope it helps, Antoine From stephane.mottelet at utc.fr Wed Feb 9 09:26:01 2011 From: stephane.mottelet at utc.fr (=?ISO-8859-1?Q?St=E9phane_Mottelet?=) Date: Wed, 09 Feb 2011 09:26:01 +0100 Subject: [scilab-Users] weird problem with fscanfMat In-Reply-To: <4D524F2C.1020709@laas.fr> References: <20110208220456.10173l6pldi4dzb4@webmail.utc.fr> <4D524F2C.1020709@laas.fr> Message-ID: <4D524F99.4070209@utc.fr> Le 09/02/2011 09:24, Antoine Monmayrant a ?crit : > Le 08/02/2011 22:04, Stephane Mottelet a ?crit : >> Hi all, >> >> I cannot manage to read the attached file with >> fscanfMat, although it has a compatible structure, >> i.e. one line one text then many lines of the same >> number of columns. >> >> I have even tried to read the first line with mgetl, >> but then eof is reached although I only get the first line >> (composed of text). >> >> I know each line is only finished with a cr and not >> an eol. Is it a problem ? >> Thanks for help of anybody willing to solve this >> weird issue !!! >> >> S. > When I open the file you attached to your email, I don't see any > separator to mark the end of line (no cr, no \n, no nothing). > It might have been mangled by my mail program but I doubt it. > I managed to open it in scilab with read_csv and it also looks like > there is no separator at the end of line: the last item of a line is > touching the first item on next line: > > -->a_string=read_csv("20101122_VOLUME.txt","\t"); > > -->a_string(16) > ans = > > ch15 (L)0.000 > > -->a_string(31) > ans = > > 0.0000.001 > > -->a_string(46) > ans = > > 0.0000.002 > > > Hope it helps, > > Antoine > Well, when I open it with vi, I see some ^M at the end of each line. S. From antoine.monmayrant at laas.fr Wed Feb 9 10:07:25 2011 From: antoine.monmayrant at laas.fr (Antoine Monmayrant) Date: Wed, 09 Feb 2011 10:07:25 +0100 Subject: [scilab-Users] weird problem with fscanfMat In-Reply-To: <4D524F99.4070209@utc.fr> References: <20110208220456.10173l6pldi4dzb4@webmail.utc.fr> <4D524F2C.1020709@laas.fr> <4D524F99.4070209@utc.fr> Message-ID: <4D52594D.8060601@laas.fr> Le 09/02/2011 09:26, St?phane Mottelet a ?crit : > Le 09/02/2011 09:24, Antoine Monmayrant a ?crit : >> Le 08/02/2011 22:04, Stephane Mottelet a ?crit : >>> Hi all, >>> >>> I cannot manage to read the attached file with >>> fscanfMat, although it has a compatible structure, >>> i.e. one line one text then many lines of the same >>> number of columns. >>> >>> I have even tried to read the first line with mgetl, >>> but then eof is reached although I only get the first line >>> (composed of text). >>> >>> I know each line is only finished with a cr and not >>> an eol. Is it a problem ? >>> Thanks for help of anybody willing to solve this >>> weird issue !!! >>> >>> S. >> When I open the file you attached to your email, I don't see any >> separator to mark the end of line (no cr, no \n, no nothing). >> It might have been mangled by my mail program but I doubt it. >> I managed to open it in scilab with read_csv and it also looks like >> there is no separator at the end of line: the last item of a line is >> touching the first item on next line: >> >> -->a_string=read_csv("20101122_VOLUME.txt","\t"); >> >> -->a_string(16) >> ans = >> >> ch15 (L)0.000 >> >> -->a_string(31) >> ans = >> >> 0.0000.001 >> >> -->a_string(46) >> ans = >> >> 0.0000.002 >> >> >> Hope it helps, >> >> Antoine >> > Well, when I open it with vi, I see some ^M at the end of each line. > > S. I don't, so it has been mangled in the process. With :set list, I can see the column separator (^I), but nothing at the end of line, the two adjacent items being merged... Antoine PS: I join your file back, can you check if it has been modified or not? -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: 20101122_VOLUME.txt URL: From Loic.Girod at esstin.uhp-nancy.fr Wed Feb 9 10:19:22 2011 From: Loic.Girod at esstin.uhp-nancy.fr (=?iso-8859-1?Q?Lo=EFc_GIROD?=) Date: Wed, 9 Feb 2011 10:19:22 +0100 Subject: can not read all words in a ascii file Message-ID: <005f01cbc83a$70936f80$51ba4e80$@esstin.uhp-nancy.fr> Hello ! I try to read the characters in the attached ASCII file. I would like to use the strings to make a legend in a graph. I use the following code : fd4 = mopen("P_70",'r') x=mfscanf(-1,fd4,'%s') but I get : x = ! ! ! ! !des ! ! ! !points ! ! ! !de ! ! ! !transformations ! ! ! !simple ! ! ! !DSC ! ! ! !Essai ! ! ! !A ! ! ! !Air ! ! ! !Alu ! ! ! ! ! ! ! !A ! ! ! !A ! ! ! !A ! ! ! !A ! ! ! !A ! ! ! !D ! ! ! !D ! As you can see, the first word is missing and I don?t understand why. Then I have not found how to convert x in a single string. Many thanks for the help Best regards Lo?c -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: P_70 Type: application/octet-stream Size: 588 bytes Desc: not available URL: From stephane.mottelet at utc.fr Wed Feb 9 10:29:44 2011 From: stephane.mottelet at utc.fr (=?ISO-8859-1?Q?St=E9phane_Mottelet?=) Date: Wed, 09 Feb 2011 10:29:44 +0100 Subject: [scilab-Users] weird problem with fscanfMat In-Reply-To: <4D52594D.8060601@laas.fr> References: <20110208220456.10173l6pldi4dzb4@webmail.utc.fr> <4D524F2C.1020709@laas.fr> <4D524F99.4070209@utc.fr> <4D52594D.8060601@laas.fr> Message-ID: <4D525E88.4040304@utc.fr> Le 09/02/2011 10:07, Antoine Monmayrant a ?crit : > Le 09/02/2011 09:26, St?phane Mottelet a ?crit : >> Le 09/02/2011 09:24, Antoine Monmayrant a ?crit : >>> Le 08/02/2011 22:04, Stephane Mottelet a ?crit : >>>> Hi all, >>>> >>>> I cannot manage to read the attached file with >>>> fscanfMat, although it has a compatible structure, >>>> i.e. one line one text then many lines of the same >>>> number of columns. >>>> >>>> I have even tried to read the first line with mgetl, >>>> but then eof is reached although I only get the first line >>>> (composed of text). >>>> >>>> I know each line is only finished with a cr and not >>>> an eol. Is it a problem ? >>>> Thanks for help of anybody willing to solve this >>>> weird issue !!! >>>> >>>> S. >>> When I open the file you attached to your email, I don't see any >>> separator to mark the end of line (no cr, no \n, no nothing). >>> It might have been mangled by my mail program but I doubt it. >>> I managed to open it in scilab with read_csv and it also looks like >>> there is no separator at the end of line: the last item of a line is >>> touching the first item on next line: >>> >>> -->a_string=read_csv("20101122_VOLUME.txt","\t"); >>> >>> -->a_string(16) >>> ans = >>> >>> ch15 (L)0.000 >>> >>> -->a_string(31) >>> ans = >>> >>> 0.0000.001 >>> >>> -->a_string(46) >>> ans = >>> >>> 0.0000.002 >>> >>> >>> Hope it helps, >>> >>> Antoine >>> >> Well, when I open it with vi, I see some ^M at the end of each line. >> >> S. > I don't, so it has been mangled in the process. > With :set list, I can see the column separator (^I), but nothing at > the end of line, the two adjacent items being merged... > > Antoine > PS: I join your file back, can you check if it has been modified or not? The ^M are missing, you are right. I join the original file (still unreadable with fscanfMat), but zipped in order to preserve it. S. -------------- next part -------------- A non-text attachment was scrubbed... Name: 20101122_VOLUME.txt.zip Type: application/zip Size: 2280 bytes Desc: not available URL: From Mike at Page-One.Waitrose.com Wed Feb 9 11:02:01 2011 From: Mike at Page-One.Waitrose.com (Mike Page) Date: Wed, 9 Feb 2011 10:02:01 -0000 Subject: [scilab-Users] can not read all words in a ascii file In-Reply-To: <005f01cbc83a$70936f80$51ba4e80$@esstin.uhp-nancy.fr> Message-ID: Hi Loic, Your file contains two bytes before the beginning of the string (0x01, 0x00). These characters cannot be correctly parsed as a string type. If you add y=mfscanf(2,fd4,'%c') before the reading of the strings, then you find the first string in the vector is "Mesure" as expected. There are more non-ASCII characters after the final string ("Alu"), which cause the random extra strings at the end of your vector. You can either read a limited number from the file (first parameter not == -1), or discard the last elements of the string vector. There are lots of ways to make a single string from the vector. One way is s=sprintf("%s ",x). The space after %s causes the elements to be separated by a single space, if that's what you want. HTH, Mike. -----Original Message----- From: Lo?c GIROD [mailto:Loic.Girod at esstin.uhp-nancy.fr] Sent: 09 February 2011 09:19 To: users at lists.scilab.org Subject: [scilab-Users] can not read all words in a ascii file Hello ! I try to read the characters in the attached ASCII file. I would like to use the strings to make a legend in a graph. I use the following code : fd4 = mopen("P_70",'r') x=mfscanf(-1,fd4,'%s') but I get : x = ! ! ! ! !des ! ! ! !points ! ! ! !de ! ! ! !transformations ! ! ! !simple ! ! ! !DSC ! ! ! !Essai ! ! ! !A ! ! ! !Air ! ! ! !Alu ! ! ! ! ! ! ! !A ! ! ! !A ! ! ! !A ! ! ! !A ! ! ! !A ! ! ! !D ! ! ! !D ! As you can see, the first word is missing and I don?t understand why. Then I have not found how to convert x in a single string. Many thanks for the help Best regards Lo?c -------------- next part -------------- An HTML attachment was scrubbed... URL: From mathieu.dubois at limsi.fr Wed Feb 9 11:18:17 2011 From: mathieu.dubois at limsi.fr (Mathieu Dubois) Date: Wed, 09 Feb 2011 11:18:17 +0100 Subject: [scilab-Users] can not read all words in a ascii file In-Reply-To: <005f01cbc83a$70936f80$51ba4e80$@esstin.uhp-nancy.fr> References: <005f01cbc83a$70936f80$51ba4e80$@esstin.uhp-nancy.fr> Message-ID: <4D5269E9.1060906@limsi.fr> Hello, The fact that you get a string matrix is related to the way mscanf works (it's a bit complicated, see the examples in help page). Basically, like scanf in C, %s reads a string delimited by whitespace (therefore you get a string per word). To read lines in a file see mgetl. I didn't succeed to read the file you send (it looks like it contains strange bytes and maybe that's why mscanf don't works) but it works with the attached file. -->fd4 = mopen("P_70",'r'); -->mgetl(fd4) ans = A legendary legend Mathieu On 02/09/2011 10:19 AM, Lo?c GIROD wrote: > > Hello ! > > I try to read the characters in the attached ASCII file. > > I would like to use the strings to make a legend in a graph. > > I use the following code : > > fd4= mopen("P_70",'r') > > x=mfscanf(-1,fd4,'%s') > > but I get : > > x = > > ! ! > > ! ! > > !des ! > > ! ! > > !points ! > > ! ! > > !de ! > > ! ! > > !transformations ! > > ! ! > > !simple ! > > ! ! > > !DSC ! > > ! ! > > !Essai ! > > ! ! > > !A ! > > ! ! > > !Air ! > > ! ! > > !Alu ! > > ! ! > > ! ! > > ! ! > > !A ! > > ! ! > > !A ! > > ! ! > > !A ! > > ! ! > > !A ! > > ! ! > > !A ! > > ! ! > > !D ! > > ! ! > > !D ! > > As you can see, the first word is missing and I don't understand why. > > Then I have not found how to convert x in a single string. > > Many thanks for the help > > Best regards > > Lo?c > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: P_70 URL: From antoine.monmayrant at laas.fr Wed Feb 9 11:41:30 2011 From: antoine.monmayrant at laas.fr (Antoine Monmayrant) Date: Wed, 09 Feb 2011 11:41:30 +0100 Subject: [scilab-Users] weird problem with fscanfMat In-Reply-To: <4D525E88.4040304@utc.fr> References: <20110208220456.10173l6pldi4dzb4@webmail.utc.fr> <4D524F2C.1020709@laas.fr> <4D524F99.4070209@utc.fr> <4D52594D.8060601@laas.fr> <4D525E88.4040304@utc.fr> Message-ID: <4D526F5A.5070506@laas.fr> Le 09/02/2011 10:29, St?phane Mottelet a ?crit : > Le 09/02/2011 10:07, Antoine Monmayrant a ?crit : >> Le 09/02/2011 09:26, St?phane Mottelet a ?crit : >>> Le 09/02/2011 09:24, Antoine Monmayrant a ?crit : >>>> Le 08/02/2011 22:04, Stephane Mottelet a ?crit : >>>>> Hi all, >>>>> >>>>> I cannot manage to read the attached file with >>>>> fscanfMat, although it has a compatible structure, >>>>> i.e. one line one text then many lines of the same >>>>> number of columns. >>>>> >>>>> I have even tried to read the first line with mgetl, >>>>> but then eof is reached although I only get the first line >>>>> (composed of text). >>>>> >>>>> I know each line is only finished with a cr and not >>>>> an eol. Is it a problem ? >>>>> Thanks for help of anybody willing to solve this >>>>> weird issue !!! >>>>> >>>>> S. >>>> When I open the file you attached to your email, I don't see any >>>> separator to mark the end of line (no cr, no \n, no nothing). >>>> It might have been mangled by my mail program but I doubt it. >>>> I managed to open it in scilab with read_csv and it also looks like >>>> there is no separator at the end of line: the last item of a line >>>> is touching the first item on next line: >>>> >>>> -->a_string=read_csv("20101122_VOLUME.txt","\t"); >>>> >>>> -->a_string(16) >>>> ans = >>>> >>>> ch15 (L)0.000 >>>> >>>> -->a_string(31) >>>> ans = >>>> >>>> 0.0000.001 >>>> >>>> -->a_string(46) >>>> ans = >>>> >>>> 0.0000.002 >>>> >>>> >>>> Hope it helps, >>>> >>>> Antoine >>>> >>> Well, when I open it with vi, I see some ^M at the end of each line. >>> >>> S. >> I don't, so it has been mangled in the process. >> With :set list, I can see the column separator (^I), but nothing at >> the end of line, the two adjacent items being merged... >> >> Antoine >> PS: I join your file back, can you check if it has been modified or not? > The ^M are missing, you are right. I join the original > file (still unreadable with fscanfMat), but zipped in order > to preserve it. > > S. Got it! There is a problem with your file format. It might be a bug in fscanfMat, but I don't think as it is only supposed to open files created with fprintfMat. As such, it does not handle the slightest deviation from the expect format. Here is a way to correct things under linux: cat 20101122_VOLUME.txt | tr '\r' '\n' > corr_20101122_VOLUME.txt then in scilab you can load it: -->dat=fscanfMat("corr_20101122_VOLUME.txt"); -->size(dat) ans = 291. 16. Antoine From Loic.Girod at esstin.uhp-nancy.fr Wed Feb 9 11:44:00 2011 From: Loic.Girod at esstin.uhp-nancy.fr (=?iso-8859-1?Q?Lo=EFc_GIROD?=) Date: Wed, 9 Feb 2011 11:44:00 +0100 Subject: [scilab-Users] can not read all words in a ascii file In-Reply-To: References: <005f01cbc83a$70936f80$51ba4e80$@esstin.uhp-nancy.fr> Message-ID: <009801cbc846$43b5e090$cb21a1b0$@esstin.uhp-nancy.fr> Hi Mike, Again many thanks for the help, it works great ! Bye ! Lo?c De : Mike Page [mailto:Mike at Page-One.Waitrose.com] Envoy? : mercredi 9 f?vrier 2011 11:02 ? : users at lists.scilab.org Objet : RE: [scilab-Users] can not read all words in a ascii file Hi Loic, Your file contains two bytes before the beginning of the string (0x01, 0x00). These characters cannot be correctly parsed as a string type. If you add y=mfscanf(2,fd4,'%c') before the reading of the strings, then you find the first string in the vector is "Mesure" as expected. There are more non-ASCII characters after the final string ("Alu"), which cause the random extra strings at the end of your vector. You can either read a limited number from the file (first parameter not == -1), or discard the last elements of the string vector. There are lots of ways to make a single string from the vector. One way is s=sprintf("%s ",x). The space after %s causes the elements to be separated by a single space, if that's what you want. HTH, Mike. -----Original Message----- From: Lo?c GIROD [mailto:Loic.Girod at esstin.uhp-nancy.fr] Sent: 09 February 2011 09:19 To: users at lists.scilab.org Subject: [scilab-Users] can not read all words in a ascii file Hello ! I try to read the characters in the attached ASCII file. I would like to use the strings to make a legend in a graph. I use the following code : fd4 = mopen("P_70",'r') x=mfscanf(-1,fd4,'%s') but I get : x = ! ! ! ! !des ! ! ! !points ! ! ! !de ! ! ! !transformations ! ! ! !simple ! ! ! !DSC ! ! ! !Essai ! ! ! !A ! ! ! !Air ! ! ! !Alu ! ! ! ! ! ! ! !A ! ! ! !A ! ! ! !A ! ! ! !A ! ! ! !A ! ! ! !D ! ! ! !D ! As you can see, the first word is missing and I don?t understand why. Then I have not found how to convert x in a single string. Many thanks for the help Best regards Lo?c -------------- next part -------------- An HTML attachment was scrubbed... URL: From Loic.Girod at esstin.uhp-nancy.fr Wed Feb 9 11:44:58 2011 From: Loic.Girod at esstin.uhp-nancy.fr (=?iso-8859-1?Q?Lo=EFc_GIROD?=) Date: Wed, 9 Feb 2011 11:44:58 +0100 Subject: [scilab-Users] can not read all words in a ascii file In-Reply-To: <4D5269E9.1060906@limsi.fr> References: <005f01cbc83a$70936f80$51ba4e80$@esstin.uhp-nancy.fr> <4D5269E9.1060906@limsi.fr> Message-ID: <009d01cbc846$6617c1d0$32474570$@esstin.uhp-nancy.fr> Hello Mathieu, Thanks for the help. Indeed, it does not work with my file but it works with your example. Bye Lo?c -- De : Mathieu Dubois [mailto:mathieu.dubois at limsi.fr] Envoy? : mercredi 9 f?vrier 2011 11:18 ? : users at lists.scilab.org Objet : Re: [scilab-Users] can not read all words in a ascii file Hello, The fact that you get a string matrix is related to the way mscanf works (it's a bit complicated, see the examples in help page). Basically, like scanf in C, %s reads a string delimited by whitespace (therefore you get a string per word). To read lines in a file see mgetl. I didn't succeed to read the file you send (it looks like it contains strange bytes and maybe that's why mscanf don't works) but it works with the attached file. -->fd4 = mopen("P_70",'r'); -->mgetl(fd4) ans = A legendary legend Mathieu On 02/09/2011 10:19 AM, Lo?c GIROD wrote: Hello ! I try to read the characters in the attached ASCII file. I would like to use the strings to make a legend in a graph. I use the following code : fd4 = mopen("P_70",'r') x=mfscanf(-1,fd4,'%s') but I get : x = ! ! ! ! !des ! ! ! !points ! ! ! !de ! ! ! !transformations ! ! ! !simple ! ! ! !DSC ! ! ! !Essai ! ! ! !A ! ! ! !Air ! ! ! !Alu ! ! ! ! ! ! ! !A ! ! ! !A ! ! ! !A ! ! ! !A ! ! ! !A ! ! ! !D ! ! ! !D ! As you can see, the first word is missing and I don?t understand why. Then I have not found how to convert x in a single string. Many thanks for the help Best regards Lo?c -------------- next part -------------- An HTML attachment was scrubbed... URL: From paul.carrico at esterline.com Wed Feb 9 11:59:46 2011 From: paul.carrico at esterline.com (Carrico, Paul) Date: Wed, 9 Feb 2011 11:59:46 +0100 Subject: [scilab-Users] SQP method In-Reply-To: <2084138216.3191731296824086522.JavaMail.root@zimbra40-e7.priv.proxad.net> References: <799827619.3191661296824041355.JavaMail.root@zimbra40-e7.priv.proxad.net> <2084138216.3191731296824086522.JavaMail.root@zimbra40-e7.priv.proxad.net> Message-ID: <55A12CBC06A8C9459DCE0BBEF8122FDC0498B109@exchsrv.AUXITROL1> Dear All, I downloaded the builder.sce file + nlopt-2.2.1-dll.zip file) ( & the nlopt-2.2.1.tar.gz one) ... In a general way where do we have to install a builder file ? Is there a specific directory ? (I have found no information on the website for example nor another documentation) For the first test using the 32bits library I put it on the Scilab root and the zip file in the thirdparty/win directory ... Furthermore I've a problem in building the macros (no specific macros directory ... Many buildermacros.sce files but they seem specific to a package) ... how can I proceed ? Thanks Paul #########################################" -->exec('D:\scilab-5.3.0\builder.sce', -1) Uncompressing NLOPT ... please wait Archive: nlopt-2.2.1-dll.zip inflating: libnlopt-0.dll inflating: libnlopt-0.def inflating: nlopt.f inflating: nlopt.h inflating: nlopt.hpp inflating: nlopt.py inflating: nlopt-python.cpp inflating: setup.py inflating: README inflating: COPYING inflating: NEWS inflating: README-WINDOWS inflating: matlab/NLOPT_AUGLAG_EQ.m inflating: matlab/NLOPT_AUGLAG.m inflating: matlab/NLOPT_GD_MLSL_LDS.m inflating: matlab/NLOPT_GD_MLSL.m inflating: matlab/NLOPT_GD_STOGO.m inflating: matlab/NLOPT_GD_STOGO_RAND.m inflating: matlab/NLOPT_G_MLSL_LDS.m inflating: matlab/NLOPT_G_MLSL.m inflating: matlab/NLOPT_GN_CRS2_LM.m inflating: matlab/NLOPT_GN_DIRECT_L.m inflating: matlab/NLOPT_GN_DIRECT_L_NOSCAL.m inflating: matlab/NLOPT_GN_DIRECT_L_RAND.m inflating: matlab/NLOPT_GN_DIRECT_L_RAND_NOSCAL.m inflating: matlab/NLOPT_GN_DIRECT.m inflating: matlab/NLOPT_GN_DIRECT_NOSCAL.m inflating: matlab/NLOPT_GN_ISRES.m inflating: matlab/NLOPT_GN_MLSL_LDS.m inflating: matlab/NLOPT_GN_MLSL.m inflating: matlab/NLOPT_GN_ORIG_DIRECT_L.m inflating: matlab/NLOPT_GN_ORIG_DIRECT.m inflating: matlab/NLOPT_LD_AUGLAG_EQ.m inflating: matlab/NLOPT_LD_AUGLAG.m inflating: matlab/NLOPT_LD_LBFGS.m inflating: matlab/NLOPT_LD_LBFGS_NOCEDAL.m inflating: matlab/NLOPT_LD_MMA.m inflating: matlab/NLOPT_LD_TNEWTON.m inflating: matlab/NLOPT_LD_TNEWTON_PRECOND.m inflating: matlab/NLOPT_LD_TNEWTON_PRECOND_RESTART.m inflating: matlab/NLOPT_LD_TNEWTON_RESTART.m inflating: matlab/NLOPT_LD_VAR1.m inflating: matlab/NLOPT_LD_VAR2.m inflating: matlab/NLOPT_LN_AUGLAG_EQ.m inflating: matlab/NLOPT_LN_AUGLAG.m inflating: matlab/NLOPT_LN_BOBYQA.m inflating: matlab/NLOPT_LN_COBYLA.m inflating: matlab/NLOPT_LN_NELDERMEAD.m inflating: matlab/NLOPT_LN_NEWUOA_BOUND.m inflating: matlab/NLOPT_LN_NEWUOA.m inflating: matlab/NLOPT_LN_PRAXIS.m inflating: matlab/NLOPT_LN_SBPLX.m inflating: matlab/nlopt_minimize_constrained.m inflating: matlab/nlopt_minimize.m inflating: matlab/nlopt_optimize.c inflating: matlab/nlopt_optimize.m Building macros... !--error 10000 tbx_builder: The file 'D:\scilab-5.3.0\\macros\buildmacros.sce' doesn't exist or is not read accessible. at line 10 of function tbx_builder called by : at line 26 of function tbx_builder_macros called by : tbx_builder_macros(toolbox_dir); at line 73 of exec file called by : exec('D:\scilab-5.3.0\builder.sce', -1) -----Message d'origine----- De : ycollette.nospam at free.fr [mailto:ycollette.nospam at free.fr] Envoy? : vendredi 4 f?vrier 2011 13:55 ? : users at lists.scilab.org Objet : Re: [scilab-Users] SQP method I will try to find some time to build this toolbox (and to put it into atoms). The source code is here: http://code.google.com/p/scilab-mip/source/browse/#svn%2Ftrunk%2Fscinlopt YC ----- Mail Original ----- De: "Paul Carrico" ?: users at lists.scilab.org Envoy?: Vendredi 4 F?vrier 2011 13h37:36 GMT +01:00 Amsterdam / Berlin / Berne / Rome / Stockholm / Vienne Objet: RE: [scilab-Users] SQP method Thanks for the information ... A pre-compiled windows library exists .... PC -----Message d'origine----- De : ycollette.nospam at free.fr [mailto:ycollette.nospam at free.fr] Envoy? : vendredi 4 f?vrier 2011 13:02 ? : users at lists.scilab.org Objet : Re: [scilab-Users] SQP method There is a NLOPT library which have a SQP: http://ab-initio.mit.edu/wiki/index.php/NLopt I have started a scilab interface for this library. It's nearly finished, but still need some improvements (and a C compiler under windows :)). YC ----- Mail Original ----- De: "Paul Carrico" ?: users at lists.scilab.org Envoy?: Vendredi 4 F?vrier 2011 12h44:13 GMT +01:00 Amsterdam / Berlin / Berne / Rome / Stockholm / Vienne Objet: [scilab-Users] SQP method All, Except fsqp that's under license, is there another library including Sequential Quadratic Programming in Scilab ? - HQP in sourceforce but it needs C compileur (I'm currently under windows and I don't want to install either cygwin nor mygwin - dakota libraries ... - and so on ... Any feedback ? Regards Paul -------------------------------------------------------------------------------- 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. -------------------------------------------------------------------------------- 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. -------------------------------------------------------------------------------- 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. -------------- next part -------------- A non-text attachment was scrubbed... Name: builder.sce Type: application/octet-stream Size: 2640 bytes Desc: builder.sce URL: From Loic.Girod at esstin.uhp-nancy.fr Wed Feb 9 14:52:49 2011 From: Loic.Girod at esstin.uhp-nancy.fr (=?iso-8859-1?Q?Lo=EFc_GIROD?=) Date: Wed, 9 Feb 2011 14:52:49 +0100 Subject: 2 lines on graph title and image Message-ID: <00db01cbc860$a4175800$ec460800$@esstin.uhp-nancy.fr> Hello, I would like to add a second line on a graph title to separate various strings. For the moment, I use the following code : xtitle (s+"-- "+date(), "x-axis", "y-axis") where s is a string previously defined. I?ve tried to include additional text in a legend but it?s not very pleasant. The second question is : is-it possible to add an image like a logo on a graph ? maybe on the top right or left. I did not find anything about that in the help. Many thanks Lo?c -------------- next part -------------- An HTML attachment was scrubbed... URL: From calixte at contrib.scilab.org Wed Feb 9 15:11:23 2011 From: calixte at contrib.scilab.org (Calixte Denizet) Date: Wed, 09 Feb 2011 15:11:23 +0100 Subject: [scilab-Users] 2 lines on graph title and image In-Reply-To: <00db01cbc860$a4175800$ec460800$@esstin.uhp-nancy.fr> References: <00db01cbc860$a4175800$ec460800$@esstin.uhp-nancy.fr> Message-ID: <1297260683.29120.412.camel@Calixte-Dell> Le mercredi 09 f?vrier 2011 ? 14:52 +0100, Lo?c GIROD a ?crit : > Hello, > Hello > > > I would like to add a second line on a graph title to separate various > strings. > > For the moment, I use the following code : xtitle (s+"-- "+date(), "x-axis", "y-axis") where s is a string previously defined. > I?ve tried to include additional text in a legend but it?s not very pleasant. > > The second question is : is-it possible to add an image like a logo on a graph ? maybe on the top right or left. I did not find anything about that in the help. You can use the LaTeX command \includegraphics (http://bugzilla.scilab.org/show_bug.cgi?id=6354 ) Regards Calixte > > Many thanks > > > > > > Lo?c > > > > > > > > From Mike at Page-One.Waitrose.com Wed Feb 9 15:21:24 2011 From: Mike at Page-One.Waitrose.com (Mike Page) Date: Wed, 9 Feb 2011 14:21:24 -0000 Subject: [scilab-Users] 2 lines on graph title and image In-Reply-To: <00db01cbc860$a4175800$ec460800$@esstin.uhp-nancy.fr> Message-ID: Hi Loic, I think if you use xtitle with a vector of strings you get a multi-line title: t=["title 1";"title 2"]; xtitle (t, "x-axis", "y-axis"); I don't know about putting images on plots - I have not tried that. Maybe someone else will have an answer. Mike. -----Original Message----- From: Lo?c GIROD [mailto:Loic.Girod at esstin.uhp-nancy.fr] Sent: 09 February 2011 13:53 To: users at lists.scilab.org Subject: [scilab-Users] 2 lines on graph title and image Hello, I would like to add a second line on a graph title to separate various strings. For the moment, I use the following code : xtitle (s+"-- "+date(), "x-axis", "y-axis") where s is a string previously defined.I?ve tried to include additional text in a legend but it?s not very pleasant. The second question is : is-it possible to add an image like a logo on a graph ? maybe on the top right or left. I did not find anything about that in the help. Many thanks Lo?c -------------- next part -------------- An HTML attachment was scrubbed... URL: From stephane.mottelet at utc.fr Wed Feb 9 16:12:27 2011 From: stephane.mottelet at utc.fr (=?ISO-8859-1?Q?St=E9phane_Mottelet?=) Date: Wed, 09 Feb 2011 16:12:27 +0100 Subject: [scilab-Users] weird problem with fscanfMat In-Reply-To: <4D526F5A.5070506@laas.fr> References: <20110208220456.10173l6pldi4dzb4@webmail.utc.fr> <4D524F2C.1020709@laas.fr> <4D524F99.4070209@utc.fr> <4D52594D.8060601@laas.fr> <4D525E88.4040304@utc.fr> <4D526F5A.5070506@laas.fr> Message-ID: <4D52AEDB.4020904@utc.fr> Le 09/02/2011 11:41, Antoine Monmayrant a ?crit : > Le 09/02/2011 10:29, St?phane Mottelet a ?crit : >> Le 09/02/2011 10:07, Antoine Monmayrant a ?crit : >>> Le 09/02/2011 09:26, St?phane Mottelet a ?crit : >>>> Le 09/02/2011 09:24, Antoine Monmayrant a ?crit : >>>>> Le 08/02/2011 22:04, Stephane Mottelet a ?crit : >>>>>> Hi all, >>>>>> >>>>>> I cannot manage to read the attached file with >>>>>> fscanfMat, although it has a compatible structure, >>>>>> i.e. one line one text then many lines of the same >>>>>> number of columns. >>>>>> >>>>>> I have even tried to read the first line with mgetl, >>>>>> but then eof is reached although I only get the first line >>>>>> (composed of text). >>>>>> >>>>>> I know each line is only finished with a cr and not >>>>>> an eol. Is it a problem ? >>>>>> Thanks for help of anybody willing to solve this >>>>>> weird issue !!! >>>>>> >>>>>> S. >>>>> When I open the file you attached to your email, I don't see any >>>>> separator to mark the end of line (no cr, no \n, no nothing). >>>>> It might have been mangled by my mail program but I doubt it. >>>>> I managed to open it in scilab with read_csv and it also looks >>>>> like there is no separator at the end of line: the last item of a >>>>> line is touching the first item on next line: >>>>> >>>>> -->a_string=read_csv("20101122_VOLUME.txt","\t"); >>>>> >>>>> -->a_string(16) >>>>> ans = >>>>> >>>>> ch15 (L)0.000 >>>>> >>>>> -->a_string(31) >>>>> ans = >>>>> >>>>> 0.0000.001 >>>>> >>>>> -->a_string(46) >>>>> ans = >>>>> >>>>> 0.0000.002 >>>>> >>>>> >>>>> Hope it helps, >>>>> >>>>> Antoine >>>>> >>>> Well, when I open it with vi, I see some ^M at the end of each line. >>>> >>>> S. >>> I don't, so it has been mangled in the process. >>> With :set list, I can see the column separator (^I), but nothing at >>> the end of line, the two adjacent items being merged... >>> >>> Antoine >>> PS: I join your file back, can you check if it has been modified or >>> not? >> The ^M are missing, you are right. I join the original >> file (still unreadable with fscanfMat), but zipped in order >> to preserve it. >> >> S. > Got it! > There is a problem with your file format. > It might be a bug in fscanfMat, but I don't think as it is only > supposed to open files created with fprintfMat. > As such, it does not handle the slightest deviation from the expect > format. well, are files with a ^M instead of ^L non-standard ? S. > Here is a way to correct things under linux: > > cat 20101122_VOLUME.txt | tr '\r' '\n' > corr_20101122_VOLUME.txt > > then in scilab you can load it: > > -->dat=fscanfMat("corr_20101122_VOLUME.txt"); > > -->size(dat) > ans = > > 291. 16. > > Antoine From antoine.monmayrant at laas.fr Wed Feb 9 16:16:00 2011 From: antoine.monmayrant at laas.fr (Antoine Monmayrant) Date: Wed, 09 Feb 2011 16:16:00 +0100 Subject: [scilab-Users] weird problem with fscanfMat In-Reply-To: <4D52AEDB.4020904@utc.fr> References: <20110208220456.10173l6pldi4dzb4@webmail.utc.fr> <4D524F2C.1020709@laas.fr> <4D524F99.4070209@utc.fr> <4D52594D.8060601@laas.fr> <4D525E88.4040304@utc.fr> <4D526F5A.5070506@laas.fr> <4D52AEDB.4020904@utc.fr> Message-ID: <4D52AFB0.3080806@laas.fr> Le 09/02/2011 16:12, St?phane Mottelet a ?crit : > Le 09/02/2011 11:41, Antoine Monmayrant a ?crit : >> Le 09/02/2011 10:29, St?phane Mottelet a ?crit : >>> Le 09/02/2011 10:07, Antoine Monmayrant a ?crit : >>>> Le 09/02/2011 09:26, St?phane Mottelet a ?crit : >>>>> Le 09/02/2011 09:24, Antoine Monmayrant a ?crit : >>>>>> Le 08/02/2011 22:04, Stephane Mottelet a ?crit : >>>>>>> Hi all, >>>>>>> >>>>>>> I cannot manage to read the attached file with >>>>>>> fscanfMat, although it has a compatible structure, >>>>>>> i.e. one line one text then many lines of the same >>>>>>> number of columns. >>>>>>> >>>>>>> I have even tried to read the first line with mgetl, >>>>>>> but then eof is reached although I only get the first line >>>>>>> (composed of text). >>>>>>> >>>>>>> I know each line is only finished with a cr and not >>>>>>> an eol. Is it a problem ? >>>>>>> Thanks for help of anybody willing to solve this >>>>>>> weird issue !!! >>>>>>> >>>>>>> S. >>>>>> When I open the file you attached to your email, I don't see any >>>>>> separator to mark the end of line (no cr, no \n, no nothing). >>>>>> It might have been mangled by my mail program but I doubt it. >>>>>> I managed to open it in scilab with read_csv and it also looks >>>>>> like there is no separator at the end of line: the last item of a >>>>>> line is touching the first item on next line: >>>>>> >>>>>> -->a_string=read_csv("20101122_VOLUME.txt","\t"); >>>>>> >>>>>> -->a_string(16) >>>>>> ans = >>>>>> >>>>>> ch15 (L)0.000 >>>>>> >>>>>> -->a_string(31) >>>>>> ans = >>>>>> >>>>>> 0.0000.001 >>>>>> >>>>>> -->a_string(46) >>>>>> ans = >>>>>> >>>>>> 0.0000.002 >>>>>> >>>>>> >>>>>> Hope it helps, >>>>>> >>>>>> Antoine >>>>>> >>>>> Well, when I open it with vi, I see some ^M at the end of each line. >>>>> >>>>> S. >>>> I don't, so it has been mangled in the process. >>>> With :set list, I can see the column separator (^I), but nothing at >>>> the end of line, the two adjacent items being merged... >>>> >>>> Antoine >>>> PS: I join your file back, can you check if it has been modified or >>>> not? >>> The ^M are missing, you are right. I join the original >>> file (still unreadable with fscanfMat), but zipped in order >>> to preserve it. >>> >>> S. >> Got it! >> There is a problem with your file format. >> It might be a bug in fscanfMat, but I don't think as it is only >> supposed to open files created with fprintfMat. >> As such, it does not handle the slightest deviation from the expect >> format. > > well, are files with a ^M instead of ^L non-standard ? > > S. I won't say that. What I know is that fscanfMat is only supposed to open files made using fprintfMat. I learned it the hard way as I was using it to load other kind of files and things changed at some point (5.2 or 5.3). My point is that it is not really a bug if fscanfMat cannot open a file that it is not designed to open... I think I ended up using read_csv to avoid this problem. Antoinz > >> Here is a way to correct things under linux: >> >> cat 20101122_VOLUME.txt | tr '\r' '\n' > corr_20101122_VOLUME.txt >> >> then in scilab you can load it: >> >> -->dat=fscanfMat("corr_20101122_VOLUME.txt"); >> >> -->size(dat) >> ans = >> >> 291. 16. >> >> Antoine > -- +++++++++++++++++++++++++++++++++++++++++++++++++++++++ Antoine Monmayrant LAAS - CNRS 7 avenue du Colonel Roche 31077 TOULOUSE Cedex 4 FRANCE Tel:+33 5 61 33 64 59 email : antoine.monmayrant at laas.fr permanent email : antoine.monmayrant at polytechnique.org +++++++++++++++++++++++++++++++++++++++++++++++++++++++ From esteban at tiwee.net Wed Feb 9 16:46:45 2011 From: esteban at tiwee.net (esteban jimenez) Date: Wed, 9 Feb 2011 16:46:45 +0100 Subject: Link() / Fortran function name NOT appended with underscore Message-ID: Hello, I have problem using the link() function. Many Fortran compilers append an underscore (_) at the end of definitions and references to externally visible symbols (subroutines, functions, etc.) BUT NOT ALL ! I work with in house fortran dll for wich I can't guarantee neither the compilers nor options and for some of them the subroutine names are not appended. Link() seems to always consider that function name ends with a '_'. Can I change this behavior ? Thank's S.Jimenez -------------- next part -------------- An HTML attachment was scrubbed... URL: From allan.cornet at scilab.org Wed Feb 9 16:59:38 2011 From: allan.cornet at scilab.org (Allan CORNET) Date: Wed, 9 Feb 2011 16:59:38 +0100 Subject: [scilab-Users] Link() / Fortran function name NOT appended with underscore In-Reply-To: References: Message-ID: <00c701cbc872$5afe3ff0$10fabfd0$@scilab.org> Hi, Fortran compilers on Windows (intel fortran and gfortran) have a compilation option to define to add or not a ?_? See ? Append Underscore to External Names ? option in your compiler (/assume:underscore). If your symbol has no underscore you can try : link("myfortran.dll", "myfortranfunction", "c") see help link And please check that you link dependencies before that you link your dynamic library. Allan De : esteban jimenez [mailto:esteban at tiwee.net] Envoy? : mercredi 9 f?vrier 2011 16:47 ? : users at lists.scilab.org Objet : [scilab-Users] Link() / Fortran function name NOT appended with underscore Hello, I have problem using the link() function. Many Fortran compilers append an underscore (_) at the end of definitions and references to externally visible symbols (subroutines, functions, etc.) BUT NOT ALL ! I work with in house fortran dll for wich I can't guarantee neither the compilers nor options and for some of them the subroutine names are not appended. Link() seems to always consider that function name ends with a '_'. Can I change this behavior ? Thank's S.Jimenez -------------- next part -------------- An HTML attachment was scrubbed... URL: From Loic.Girod at esstin.uhp-nancy.fr Wed Feb 9 17:38:08 2011 From: Loic.Girod at esstin.uhp-nancy.fr (=?iso-8859-1?Q?Lo=EFc_GIROD?=) Date: Wed, 9 Feb 2011 17:38:08 +0100 Subject: [scilab-Users] 2 lines on graph title and image In-Reply-To: References: <00db01cbc860$a4175800$ec460800$@esstin.uhp-nancy.fr> Message-ID: <012f01cbc877$bc72e1a0$3558a4e0$@esstin.uhp-nancy.fr> Hello Mike, Many thanks again for your help, it works great. Regarding putting images in a graph, Calixte proposed me something with latex commands which works well. I copy/paste the mail under. Best regards You can use the LaTeX command \includegraphics ( http://bugzilla.scilab.org/show_bug.cgi?id=6354 ) Regards Calixte Lo?c -- De : Mike Page [mailto:Mike at Page-One.Waitrose.com] Envoy? : mercredi 9 f?vrier 2011 15:21 ? : users at lists.scilab.org Objet : RE: [scilab-Users] 2 lines on graph title and image Hi Loic, I think if you use xtitle with a vector of strings you get a multi-line title: t=["title 1";"title 2"]; xtitle (t, "x-axis", "y-axis"); I don't know about putting images on plots - I have not tried that. Maybe someone else will have an answer. Mike. -----Original Message----- From: Lo?c GIROD [mailto:Loic.Girod at esstin.uhp-nancy.fr] Sent: 09 February 2011 13:53 To: users at lists.scilab.org Subject: [scilab-Users] 2 lines on graph title and image Hello, I would like to add a second line on a graph title to separate various strings. For the moment, I use the following code : xtitle (s+"-- "+date(), "x-axis", "y-axis") where s is a string previously defined. I?ve tried to include additional text in a legend but it?s not very pleasant. The second question is : is-it possible to add an image like a logo on a graph ? maybe on the top right or left. I did not find anything about that in the help. Many thanks Lo?c -------------- next part -------------- An HTML attachment was scrubbed... URL: From Loic.Girod at esstin.uhp-nancy.fr Wed Feb 9 17:38:33 2011 From: Loic.Girod at esstin.uhp-nancy.fr (=?UTF-8?Q?Lo=C3=AFc_GIROD?=) Date: Wed, 9 Feb 2011 17:38:33 +0100 Subject: [scilab-Users] 2 lines on graph title and image In-Reply-To: <1297260683.29120.412.camel@Calixte-Dell> References: <00db01cbc860$a4175800$ec460800$@esstin.uhp-nancy.fr> <1297260683.29120.412.camel@Calixte-Dell> Message-ID: <013401cbc877$cb73d2e0$625b78a0$@esstin.uhp-nancy.fr> Hello Calixte, Many thanks, it works perfectly. Best regards Lo?c -----Message d'origine----- De : Calixte Denizet [mailto:calixte at contrib.scilab.org] Envoy? : mercredi 9 f?vrier 2011 15:11 ? : users at lists.scilab.org Objet : Re: [scilab-Users] 2 lines on graph title and image Le mercredi 09 f?vrier 2011 ? 14:52 +0100, Lo?c GIROD a ?crit : > Hello, > Hello > > > I would like to add a second line on a graph title to separate various > strings. > > For the moment, I use the following code : xtitle (s+"-- "+date(), "x-axis", "y-axis") where s is a string previously defined. > I?ve tried to include additional text in a legend but it?s not very pleasant. > > The second question is : is-it possible to add an image like a logo on a graph ? maybe on the top right or left. I did not find anything about that in the help. You can use the LaTeX command \includegraphics (http://bugzilla.scilab.org/show_bug.cgi?id=6354 ) Regards Calixte > > Many thanks > > > > > > Lo?c > > > > > > > > From jsolomon at iai.co.il Thu Feb 10 11:22:02 2011 From: jsolomon at iai.co.il (Solomon Julia) Date: Thu, 10 Feb 2011 12:22:02 +0200 Subject: FW: Transpose matrix Message-ID: <9CC4EC2066905D4396812908BA2B89E109D57C@mlmxmail.malam.iai.co.il> > Hi > I have a problen and need some help. > I've got a matrix of floating point numbers of size: 1000. 21.' and > when I try to get the transpose of it I receive the error : too many > variables. > > size(a)= 1000. 21. > m=a' > !-error 18 > ! Too many variables > Thank you for your help > Julia *************************************************************************************** Please consider the environment before printing this email The information contained in this communication is proprietary to Israel Aerospace Industries Ltd. and/or third parties, may contain confidential or privileged information, and is intended only for the use of the intended addressee thereof. If you are not the intended addressee, please be aware that any use, disclosure, distribution and/or copying of this communication is strictly prohibited. If you receive this communication in error, please notify the sender immediately and delete it from your computer. Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: From michael.baudin at scilab.org Thu Feb 10 11:45:53 2011 From: michael.baudin at scilab.org (=?ISO-8859-1?Q?Micha=EBl_Baudin?=) Date: Thu, 10 Feb 2011 11:45:53 +0100 Subject: Technical News Message-ID: <4D53C1E1.5090909@scilab.org> Hi, We recently created several wiki pages on technical topics. * The wiki page : http://wiki.scilab.org/Non_linear_optimization_for_parameter_fitting_example gives a particular example of nonlinear optimization. We try to find the parameters of a a differential equation which best fit some experimental data. This was the opportunity to test the fminsearch, optim, derivative and leastsq functions in a practical case. Thanks to Marcio Barbalho for providing this example. * Several users asked for guidance to solve linear programming problem. The wiki page : http://wiki.scilab.org/Linear_Programming_Examples_in_Scilab presents 6 examples where we solve linear programs with karmarkar and the linpro functions. We present classical techniques of problem transformations to solve the feasibility problem, to manage linear inequalities and to manage non-positive variables. Thank to Reinaldo Golmia Dante for providing some of the examples. * A question that was often raised is the equivalence between Scilab toolboxes and Matlab toolboxes. On the wiki page : http://wiki.scilab.org/Matlab_Toolboxes_in_Scilab we present the list of Matlab toolboxes and analyse the Scilab toolboxes which best fit. We give the name of the Matlab module, the name of one or more equivalent modules and the degree of coverage of the Scilab modules with respect to Matlab. * We are sometimes confused by the rich set of data structures available in Scilab. The most common question is that we have to select between the tlist, mlist or struct, and do not know which one to choose. The section 3.12 of "Programming in Scilab" presents a comparison of these data types: http://forge.scilab.org/index.php/p/docprogscilab/downloads/ We compare the various data types that Scilab offer. We present a figure which presents an overview of these data types and discuss their advantages. * The wiki page : http://wiki.scilab.org/Finite_Volumes_in_Scilab presents an overview of the finite volume tools which are available in the Scilab environment. We present the PDE block in XCos and several Scilab scripts which are available over the internet on this topic. Best regards, Micha?l Baudin -- Micha?l Baudin Ing?nieur de d?veloppement michael.baudin at scilab.org ------------------------- Consortium Scilab - Digiteo Domaine de Voluceau - Rocquencourt B.P. 105 - 78153 Le Chesnay Cedex Tel. : 01 39 63 56 87 - Fax : 01 39 63 55 94 From berns.buenaobra at gmail.com Thu Feb 10 14:39:09 2011 From: berns.buenaobra at gmail.com (Berns Buenaobra) Date: Thu, 10 Feb 2011 21:39:09 +0800 Subject: Problem starting Scilab 5.3.0 on Vista Message-ID: Helllo: Anyone can give me a hint why is this happening just after installing and then running it? Here is what I get as a message: Startup execution: loading initial environment !--error 999 setenv: Wrong type for input argument #2: A string expected. at line 6 of function dlwSetEnvCommonVc9Vc10 called by : at line 27 of function dlwSetEnvVc90 called by : at line 24 of function dlwConfigureVcx86 called by : at line 17 of function configure_msvc called by : configure_msvc(); at line 20 of exec file called by : exec("SCI/modules/"+modules(i)+"/etc/"+modules(i)+".start",-1); at line 96 of exec file called by : exec('SCI/etc/scilab.start',-1);; Please help. Thanks, Berns B. -------------- next part -------------- An HTML attachment was scrubbed... URL: From frederic.jourdin at shom.fr Thu Feb 10 15:21:02 2011 From: frederic.jourdin at shom.fr (Frederic Jourdin) Date: Thu, 10 Feb 2011 15:21:02 +0100 Subject: [scilab-Users] FW: Transpose matrix In-Reply-To: <9CC4EC2066905D4396812908BA2B89E109D57C@mlmxmail.malam.iai.co.il> References: <9CC4EC2066905D4396812908BA2B89E109D57C@mlmxmail.malam.iai.co.il> Message-ID: <4D53F44E.1070605@shom.fr> Hi, I don't see any trouble with that size, even with a complex matrix. How do you create your matrix ? Fred Solomon Julia a ?crit : > > Hi > > I have a problen and need some help. > > I've got a matrix of floating point numbers of size: 1000. 21.' and > when I try to get the transpose of it I receive the error : too many > variables. > > size(a)= 1000. 21. > > m=a' > > !-error 18 > > ! Too many variables > > Thank you for your help > > Julia > From herve.bellot at cemagref.fr Thu Feb 10 16:26:21 2011 From: herve.bellot at cemagref.fr (=?iso-8859-1?Q?Bellot_Herv=E9?=) Date: Thu, 10 Feb 2011 16:26:21 +0100 Subject: Open just one part of txt file Message-ID: <3CB901080554B04881D30F111F62D930096CC9@nadia.grenoble.cemagref.fr> Hi I have a too big txt data file and i would like to open it piece by piece. I generaly use mgetl function. I can open the first piece of X lines (mgetl('filename.txt',x)) but i can't open the second piece from X to 2X lines.how can i do that? I think i will have the same problem whith the result file. I search a solution for recording the result step by step in a file. Thank for your help Herv? From Mike at Page-One.Waitrose.com Thu Feb 10 17:03:23 2011 From: Mike at Page-One.Waitrose.com (Mike Page) Date: Thu, 10 Feb 2011 16:03:23 -0000 Subject: [scilab-Users] Open just one part of txt file In-Reply-To: <3CB901080554B04881D30F111F62D930096CC9@nadia.grenoble.cemagref.fr> Message-ID: Hi Herve, Have you tried mtell() to save the position where you stopped reading and mseek() to go back to that position later? HTH, Mike. -----Original Message----- From: Bellot Herv? [mailto:herve.bellot at cemagref.fr] Sent: 10 February 2011 15:26 To: users at lists.scilab.org Subject: [scilab-Users] Open just one part of txt file Hi I have a too big txt data file and i would like to open it piece by piece. I generaly use mgetl function. I can open the first piece of X lines (mgetl('filename.txt',x)) but i can't open the second piece from X to 2X lines.how can i do that? I think i will have the same problem whith the result file. I search a solution for recording the result step by step in a file. Thank for your help Herv? No virus found in this incoming message. Checked by AVG - www.avg.com Version: 9.0.872 / Virus Database: 271.1.1/3432 - Release Date: 02/09/11 07:34:00 From jan.mike.hollis at verizon.net Fri Feb 11 00:05:34 2011 From: jan.mike.hollis at verizon.net (Jan M. Hollis) Date: Thu, 10 Feb 2011 17:05:34 -0600 (CST) Subject: HP Notebook, Intel (R) HD Graphics, and driver 8.15.10.2279 Message-ID: <1205145415.1606831.1297379134285.JavaMail.root@vznit170060> Hi, I have an HP notebook (dm3-3012nr) with Intel (R) HD Graphics running 64-bit Windows 7. For this computer, HP recommends and only knows about graphics driver 8.15.10.2141 Rev A. Windows 7 Update over-writes this driver with 8.15.10.2202 -- which apparently was written by IBM for its ThinkPads which use Intel (R) HD Graphics. I currently have 8.15.10.2202 on my system and it will not let SciLab plot. The latest Intel generic driver is 8.15.10.2279 -- Has anyone with an off-the-shelf HP Notebook with Intel (R) HD Graphics successfully installed 8.15.10.2279? If so, does Scilab plot? Cheers, Jan M. Hollis No man knows how bad he is until he has tried very hard to be good. -- C.S. Lewis in Mere Christianity -- From antoine.monmayrant at laas.fr Fri Feb 11 08:35:13 2011 From: antoine.monmayrant at laas.fr (Antoine Monmayrant) Date: Fri, 11 Feb 2011 08:35:13 +0100 Subject: Plotting to file wihtout graphical window Message-ID: <4D54E6B1.8000809@laas.fr> Hi, This is a question I have concerning the way the way Scilab is handling graphics and how it will handle them in the future (6.0). At the moment, to export a plot to a *.png or *.pdf file, you need first to plot it to a graphic window and then export it (xs2png, xs2pdf, ...). Is there any plan for 6.0 to plot directly to a file --like what gnuplot and octave are doing-- ? As an example, I have some routine to crunch/interpret/plot massive amount of data and turn them in a sequence of images and then into a movie. While I run this routine, my computer is unusable as I have graphics windows constantly flashing and stealing mouse focus. I also have access to some powerful workstations where I don't have a X server: I can't get any plot file on these... Any of you know a workaround for creating plot to file? Antoine From stephane.mottelet at utc.fr Fri Feb 11 08:45:08 2011 From: stephane.mottelet at utc.fr (=?ISO-8859-1?Q?St=E9phane_Mottelet?=) Date: Fri, 11 Feb 2011 08:45:08 +0100 Subject: [scilab-Users] Plotting to file wihtout graphical window In-Reply-To: <4D54E6B1.8000809@laas.fr> References: <4D54E6B1.8000809@laas.fr> Message-ID: <4D54E904.9000200@utc.fr> Le 11/02/2011 08:35, Antoine Monmayrant a ?crit : > Hi, > > > This is a question I have concerning the way the way Scilab is > handling graphics and how it will handle them in the future (6.0). > At the moment, to export a plot to a *.png or *.pdf file, you need > first to plot it to a graphic window and then export it (xs2png, > xs2pdf, ...). > Is there any plan for 6.0 to plot directly to a file --like what > gnuplot and octave are doing-- ? > As an example, I have some routine to crunch/interpret/plot massive > amount of data and turn them in a sequence of images and then into a > movie. > While I run this routine, my computer is unusable as I have graphics > windows constantly flashing and stealing mouse focus. > I also have access to some powerful workstations where I don't have a > X server: I can't get any plot file on these... > Any of you know a workaround for creating plot to file? > > Antoine Hi, I am also interested... Since 5.0 we have lost this "batch plotting" feature ! S. From antoine.monmayrant at laas.fr Fri Feb 11 09:11:29 2011 From: antoine.monmayrant at laas.fr (Antoine Monmayrant) Date: Fri, 11 Feb 2011 09:11:29 +0100 Subject: [scilab-Users] Plotting to file wihtout graphical window In-Reply-To: <4D54E904.9000200@utc.fr> References: <4D54E6B1.8000809@laas.fr> <4D54E904.9000200@utc.fr> Message-ID: <4D54EF31.6030603@laas.fr> Le 11/02/2011 08:45, St?phane Mottelet a ?crit : > Le 11/02/2011 08:35, Antoine Monmayrant a ?crit : >> Hi, >> >> >> This is a question I have concerning the way the way Scilab is >> handling graphics and how it will handle them in the future (6.0). >> At the moment, to export a plot to a *.png or *.pdf file, you need >> first to plot it to a graphic window and then export it (xs2png, >> xs2pdf, ...). >> Is there any plan for 6.0 to plot directly to a file --like what >> gnuplot and octave are doing-- ? >> As an example, I have some routine to crunch/interpret/plot massive >> amount of data and turn them in a sequence of images and then into a >> movie. >> While I run this routine, my computer is unusable as I have graphics >> windows constantly flashing and stealing mouse focus. >> I also have access to some powerful workstations where I don't have a >> X server: I can't get any plot file on these... >> Any of you know a workaround for creating plot to file? >> >> Antoine > Hi, > > I am also interested... Since 5.0 we have lost this "batch plotting" > feature ! > > S. I remember I found a way to plot using python from within scilab somewhere on the web but I can't find it again. It could be a workaround and I think matplotlib can plot directly to file... Antoine From martin.calmon at epfl.ch Fri Feb 11 09:42:01 2011 From: martin.calmon at epfl.ch (Calmon Martin) Date: Fri, 11 Feb 2011 08:42:01 +0000 Subject: [scilab-Users] Plotting to file wihtout graphical window In-Reply-To: <4D54EF31.6030603@laas.fr> References: <4D54E6B1.8000809@laas.fr> <4D54E904.9000200@utc.fr>,<4D54EF31.6030603@laas.fr> Message-ID: Hi, Figures can be used in buffer mode... It's ruled by the pixmap property: i.e.for a figure f, the figure is only in memory if f.pixmap="on". In this way, batch can be run in the background without interfering with other work. And if you need to check what is on the figure: show_pixmap(). Bests, Martin CALMON EPFL/STI/IGM/LMH Assistant +41 (0)21 69 32502 +41 (0)78 65 75020 ________________________________________ De : Antoine Monmayrant [antoine.monmayrant at laas.fr] Date d'envoi : vendredi 11 f?vrier 2011 09:11 ? : users at lists.scilab.org Objet : Re: [scilab-Users] Plotting to file wihtout graphical window Le 11/02/2011 08:45, St?phane Mottelet a ?crit : > Le 11/02/2011 08:35, Antoine Monmayrant a ?crit : >> Hi, >> >> >> This is a question I have concerning the way the way Scilab is >> handling graphics and how it will handle them in the future (6.0). >> At the moment, to export a plot to a *.png or *.pdf file, you need >> first to plot it to a graphic window and then export it (xs2png, >> xs2pdf, ...). >> Is there any plan for 6.0 to plot directly to a file --like what >> gnuplot and octave are doing-- ? >> As an example, I have some routine to crunch/interpret/plot massive >> amount of data and turn them in a sequence of images and then into a >> movie. >> While I run this routine, my computer is unusable as I have graphics >> windows constantly flashing and stealing mouse focus. >> I also have access to some powerful workstations where I don't have a >> X server: I can't get any plot file on these... >> Any of you know a workaround for creating plot to file? >> >> Antoine > Hi, > > I am also interested... Since 5.0 we have lost this "batch plotting" > feature ! > > S. I remember I found a way to plot using python from within scilab somewhere on the web but I can't find it again. It could be a workaround and I think matplotlib can plot directly to file... Antoine From antoine.monmayrant at laas.fr Fri Feb 11 11:00:17 2011 From: antoine.monmayrant at laas.fr (Antoine Monmayrant) Date: Fri, 11 Feb 2011 11:00:17 +0100 Subject: [scilab-Users] RE : [scilab-Users] Plotting to file wihtout graphical window In-Reply-To: References: <4D54E6B1.8000809@laas.fr> <4D54E904.9000200@utc.fr>,<4D54EF31.6030603@laas.fr> Message-ID: <4D5508B1.1090100@laas.fr> Le 11/02/2011 09:42, Calmon Martin a ?crit : > Hi, > > Figures can be used in buffer mode... It's ruled by the pixmap property: i.e.for a figure f, the figure is only in memory if f.pixmap="on". In this way, batch can be run in the background without interfering with other work. > > And if you need to check what is on the figure: show_pixmap(). OK, thanks for this information, I didn't know that. But I think it only solves part of the problem as I still need to create at least one graphic window. Using pixmap='on', I can easily reuse the same window for all my plots and I think I can get things faster. But I cannot do batch plotting on a station without X server... Thanks anyway, Antoine > Bests, > > Martin CALMON > EPFL/STI/IGM/LMH > Assistant > +41 (0)21 69 32502 > +41 (0)78 65 75020 > ________________________________________ > De : Antoine Monmayrant [antoine.monmayrant at laas.fr] > Date d'envoi : vendredi 11 f?vrier 2011 09:11 > ? : users at lists.scilab.org > Objet : Re: [scilab-Users] Plotting to file wihtout graphical window > > Le 11/02/2011 08:45, St?phane Mottelet a ?crit : >> Le 11/02/2011 08:35, Antoine Monmayrant a ?crit : >>> Hi, >>> >>> >>> This is a question I have concerning the way the way Scilab is >>> handling graphics and how it will handle them in the future (6.0). >>> At the moment, to export a plot to a *.png or *.pdf file, you need >>> first to plot it to a graphic window and then export it (xs2png, >>> xs2pdf, ...). >>> Is there any plan for 6.0 to plot directly to a file --like what >>> gnuplot and octave are doing-- ? >>> As an example, I have some routine to crunch/interpret/plot massive >>> amount of data and turn them in a sequence of images and then into a >>> movie. >>> While I run this routine, my computer is unusable as I have graphics >>> windows constantly flashing and stealing mouse focus. >>> I also have access to some powerful workstations where I don't have a >>> X server: I can't get any plot file on these... >>> Any of you know a workaround for creating plot to file? >>> >>> Antoine >> Hi, >> >> I am also interested... Since 5.0 we have lost this "batch plotting" >> feature ! >> >> S. > I remember I found a way to plot using python from within scilab > somewhere on the web but I can't find it again. > It could be a workaround and I think matplotlib can plot directly to file... > > Antoine From sylvestre.ledru at scilab.org Fri Feb 11 11:04:42 2011 From: sylvestre.ledru at scilab.org (Sylvestre Ledru) Date: Fri, 11 Feb 2011 11:04:42 +0100 Subject: [scilab-Users] RE : [scilab-Users] Plotting to file wihtout graphical window In-Reply-To: <4D5508B1.1090100@laas.fr> References: <4D54E6B1.8000809@laas.fr> <4D54E904.9000200@utc.fr> ,<4D54EF31.6030603@laas.fr> <4D5508B1.1090100@laas.fr> Message-ID: <1297418682.6857.2470.camel@korcula.inria.fr> Le vendredi 11 f?vrier 2011 ? 11:00 +0100, Antoine Monmayrant a ?crit : > Le 11/02/2011 09:42, Calmon Martin a ?crit : > > Hi, > > > > Figures can be used in buffer mode... It's ruled by the pixmap property: i.e.for a figure f, the figure is only in memory if f.pixmap="on". In this way, batch can be run in the background without interfering with other work. > > > > And if you need to check what is on the figure: show_pixmap(). > OK, thanks for this information, I didn't know that. > But I think it only solves part of the problem as I still need to create > at least one graphic window. > Using pixmap='on', I can easily reuse the same window for all my plots > and I think I can get things faster. > But I cannot do batch plotting on a station without X server... Actually, you can with Xvfb http://en.wikipedia.org/wiki/Xvfb which is packaged in almost (all ?) Linux distributions. Sylvestre From antonelli1970 at gmail.com Fri Feb 11 11:07:22 2011 From: antonelli1970 at gmail.com (Gianluca Antonelli) Date: Fri, 11 Feb 2011 11:07:22 +0100 Subject: optim suggestion Message-ID: <4D550A5A.8020707@gmail.com> Hi, I would like to ask for advice to use the "optim" command for the following optimization problem. I need to find x that minimize PHI*x = b given some bound constraints on x, all its values are positive and less than 1, some are null by definition. The matrix PHI containts all 1 and zero except for the last row that exhibits numbers of magnitude 1000 The vector b contains all numbers of magnitude 1 in correspondance to the 1-0 of PHI except for the last row that contains a number of magnitude 100000 I use the following code: -------------- [f_opt, m_sol] = optim(costf,'b',m_min,m_max,.4*ones(m*n,1),imp=2); function [f, g, ind] = costf(x, ind) alpha = 0*1e-10; W = eye(n*m,n*m); Q = eye(m+1,m+1); Q(m+1,m+1) = 1e-6; f = (PHI*x - b)'*Q*(PHI*x - b) + alpha*x'*W*x; g = 2*x'*(PHI'*Q*PHI+alpha*W)-2*b'*Q*PHI; endfunction --------- but I always receive error messages such as "linear search fail" or similar. Two questions: a) any suggestion on the syntax/algorithm/etc. b) the fact that some of the unknown are fixed with lower bound equal to upper bound is a problem for the code? thanks in advance, g. From guylaine.collewet at cemagref.fr Fri Feb 11 17:22:27 2011 From: guylaine.collewet at cemagref.fr (Collewet Guylaine) Date: Fri, 11 Feb 2011 17:22:27 +0100 Subject: problem with free function Message-ID: Hello, I have a problem with the "free" function which makes scilab crash I wrote two functions "sci_imdilate" and "image_dilate" sci_imdilate is the interface between scilab and the function image_dilate the memory pointed by l_dilated_image (see the code below) is allocated by image_dilate and I'd like to free it in sci_imdilate however, a call to free makes scilab crash If I remove the "free", the whole function works properly I cannot undersand why Does someone see my mistake ? I am working with scilab 5.2.2 32 bits on windows 7 (64 bits machine) Regards Guylaine Collewet ///////////////////////// // function sci_imdilate /////////////////////// double *l_dilated_image; .../... dilate_image(&l_image[0], m_image, n_image, &l_kernel[0], m_kernel, n_kernel, &l_dilated_image, &l_mask[0], &ierr); createMatrixOfDouble(pvApiCtx, 4, m_image, n_image, l_dilated_image); if(l_dilated_image) { free(l_dilated_image); } ///////////////////////// // function dilate_image ///////////////////////// int dilate_image(double *image, int width, int height, double *kernel, int kernel_width, int kernel_height, double **dilated_image, double *mask, int *ierr) { .../... if (!(*dilated_image = (double*)calloc(1, sizeof(double)*width*height))) { *ierr=1; return(-1); } .../... } -------------- next part -------------- An HTML attachment was scrubbed... URL: From jan.mike.hollis at verizon.net Sun Feb 13 18:07:12 2011 From: jan.mike.hollis at verizon.net (Jan M. Hollis) Date: Sun, 13 Feb 2011 11:07:12 -0600 (CST) Subject: Scilab 5.3.0 Plots with Intel (R) HD Graphics & driver 8.15.10.2279 Message-ID: <983134335.55809.1297616832671.JavaMail.root@vznit170060> Hi, I have an HP notebook (dm3-3012nr) with integrated Intel (R) HD Graphics running 64-bit Windows 7. For this computer, HP recommends and only knows about graphics driver 8.15.10.2141 Rev A. Windows 7 Update over-writes this driver with 8.15.10.2202 -- which apparently was written by IBM for its ThinkPads which use Intel (R) HD Graphics. Both of these two graphics drivers crash Scilab 5.3.0 when a plot is attempted. While HP does not recommend the latest generic Intel driver 8.15.10.2279, I installed this driver anyway and Scilab now plots. Cheers, Jan M. Hollis No man knows how bad he is until he has tried very hard to be good. -- C.S. Lewis in Mere Christianity -- From allan.cornet at scilab.org Mon Feb 14 08:23:49 2011 From: allan.cornet at scilab.org (Allan CORNET) Date: Mon, 14 Feb 2011 08:23:49 +0100 Subject: [scilab-Users] problem with free function In-Reply-To: References: Message-ID: <001d01cbcc18$1fe76190$5fb624b0$@scilab.org> Hi, You can debug your code with Visual studio : http://wiki.scilab.org/How_to_debug_an_external_source_code_linked_to_scilab _with_Visual_Studio Allan De : Collewet Guylaine [mailto:guylaine.collewet at cemagref.fr] Envoy? : vendredi 11 f?vrier 2011 17:22 ? : users at lists.scilab.org Objet : [scilab-Users] problem with free function Hello, I have a problem with the ?free? function which makes scilab crash I wrote two functions ?sci_imdilate? and ?image_dilate? sci_imdilate is the interface between scilab and the function image_dilate the memory pointed by l_dilated_image (see the code below) is allocated by image_dilate and I?d like to free it in sci_imdilate however, a call to free makes scilab crash If I remove the ?free?, the whole function works properly I cannot undersand why Does someone see my mistake ? I am working with scilab 5.2.2 32 bits on windows 7 (64 bits machine) Regards Guylaine Collewet ///////////////////////// // function sci_imdilate /////////////////////// double *l_dilated_image; / dilate_image(&l_image[0], m_image, n_image, &l_kernel[0], m_kernel, n_kernel, &l_dilated_image, &l_mask[0], &ierr); createMatrixOfDouble(pvApiCtx, 4, m_image, n_image, l_dilated_image); if(l_dilated_image) { free(l_dilated_image); } ///////////////////////// // function dilate_image ///////////////////////// int dilate_image(double *image, int width, int height, double *kernel, int kernel_width, int kernel_height, double **dilated_image, double *mask, int *ierr) { / if (!(*dilated_image = (double*)calloc(1, sizeof(double)*width*height))) { *ierr=1; return(-1); } / } -------------- next part -------------- An HTML attachment was scrubbed... URL: From guylaine.collewet at cemagref.fr Mon Feb 14 12:12:39 2011 From: guylaine.collewet at cemagref.fr (Collewet Guylaine) Date: Mon, 14 Feb 2011 12:12:39 +0100 Subject: [scilab-Users] problem with free function In-Reply-To: <001d01cbcc18$1fe76190$5fb624b0$@scilab.org> References: <001d01cbcc18$1fe76190$5fb624b0$@scilab.org> Message-ID: Hi, Thank you for your help The debugging mode allowed me to fix the problem May be it can be useful for someone else : the calloc was called in a function in one dll (the dll corresponding to the "c" files) and the free was called by a function belonging to another dll (the dll corresponding to the "sci_gateway" files). This led to an error in the heap of the pointer detected by _CtlIsValidHeadPointer If the calloc and free are called in the same function, scilab does not crash anymore Guylaine De : Allan CORNET [mailto:allan.cornet at scilab.org] Envoy? : lundi 14 f?vrier 2011 08:24 ? : users at lists.scilab.org Objet : RE: [scilab-Users] problem with free function Hi, You can debug your code with Visual studio : http://wiki.scilab.org/How_to_debug_an_external_source_code_linked_to_scilab_with_Visual_Studio Allan De : Collewet Guylaine [mailto:guylaine.collewet at cemagref.fr] Envoy? : vendredi 11 f?vrier 2011 17:22 ? : users at lists.scilab.org Objet : [scilab-Users] problem with free function Hello, I have a problem with the "free" function which makes scilab crash I wrote two functions "sci_imdilate" and "image_dilate" sci_imdilate is the interface between scilab and the function image_dilate the memory pointed by l_dilated_image (see the code below) is allocated by image_dilate and I'd like to free it in sci_imdilate however, a call to free makes scilab crash If I remove the "free", the whole function works properly I cannot undersand why Does someone see my mistake ? I am working with scilab 5.2.2 32 bits on windows 7 (64 bits machine) Regards Guylaine Collewet ///////////////////////// // function sci_imdilate /////////////////////// double *l_dilated_image; .../... dilate_image(&l_image[0], m_image, n_image, &l_kernel[0], m_kernel, n_kernel, &l_dilated_image, &l_mask[0], &ierr); createMatrixOfDouble(pvApiCtx, 4, m_image, n_image, l_dilated_image); if(l_dilated_image) { free(l_dilated_image); } ///////////////////////// // function dilate_image ///////////////////////// int dilate_image(double *image, int width, int height, double *kernel, int kernel_width, int kernel_height, double **dilated_image, double *mask, int *ierr) { .../... if (!(*dilated_image = (double*)calloc(1, sizeof(double)*width*height))) { *ierr=1; return(-1); } .../... } -------------- next part -------------- An HTML attachment was scrubbed... URL: From jsolomon at iai.co.il Mon Feb 14 15:06:59 2011 From: jsolomon at iai.co.il (Solomon Julia) Date: Mon, 14 Feb 2011 16:06:59 +0200 Subject: Transpose matrix Message-ID: <9CC4EC2066905D4396812908BA2B89E109D57D@mlmxmail.malam.iai.co.il> Hello Frederic First of all excuse me for replying you so lately after your response. There is no problem with the size. It's really a cell and not a matrix. It includes not only numbers but also strings. I wrote some lines by myself to transpose the cell -it's simple- but it takes a lot of time for the simple script to execute. In fact I write this cell by running random numbers and the appropriate strings I need in the first column, so in the routine where I do that ,I simply write it transposed already so I found the solution I need. Thank you again for your answer Julia *************************************************************************************** Please consider the environment before printing this email The information contained in this communication is proprietary to Israel Aerospace Industries Ltd. and/or third parties, may contain confidential or privileged information, and is intended only for the use of the intended addressee thereof. If you are not the intended addressee, please be aware that any use, disclosure, distribution and/or copying of this communication is strictly prohibited. If you receive this communication in error, please notify the sender immediately and delete it from your computer. Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: From frederic.jourdin at shom.fr Mon Feb 14 15:36:07 2011 From: frederic.jourdin at shom.fr (Frederic Jourdin) Date: Mon, 14 Feb 2011 15:36:07 +0100 Subject: [scilab-Users] Re: Re: Transpose matrix In-Reply-To: <9CC4EC2066905D4396812908BA2B89E109D57D@mlmxmail.malam.iai.co.il> References: <9CC4EC2066905D4396812908BA2B89E109D57D@mlmxmail.malam.iai.co.il> Message-ID: <4D593DD7.6040606@shom.fr> Solomon Julia a ?crit : > > Hello Frederic > > First of all excuse me for replying you so lately after your response. > There is no problem with the size. > > It's really a cell and not a matrix. > > It includes not only numbers but also strings. I wrote some lines by > myself to transpose the cell -it's simple- but it takes a lot of time > for the simple script to execute. > > In fact I write this cell by running random numbers and the > appropriate strings I need in the first column, so in the routine > where I do that ,I simply write it transposed already so I found the > solution I need. > > Thank you again for your answer > > Julia > > > *************************************************************************************** > > *Please consider the environment before printing this email* > > The information contained in this communication is proprietary to > Israel Aerospace Industries Ltd. and/or third parties, may contain > confidential or privileged information, and is intended only for the > use of the intended addressee thereof. If you are not the intended > addressee, please be aware that any use, disclosure, distribution > and/or copying of this communication is strictly prohibited. If you > receive this communication in error, please notify the sender > immediately and delete it from your computer. Thank you. > OK thanks for returning to me. Fred From paul.carrico at esterline.com Mon Feb 14 17:05:59 2011 From: paul.carrico at esterline.com (Carrico, Paul) Date: Mon, 14 Feb 2011 17:05:59 +0100 Subject: OPtim function Message-ID: <55A12CBC06A8C9459DCE0BBEF8122FDC0498B124@exchsrv.AUXITROL1> All, What are the default values for epsg and epsf for the OPTIM fonction ? I've a look in the documentation but except if I'm mistaken the information's is not there. Thanks Paul -------------------------------------------------------------------------------- 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. -------------- next part -------------- An HTML attachment was scrubbed... URL: From sam at cctech.co.in Tue Feb 15 04:15:54 2011 From: sam at cctech.co.in (Sam Mathew) Date: Tue, 15 Feb 2011 08:45:54 +0530 Subject: [scilab-Users] CFD through Scilab In-Reply-To: <4D4A5AAA.1020909@scilab.org> References: <4D4A5AAA.1020909@scilab.org> Message-ID: Hello everyone, Sorry for thanking you all so late but better late than never. Thank you very much for all your inputs. What I conclude nevertheless is that within SCILAB, the tools available for solving the governing equations of flow and heat transfer are primarily solved using the Finite Element numerical scheme. I've understood that conservation is sometimes a problem for the FEM based solution of the flow equations and therefore, the Finite Volume Method would be a more appropriate option, if that can be included within SCILAB. But I understand that with so many already existing options available through OpenFOAM and others, it might be difficult to justify putting in efforts in this regard. The only motivation would be the platform independence of SCILAB compared to most of the LINUX based open source solutions for solving CFD problems. Best wishes, On 3 February 2011 13:05, Micha?l Baudin wrote: > Hi, > > Did you see the collection of finite elements tools for Scilab that we > presented on the wiki : > > http://wiki.scilab.org/Finite_Elements_in_Scilab > > Best regards, > > Micha?l Baudin > > Le 02/02/2011 08:02, Sam Mathew a ?crit : > > Hi everyone, > > Has anyone among you come across any module for simple flow simulations > (Computational Fluid Dynamics) coupled with Structural analysis, i.e., Fluid > Structure Interaction. > > Surely there are some open source solutions for CFD but they are often > limited to Linux platforms. I was wondering if there is any way SCILAB has > been employed for this, especially that SCILAB is platform independent! > > Best wishes, > > -- > *Sam Mathew* | Asst. Manager, CFD > *Centre for Computational Technologies - CCTech** > * > 1 Akshay Residancy | 50 Anand Park | Aundh | Pune | 411007 | India > Ph: +91 20 40098381/82 | M: +91-9975960244 | www.cctech.co.in* > * > *CCTech ? "Simulation is The Future"* > * > * > * > * > ** > > > > -- > Micha?l Baudin > Ing?nieur de d?veloppementmichael.baudin at scilab.org > ------------------------- > Consortium Scilab - Digiteo > Domaine de Voluceau - Rocquencourt > B.P. 105 - 78153 Le Chesnay Cedex > Tel. : 01 39 63 56 87 - Fax : 01 39 63 55 94 > > > -- *Sam Mathew* | Asst. Manager, CFD *Centre for Computational Technologies - CCTech** * 1 Akshay Residancy | 50 Anand Park | Aundh | Pune | 411007 | India Ph: +91 20 40098381/82 | M: +91-9975960244 | www.cctech.co.in* * *CCTech ? "Simulation is The Future"* * * * * ** -------------- next part -------------- An HTML attachment was scrubbed... URL: From rakhiwarriar at yahoo.co.in Fri Feb 18 06:39:57 2011 From: rakhiwarriar at yahoo.co.in (Rakhi Warrier) Date: Fri, 18 Feb 2011 11:09:57 +0530 (IST) Subject: HART Toolbox - Help on COMEDI blocks Message-ID: <767824.5948.qm@web137417.mail.in.yahoo.com> Hello We plan to set up a lab for? DAQ cards at IIT Bombay based on Scilab. The toolbox used is HART (Hardware access in real time- Ver - 0.4.3), on Scilab 5.3.0 using Xcos. COMEDI is installed. OS is Ubuntu 9.04.?Currently working on USB-DUX Fast DAQ boards.?We use the COMEDI A/D block of the HART toolbox in Xcos.? ?The analog input to the Channel 0 is about 1V. The device is?recognized?as /dev/comedi0.? Please find attached the xcos screenshot. The output of the COMEDI A/D block is input to a file. The data collected is also attached. We get values ranging from -0.1 to 2.25. Unable to understand this format. Could you help us out? Regards Rakhi Virtual Labs IIT Bombay -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Screenshot-Xcos.png Type: image/png Size: 25838 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: data Type: application/octet-stream Size: 1100 bytes Desc: not available URL: From d.picard at opgc.univ-bpclermont.fr Fri Feb 18 11:07:00 2011 From: d.picard at opgc.univ-bpclermont.fr (David PICARD) Date: Fri, 18 Feb 2011 11:07:00 +0100 Subject: plotting time series Message-ID: <4D5E44C4.1040302@opgc.univ-bpclermont.fr> I finally managed to plot time series with date and time on the x axis spanned on 2 lines. As it took me a lot more time than I expected to gather all the necessary help, I felt the need to share it. The wiki people may want to make a page on this topic. Anyway, here is my script, a sample data file, and an image of the plot. The "Latex trick" to split the label string in 2 lines was once posted by Antoine Monmayrant - rendons ? C?sar ce qui est ? C?sar. And there is no need to install whatever extra package. The columns in the data file are : date and time (unix time stamp, i.e. seconds since 1970-01-01 00:00:00), humidity, temperature of some sensor. David. -------------- next part -------------- A non-text attachment was scrubbed... Name: plotTimeSeries.png Type: image/png Size: 15450 bytes Desc: not available URL: -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: plotTimeSeries.sce URL: -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: sample.txt URL: From ytsoumas at gmail.com Fri Feb 18 14:53:20 2011 From: ytsoumas at gmail.com (Yannis Tsoumas) Date: Fri, 18 Feb 2011 14:53:20 +0100 Subject: Scilab interface to SIMULINK Message-ID: Dear Scilab users, I have the following question: is there any interface in Scilab for interaction with SIMULINK? I mean run SIMULINK through Scilab, control the excecution of SIMULINK, exchange of data and variables between them etc. Thanks! Yannis T. -------------- next part -------------- An HTML attachment was scrubbed... URL: From b.kunkel at glr-gruppe.de Sat Feb 19 12:22:10 2011 From: b.kunkel at glr-gruppe.de (Bernhard Kunkel) Date: Sat, 19 Feb 2011 12:22:10 +0100 Subject: scilab-5.3.0 Message-ID: <1AB91012F8E84DC782603985A4D70274@E6510BK> Hello creators of Scilab, for some simulations of hydraulic systems it would be nice to have a flow meter component e.g. like in ScicosLab 4.4. Is that possible or planed in future or is there another way to measure flow ? Please help me. Best regards B. Kunkel -------------- next part -------------- An HTML attachment was scrubbed... URL: From sylvestre.ledru at scilab.org Sat Feb 19 12:24:46 2011 From: sylvestre.ledru at scilab.org (Sylvestre Ledru) Date: Sat, 19 Feb 2011 12:24:46 +0100 Subject: [scilab-Users] scilab-5.3.0 In-Reply-To: <1AB91012F8E84DC782603985A4D70274@E6510BK> References: <1AB91012F8E84DC782603985A4D70274@E6510BK> Message-ID: <1298114686.29607.2700.camel@losinj.inria.fr> Le samedi 19 f?vrier 2011 ? 12:22 +0100, Bernhard Kunkel a ?crit : > Hello creators of Scilab, > > for some simulations of hydraulic systems it would be nice to have > a flow meter component e.g. like in ScicosLab 4.4. > Is that possible or planed in future or is there another way to > measure flow ? > Please help me. Please report a bug here: http://bugzilla.scilab.org/ with the severity "Wishlist" to keep track of the feature requests. Thanks S From jlvolta at internetpersonal.com.py Sat Feb 19 15:34:17 2011 From: jlvolta at internetpersonal.com.py (=?iso-8859-1?Q?Jos=E9_Luis_Volta_Grau?=) Date: Sat, 19 Feb 2011 11:34:17 -0300 Subject: Error opening Scinotes in Linux Message-ID: <3A13E750AFDE497284EC9C250B4F4D43@usera1d930417d> Hi all, I'am using Scilab 5.3.0 and I've got an error when I try to open Scinotes on Ubuntu Linux 10.04 LTS Lucid Lynx: --> editor() error 999 java.lang.reflect.InvocationTargetException while executing a callback Using 5.2.2 in the same machine editor() work correctly. Some ideas of what's wrong ? I do not know much of java language. J.L.V. -------------- next part -------------- An HTML attachment was scrubbed... URL: From calixte at contrib.scilab.org Sat Feb 19 15:42:04 2011 From: calixte at contrib.scilab.org (Calixte Denizet) Date: Sat, 19 Feb 2011 15:42:04 +0100 Subject: [scilab-Users] Error opening Scinotes in Linux In-Reply-To: <3A13E750AFDE497284EC9C250B4F4D43@usera1d930417d> References: <3A13E750AFDE497284EC9C250B4F4D43@usera1d930417d> Message-ID: <1298126524.24062.70.camel@Calixte-Dell> Le samedi 19 f?vrier 2011 ? 11:34 -0300, Jos? Luis Volta Grau a ?crit : > Hi all, Hi Jose, Could you start scilab from a terminal and editor() ? What's the exception printed in the terminal ? Calixte > > I'am using Scilab 5.3.0 and I've got an error when I try to open > Scinotes on Ubuntu Linux 10.04 LTS Lucid Lynx: > --> editor() > > error 999 > java.lang.reflect.InvocationTargetException > while executing a callback > > Using 5.2.2 in the same machine editor() work correctly. > > Some ideas of what's wrong ? I do not know much of java language. > > J.L.V. From jlvolta at fibertel.com.py Sat Feb 19 18:04:47 2011 From: jlvolta at fibertel.com.py (Jose Luis) Date: Sat, 19 Feb 2011 14:04:47 -0300 Subject: Error opening Scinotes in Linux Message-ID: <1298135087.1529.7.camel@jose-desktop> Hi, Calixte: I ran Scilab and editor() from a terminal. This is the (long) message I've received: (process:1502): Gtk-WARNING **: Locale not supported by C library. Using the fallback 'C' locale. java.io.FileNotFoundException: /home/jose/.Scilab/scilab-5.3.0/scinotesConfiguration.xml (Permission denied) at java.io.FileOutputStream.open(Native Method) at java.io.FileOutputStream.(Unknown Source) at java.io.FileOutputStream.(Unknown Source) at org.scilab.modules.scinotes.utils.ConfigSciNotesManager.copyFile(Unknown Source) at org.scilab.modules.scinotes.utils.ConfigSciNotesManager.createUserCopy(Unknown Source) at org.scilab.modules.scinotes.SciNotes.createEditor(Unknown Source) at org.scilab.modules.scinotes.SciNotes.launchSciNotes(Unknown Source) at org.scilab.modules.scinotes.SciNotes$2.run(Unknown Source) at java.awt.event.InvocationEvent.dispatch(Unknown Source) at java.awt.EventQueue.dispatchEvent(Unknown Source) at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.run(Unknown Source) java.io.FileNotFoundException: /home/jose/.Scilab/scilab-5.3.0/keysConfiguration.xml (Permission denied) at java.io.FileOutputStream.open(Native Method) at java.io.FileOutputStream.(Unknown Source) at java.io.FileOutputStream.(Unknown Source) at org.scilab.modules.scinotes.utils.ConfigSciNotesManager.copyFile(Unknown Source) at org.scilab.modules.scinotes.utils.ConfigSciNotesManager.createUserCopy(Unknown Source) at org.scilab.modules.scinotes.SciNotes.createEditor(Unknown Source) at org.scilab.modules.scinotes.SciNotes.launchSciNotes(Unknown Source) at org.scilab.modules.scinotes.SciNotes$2.run(Unknown Source) at java.awt.event.InvocationEvent.dispatch(Unknown Source) at java.awt.EventQueue.dispatchEvent(Unknown Source) at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.run(Unknown Source) Could not load file: /home/jose/.Scilab/scilab-5.3.0/scinotesConfiguration.xml java.io.FileNotFoundException: /home/jose/.Scilab/scilab-5.3.0/keysConfiguration.xml (No such file or directory) at java.io.FileInputStream.open(Native Method) at java.io.FileInputStream.(Unknown Source) at org.scilab.modules.scinotes.utils.ConfigSciNotesManager.readDocument(Unknown Source) at org.scilab.modules.scinotes.utils.ConfigSciNotesManager.readDocument(Unknown Source) at org.scilab.modules.scinotes.utils.ConfigSciNotesManager.getHorizontalWrap(Unknown Source) at org.scilab.modules.scinotes.SciNotes.(Unknown Source) at org.scilab.modules.scinotes.SciNotes.createEditor(Unknown Source) at org.scilab.modules.scinotes.SciNotes.launchSciNotes(Unknown Source) at org.scilab.modules.scinotes.SciNotes$2.run(Unknown Source) at java.awt.event.InvocationEvent.dispatch(Unknown Source) at java.awt.EventQueue.dispatchEvent(Unknown Source) at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.run(Unknown Source) java.lang.reflect.InvocationTargetException at java.awt.EventQueue.invokeAndWait(Unknown Source) at javax.swing.SwingUtilities.invokeAndWait(Unknown Source) at org.scilab.modules.scinotes.SciNotes.scinotes(Unknown Source) Caused by: java.lang.NullPointerException at org.scilab.modules.scinotes.utils.ConfigSciNotesManager.getHorizontalWrap(Unknown Source) at org.scilab.modules.scinotes.SciNotes.(Unknown Source) at org.scilab.modules.scinotes.SciNotes.createEditor(Unknown Source) at org.scilab.modules.scinotes.SciNotes.launchSciNotes(Unknown Source) at org.scilab.modules.scinotes.SciNotes$2.run(Unknown Source) at java.awt.event.InvocationEvent.dispatch(Unknown Source) at java.awt.EventQueue.dispatchEvent(Unknown Source) at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.run(Unknown Source) J.L.V. From jlvolta at fibertel.com.py Sat Feb 19 19:31:49 2011 From: jlvolta at fibertel.com.py (Jose Luis) Date: Sat, 19 Feb 2011 15:31:49 -0300 Subject: Error openings Scinotes in Linux Message-ID: <1298140309.1529.16.camel@jose-desktop> Hi, Calixte: I ran Scilab and editor() from a terminal. This is the (long) message I've received: (process:1502): Gtk-WARNING **: Locale not supported by C library. Using the fallback 'C' locale. java.io.FileNotFoundException: /home/jose/.Scilab/scilab-5.3.0/scinotesConfiguration.xml (Permission denied) at java.io.FileOutputStream.open(Native Method) at java.io.FileOutputStream.(Unknown Source) at java.io.FileOutputStream.(Unknown Source) at org.scilab.modules.scinotes.utils.ConfigSciNotesManager.copyFile(Unknown Source) at org.scilab.modules.scinotes.utils.ConfigSciNotesManager.createUserCopy(Unknown Source) at org.scilab.modules.scinotes.SciNotes.createEditor(Unknown Source) at org.scilab.modules.scinotes.SciNotes.launchSciNotes(Unknown Source) at org.scilab.modules.scinotes.SciNotes$2.run(Unknown Source) at java.awt.event.InvocationEvent.dispatch(Unknown Source) at java.awt.EventQueue.dispatchEvent(Unknown Source) at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.run(Unknown Source) java.io.FileNotFoundException: /home/jose/.Scilab/scilab-5.3.0/keysConfiguration.xml (Permission denied) at java.io.FileOutputStream.open(Native Method) at java.io.FileOutputStream.(Unknown Source) at java.io.FileOutputStream.(Unknown Source) at org.scilab.modules.scinotes.utils.ConfigSciNotesManager.copyFile(Unknown Source) at org.scilab.modules.scinotes.utils.ConfigSciNotesManager.createUserCopy(Unknown Source) at org.scilab.modules.scinotes.SciNotes.createEditor(Unknown Source) at org.scilab.modules.scinotes.SciNotes.launchSciNotes(Unknown Source) at org.scilab.modules.scinotes.SciNotes$2.run(Unknown Source) at java.awt.event.InvocationEvent.dispatch(Unknown Source) at java.awt.EventQueue.dispatchEvent(Unknown Source) at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.run(Unknown Source) Could not load file: /home/jose/.Scilab/scilab-5.3.0/scinotesConfiguration.xml java.io.FileNotFoundException: /home/jose/.Scilab/scilab-5.3.0/keysConfiguration.xml (No such file or directory) at java.io.FileInputStream.open(Native Method) at java.io.FileInputStream.(Unknown Source) at org.scilab.modules.scinotes.utils.ConfigSciNotesManager.readDocument(Unknown Source) at org.scilab.modules.scinotes.utils.ConfigSciNotesManager.readDocument(Unknown Source) at org.scilab.modules.scinotes.utils.ConfigSciNotesManager.getHorizontalWrap(Unknown Source) at org.scilab.modules.scinotes.SciNotes.(Unknown Source) at org.scilab.modules.scinotes.SciNotes.createEditor(Unknown Source) at org.scilab.modules.scinotes.SciNotes.launchSciNotes(Unknown Source) at org.scilab.modules.scinotes.SciNotes$2.run(Unknown Source) at java.awt.event.InvocationEvent.dispatch(Unknown Source) at java.awt.EventQueue.dispatchEvent(Unknown Source) at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.run(Unknown Source) java.lang.reflect.InvocationTargetException at java.awt.EventQueue.invokeAndWait(Unknown Source) at javax.swing.SwingUtilities.invokeAndWait(Unknown Source) at org.scilab.modules.scinotes.SciNotes.scinotes(Unknown Source) Caused by: java.lang.NullPointerException at org.scilab.modules.scinotes.utils.ConfigSciNotesManager.getHorizontalWrap(Unknown Source) at org.scilab.modules.scinotes.SciNotes.(Unknown Source) at org.scilab.modules.scinotes.SciNotes.createEditor(Unknown Source) at org.scilab.modules.scinotes.SciNotes.launchSciNotes(Unknown Source) at org.scilab.modules.scinotes.SciNotes$2.run(Unknown Source) at java.awt.event.InvocationEvent.dispatch(Unknown Source) at java.awt.EventQueue.dispatchEvent(Unknown Source) at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.run(Unknown Source) J.L.V. From calixte at contrib.scilab.org Sat Feb 19 19:53:33 2011 From: calixte at contrib.scilab.org (Calixte Denizet) Date: Sat, 19 Feb 2011 19:53:33 +0100 Subject: [scilab-Users] Error opening Scinotes in Linux In-Reply-To: <1298135087.1529.7.camel@jose-desktop> References: <1298135087.1529.7.camel@jose-desktop> Message-ID: <1298141613.24062.100.camel@Calixte-Dell> Le samedi 19 f?vrier 2011 ? 14:04 -0300, Jose Luis a ?crit : > Hi, Calixte: > Start scilab and in a terminal type: ls -ld /home/jose/.Scilab && ls -ld /home/jose/.Scilab/scilab-5.3.0 && ps -Af | grep scilab-bin and give me the output. Check with df if you have enough space on your disk. Regards, Calixte > I ran Scilab and editor() from a terminal. This is the (long) message > I've received: > > (process:1502): Gtk-WARNING **: Locale not supported by C library. > Using the fallback 'C' locale. > java.io.FileNotFoundException: /home/jose/.Scilab/scilab-5.3.0/scinotesConfiguration.xml (Permission denied) > at java.io.FileOutputStream.open(Native Method) > at java.io.FileOutputStream.(Unknown Source) > at java.io.FileOutputStream.(Unknown Source) > at > org.scilab.modules.scinotes.utils.ConfigSciNotesManager.copyFile(Unknown > Source) > at > org.scilab.modules.scinotes.utils.ConfigSciNotesManager.createUserCopy(Unknown Source) > at org.scilab.modules.scinotes.SciNotes.createEditor(Unknown Source) > at org.scilab.modules.scinotes.SciNotes.launchSciNotes(Unknown Source) > at org.scilab.modules.scinotes.SciNotes$2.run(Unknown Source) > at java.awt.event.InvocationEvent.dispatch(Unknown Source) > at java.awt.EventQueue.dispatchEvent(Unknown Source) > at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source) > at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source) > at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source) > at java.awt.EventDispatchThread.pumpEvents(Unknown Source) > at java.awt.EventDispatchThread.pumpEvents(Unknown Source) > at java.awt.EventDispatchThread.run(Unknown Source) > java.io.FileNotFoundException: /home/jose/.Scilab/scilab-5.3.0/keysConfiguration.xml (Permission denied) > at java.io.FileOutputStream.open(Native Method) > at java.io.FileOutputStream.(Unknown Source) > at java.io.FileOutputStream.(Unknown Source) > at > org.scilab.modules.scinotes.utils.ConfigSciNotesManager.copyFile(Unknown > Source) > at > org.scilab.modules.scinotes.utils.ConfigSciNotesManager.createUserCopy(Unknown Source) > at org.scilab.modules.scinotes.SciNotes.createEditor(Unknown Source) > at org.scilab.modules.scinotes.SciNotes.launchSciNotes(Unknown Source) > at org.scilab.modules.scinotes.SciNotes$2.run(Unknown Source) > at java.awt.event.InvocationEvent.dispatch(Unknown Source) > at java.awt.EventQueue.dispatchEvent(Unknown Source) > at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source) > at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source) > at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source) > at java.awt.EventDispatchThread.pumpEvents(Unknown Source) > at java.awt.EventDispatchThread.pumpEvents(Unknown Source) > at java.awt.EventDispatchThread.run(Unknown Source) > Could not load > file: /home/jose/.Scilab/scilab-5.3.0/scinotesConfiguration.xml > java.io.FileNotFoundException: /home/jose/.Scilab/scilab-5.3.0/keysConfiguration.xml (No such file or directory) > at java.io.FileInputStream.open(Native Method) > at java.io.FileInputStream.(Unknown Source) > at > org.scilab.modules.scinotes.utils.ConfigSciNotesManager.readDocument(Unknown Source) > at > org.scilab.modules.scinotes.utils.ConfigSciNotesManager.readDocument(Unknown Source) > at > org.scilab.modules.scinotes.utils.ConfigSciNotesManager.getHorizontalWrap(Unknown Source) > at org.scilab.modules.scinotes.SciNotes.(Unknown Source) > at org.scilab.modules.scinotes.SciNotes.createEditor(Unknown Source) > at org.scilab.modules.scinotes.SciNotes.launchSciNotes(Unknown Source) > at org.scilab.modules.scinotes.SciNotes$2.run(Unknown Source) > at java.awt.event.InvocationEvent.dispatch(Unknown Source) > at java.awt.EventQueue.dispatchEvent(Unknown Source) > at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source) > at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source) > at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source) > at java.awt.EventDispatchThread.pumpEvents(Unknown Source) > at java.awt.EventDispatchThread.pumpEvents(Unknown Source) > at java.awt.EventDispatchThread.run(Unknown Source) > java.lang.reflect.InvocationTargetException > at java.awt.EventQueue.invokeAndWait(Unknown Source) > at javax.swing.SwingUtilities.invokeAndWait(Unknown Source) > at org.scilab.modules.scinotes.SciNotes.scinotes(Unknown Source) > Caused by: java.lang.NullPointerException > at > org.scilab.modules.scinotes.utils.ConfigSciNotesManager.getHorizontalWrap(Unknown Source) > at org.scilab.modules.scinotes.SciNotes.(Unknown Source) > at org.scilab.modules.scinotes.SciNotes.createEditor(Unknown Source) > at org.scilab.modules.scinotes.SciNotes.launchSciNotes(Unknown Source) > at org.scilab.modules.scinotes.SciNotes$2.run(Unknown Source) > at java.awt.event.InvocationEvent.dispatch(Unknown Source) > at java.awt.EventQueue.dispatchEvent(Unknown Source) > at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source) > at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source) > at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source) > at java.awt.EventDispatchThread.pumpEvents(Unknown Source) > at java.awt.EventDispatchThread.pumpEvents(Unknown Source) > at java.awt.EventDispatchThread.run(Unknown Source) > > J.L.V. > > From jlvolta at fibertel.com.py Sat Feb 19 20:34:43 2011 From: jlvolta at fibertel.com.py (Jose Luis) Date: Sat, 19 Feb 2011 16:34:43 -0300 Subject: Error opening Scinotes in Linux Message-ID: <1298144083.1342.5.camel@jose-desktop> Following the message I received in a terminal: drwxr-xr-x 5 jose jose 4096 2010-12-18 14:29 /home/jose/.Scilab drwxr-xr-x 3 root root 4096 2010-12-18 14:30 /home/jose/.Scilab/scilab-5.3.0 jose 1503 1483 10 16:27 ? 00:00:06 /home/jose/Downloads/scilab-5.3.0/bin/scilab-bin jose 1548 1528 0 16:28 pts/0 00:00:00 grep --color=auto scilab-bin The space in the hard disc: Filesystem 1K-blocks Used Available Use% Mounted on /dev/sda1 152463484 8746440 135972328 7% / none 234208 284 233924 1% /dev none 238432 248 238184 1% /dev/shm none 238432 304 238128 1% /var/run none 238432 0 238432 0% /var/lock none 238432 0 238432 0% /lib/init/rw J.L.V. From calixte at contrib.scilab.org Sat Feb 19 20:45:33 2011 From: calixte at contrib.scilab.org (Calixte Denizet) Date: Sat, 19 Feb 2011 20:45:33 +0100 Subject: [scilab-Users] Error opening Scinotes in Linux In-Reply-To: <1298144083.1342.5.camel@jose-desktop> References: <1298144083.1342.5.camel@jose-desktop> Message-ID: <1298144733.24062.105.camel@Calixte-Dell> Just type in a terminal: sudo chown -R jose:jose /home/jose/.Scilab You probably started scilab 5.3.0 in root mode... Regards Calixte Le samedi 19 f?vrier 2011 ? 16:34 -0300, Jose Luis a ?crit : > Following the message I received in a terminal: > > drwxr-xr-x 5 jose jose 4096 2010-12-18 14:29 /home/jose/.Scilab > drwxr-xr-x 3 root root 4096 2010-12-18 > 14:30 /home/jose/.Scilab/scilab-5.3.0 > jose 1503 1483 10 16:27 ? > 00:00:06 /home/jose/Downloads/scilab-5.3.0/bin/scilab-bin > jose 1548 1528 0 16:28 pts/0 00:00:00 grep --color=auto > scilab-bin > > The space in the hard disc: > > Filesystem 1K-blocks Used Available Use% Mounted on > /dev/sda1 152463484 8746440 135972328 7% / > none 234208 284 233924 1% /dev > none 238432 248 238184 1% /dev/shm > none 238432 304 238128 1% /var/run > none 238432 0 238432 0% /var/lock > none 238432 0 238432 0% /lib/init/rw > > J.L.V. > > From jlvolta at fibertel.com.py Sat Feb 19 21:32:39 2011 From: jlvolta at fibertel.com.py (Jose Luis) Date: Sat, 19 Feb 2011 17:32:39 -0300 Subject: Error opening Scinotes in Linux Message-ID: <1298147559.1342.8.camel@jose-desktop> It works ! Thank you, Calixte! Best regards. J.L.V. From engineering88mech at yahoo.co.uk Sun Feb 20 00:57:43 2011 From: engineering88mech at yahoo.co.uk (Engineering Mechanical) Date: Sat, 19 Feb 2011 23:57:43 +0000 (GMT) Subject: hello Message-ID: <195070.83843.qm@web29017.mail.ird.yahoo.com> Is there a model based calibration toolbox in Scilab like in matlab? ? Please tell me what it is. ? Dan -------------- next part -------------- An HTML attachment was scrubbed... URL: From brawad68 at yahoo.com Sun Feb 20 07:10:04 2011 From: brawad68 at yahoo.com (Bassam Awad) Date: Sat, 19 Feb 2011 22:10:04 -0800 (PST) Subject: [scilab-Users] hello In-Reply-To: <195070.83843.qm@web29017.mail.ird.yahoo.com> Message-ID: <720356.20024.qm@web113103.mail.gq1.yahoo.com> Does any one know how to remove from the mailing list. --- On Sat, 2/19/11, Engineering Mechanical wrote: From: Engineering Mechanical Subject: [scilab-Users] hello To: users at lists.scilab.org Date: Saturday, February 19, 2011, 11:57 PM Is there a model based calibration toolbox in Scilab like in matlab? ? Please tell me what it is. ? Dan -------------- next part -------------- An HTML attachment was scrubbed... URL: From paul.carrico at free.fr Sun Feb 20 08:46:30 2011 From: paul.carrico at free.fr (Paul CARRICO) Date: Sun, 20 Feb 2011 08:46:30 +0100 Subject: [scilab-Users] hello In-Reply-To: <720356.20024.qm@web113103.mail.gq1.yahoo.com> References: <195070.83843.qm@web29017.mail.ird.yahoo.com> <720356.20024.qm@web113103.mail.gq1.yahoo.com> Message-ID: <000c01cbd0d2$4a8daee0$dfa90ca0$@carrico@free.fr> just send a mail at users-unsubscribe at lists.scilab.org De : Bassam Awad [mailto:brawad68 at yahoo.com] Envoy? : dimanche 20 f?vrier 2011 07:10 ? : users at lists.scilab.org Objet : Re: [scilab-Users] hello Does any one know how to remove from the mailing list. --- On Sat, 2/19/11, Engineering Mechanical wrote: From: Engineering Mechanical Subject: [scilab-Users] hello To: users at lists.scilab.org Date: Saturday, February 19, 2011, 11:57 PM Is there a model based calibration toolbox in Scilab like in matlab? Please tell me what it is. Dan -------------- next part -------------- An HTML attachment was scrubbed... URL: From d.stachowski at virgin.net Sun Feb 20 13:53:40 2011 From: d.stachowski at virgin.net (Dariusz Stachowski) Date: Sun, 20 Feb 2011 12:53:40 +0000 Subject: [scilab-Users] hello In-Reply-To: <720356.20024.qm@web113103.mail.gq1.yahoo.com> References: <720356.20024.qm@web113103.mail.gq1.yahoo.com> Message-ID: <4D610ED4.1030107@virgin.net> I have the same problem. The unsubscribe link given in my 'WELCOME to users at lists.scilab.org' eMail does not seem to work. Bassam Awad wrote: > Does any one know how to remove from the mailing list. From huubvanniekerk at gmail.com Sun Feb 20 22:24:39 2011 From: huubvanniekerk at gmail.com (Huub) Date: Sun, 20 Feb 2011 22:24:39 +0100 Subject: Scilab 5.3 error in Fedora 14 Message-ID: Hi, I just installed Scilab and when I run bin/scilab I get this: # bin/scilab Could not load JVM dynamic library (libjava). Error: libjvm.so: cannot enable executable stack as shared object requires: Permission denied If you are using a binary version of Scilab, please report a bug http://bugzilla.scilab.org/. If you are using a self-built version of Scilab, update the script bin/scilab to provide the path to the JVM. The problem might be related to SELinux. Try to deactivate it. Scilab cannot open JVM library. Should I file a bug? Thanks, Huub From sylvestre.ledru at scilab.org Sun Feb 20 22:32:45 2011 From: sylvestre.ledru at scilab.org (Sylvestre Ledru) Date: Sun, 20 Feb 2011 22:32:45 +0100 Subject: [scilab-Users] Scilab 5.3 error in Fedora 14 In-Reply-To: References: Message-ID: <1298237565.29607.7080.camel@losinj.inria.fr> Le dimanche 20 f?vrier 2011 ? 22:24 +0100, Huub a ?crit : > Hi, > > I just installed Scilab and when I run bin/scilab I get this: > > # bin/scilab > > Could not load JVM dynamic library (libjava). > Error: libjvm.so: cannot enable executable stack as shared object > requires: Permission denied > If you are using a binary version of Scilab, please report a bug > http://bugzilla.scilab.org/. > If you are using a self-built version of Scilab, update the script > bin/scilab to provide the path to the JVM. > The problem might be related to SELinux. Try to deactivate it. > > Scilab cannot open JVM library. > > Should I file a bug? No. As said in the error message, disable SELinux ;) See: http://bugzilla.scilab.org/show_bug.cgi?id=5696 Sylvestre From huubvanniekerk at gmail.com Mon Feb 21 06:51:29 2011 From: huubvanniekerk at gmail.com (Huub) Date: Mon, 21 Feb 2011 06:51:29 +0100 Subject: Scilab 5.3 error in Fedora 14 In-Reply-To: <1298237565.29607.7080.camel@losinj.inria.fr> References: <1298237565.29607.7080.camel@losinj.inria.fr> Message-ID: On 02/20/2011 10:32 PM, Sylvestre Ledru wrote: > Le dimanche 20 f?vrier 2011 ? 22:24 +0100, Huub a ?crit : >> Hi, >> >> I just installed Scilab and when I run bin/scilab I get this: >> >> # bin/scilab >> >> Could not load JVM dynamic library (libjava). >> Error: libjvm.so: cannot enable executable stack as shared object >> requires: Permission denied >> If you are using a binary version of Scilab, please report a bug >> http://bugzilla.scilab.org/. >> If you are using a self-built version of Scilab, update the script >> bin/scilab to provide the path to the JVM. >> The problem might be related to SELinux. Try to deactivate it. >> >> Scilab cannot open JVM library. >> >> Should I file a bug? > No. As said in the error message, disable SELinux ;) > See: > http://bugzilla.scilab.org/show_bug.cgi?id=5696 > > Sylvestre > > > Thank you. It is working now. From jan.mike.hollis at verizon.net Mon Feb 21 14:20:15 2011 From: jan.mike.hollis at verizon.net (Jan M. Hollis) Date: Mon, 21 Feb 2011 07:20:15 -0600 (CST) Subject: Customizing an Axis ... Message-ID: <367195775.214013.1298294415458.JavaMail.root@vznit170060> Hi, How does one change the matrix size of the x axis locations and the x axis labels from inside a script? I see how to do it by using the graphics axes editor which allows one to Insert new points. For example, when I plot a figure, scilab chooses the ticks and subticks automatically. Let's say the resulting matrix is 6 by 1 -- I'd like to change it to 13 by 1 and specify new locations and labels to go with them but do it inside the script.... Thanks, Jan M. Hollis No man knows how bad he is until he has tried very hard to be good. -- C.S. Lewis in Mere Christianity -- From Samuel.Gougeon at univ-lemans.fr Mon Feb 21 14:48:39 2011 From: Samuel.Gougeon at univ-lemans.fr (Samuel GOUGEON) Date: Mon, 21 Feb 2011 14:48:39 +0100 Subject: [scilab-Users] Customizing an Axis ... In-Reply-To: <367195775.214013.1298294415458.JavaMail.root@vznit170060> References: <367195775.214013.1298294415458.JavaMail.root@vznit170060> Message-ID: <4D626D37.9030305@univ-lemans.fr> Hello, ----- Message d'origine ----- De : Jan M. Hollis Date : 21/02/2011 14:20: > Hi, > > How does one change the matrix size of the x axis locations and the x axis > labels from inside a script? I see how to do it by using the graphics axes > editor which allows one to Insert new points. For example, when I plot a figure, > scilab chooses the ticks and subticks automatically. Let's say the resulting > matrix is 6 by 1 -- I'd like to change it to 13 by 1 > and specify new locations and labels to go with them but do it inside the script.... The positions and labels must be changed in a once through the a.x_ticks tlist, in the following way (example): clf, plot2d() a = gca(); a.x_ticks = tlist(["ticks" "locations" "labels"],(0:6)',["A";"B";"C";"D";"E";"F";"G"]) // The first vector of strings ["ticks" "locations" "labels"] is compulsory. Regards Samuel From haraldgalda at yahoo.com Tue Feb 22 11:35:08 2011 From: haraldgalda at yahoo.com (Harald Galda, Dr. Eng. (J)) Date: Tue, 22 Feb 2011 02:35:08 -0800 (PST) Subject: Toolbox Compilation on 64 bit Windows? Message-ID: <175488.65958.qm@web112617.mail.gq1.yahoo.com> Dear users, I tried to build a toolbox on 5.3.0 for 64 bit Windows. I used the Microsoft Visual Studio Express Edition 2010 and the Windows SDK. I get the following error message: !Creation of dll libIPD.dll and import lib from ... ! ! ! !CloseVideoFile.obj ConvertColorSpace.obj CreatePixelIndexList.obj DistanceTransform.obj GetVideoInfo.obj MaskFilter.obj MatchTemplate.obj MedianF! ! ilter.obj MorphologicalFilter.obj OpenVideoFile.obj ReadImageFile.obj ReadImageFromVideo.obj SearchBlobs.obj SeparableFilter.obj VarianceFil! ! ter.obj Watershed.obj WriteImageFile.obj libIPD.obj ! ! ! !LINK : fatal error LNK1104: cannot open file 'uuid.lib' ! ! ! !NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\BIN\amd64\link.EXE"' : return code '0x450' ! ! ! !Stop. ! !--error 10000 The library uuid.lib belongs to Visual Studio or the SDK, not to Scilab. Compilation works fine on Scilab 5.3.0 for 32 bit Windows. Is there any free C++ compiler for 64 bit Windows that is supported by Scilab? Best regards Harald Galda From allan.cornet at scilab.org Tue Feb 22 11:51:50 2011 From: allan.cornet at scilab.org (Allan CORNET) Date: Tue, 22 Feb 2011 11:51:50 +0100 Subject: [scilab-Users] Toolbox Compilation on 64 bit Windows? In-Reply-To: <175488.65958.qm@web112617.mail.gq1.yahoo.com> References: <175488.65958.qm@web112617.mail.gq1.yahoo.com> Message-ID: <001b01cbd27e$82b89c00$8829d400$@scilab.org> Hi, Have you read this about Visual studio express and x64 support: http://wiki.scilab.org/How_can_I_set_up_Microsoft_Visual_Studio_2008/2010_Express_Edition_for_use_with_Scilab_x64_on_64-bit_Windows%3F uuid.lib is in Windows SDK (C:\Program Files\Microsoft SDKs\Windows\v7.1\Lib\x64\uuid.lib) (Please be sure that you have install SDK with x64 support) you can try this: http://atoms.scilab.org/toolboxes/mingw as other compiler but I advice to use MS compilers if you want to be packaged in ATOMS on Windows Do not hesitate, if you have some others questions about that ;) Best regards Allan -----Message d'origine----- De : Harald Galda, Dr. Eng. (J) [mailto:haraldgalda at yahoo.com] Envoy? : mardi 22 f?vrier 2011 11:35 ? : users at lists.scilab.org Objet : [scilab-Users] Toolbox Compilation on 64 bit Windows? Dear users, I tried to build a toolbox on 5.3.0 for 64 bit Windows. I used the Microsoft Visual Studio Express Edition 2010 and the Windows SDK. I get the following error message: !Creation of dll libIPD.dll and import lib from ... ! ! ! !CloseVideoFile.obj ConvertColorSpace.obj CreatePixelIndexList.obj DistanceTransform.obj GetVideoInfo.obj MaskFilter.obj MatchTemplate.obj MedianF! ! ilter.obj MorphologicalFilter.obj OpenVideoFile.obj ReadImageFile.obj ReadImageFromVideo.obj SearchBlobs.obj SeparableFilter.obj VarianceFil! ! ter.obj Watershed.obj WriteImageFile.obj libIPD.obj ! ! ! !LINK : fatal error LNK1104: cannot open file 'uuid.lib' ! ! ! !NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\BIN\amd64\link.EXE"' : return code '0x450' ! ! ! !Stop. ! !--error 10000 The library uuid.lib belongs to Visual Studio or the SDK, not to Scilab. Compilation works fine on Scilab 5.3.0 for 32 bit Windows. Is there any free C++ compiler for 64 bit Windows that is supported by Scilab? Best regards Harald Galda From guylaine.collewet at cemagref.fr Tue Feb 22 12:23:16 2011 From: guylaine.collewet at cemagref.fr (Collewet Guylaine) Date: Tue, 22 Feb 2011 12:23:16 +0100 Subject: Compiler output on Windows In-Reply-To: <001b01cbd27e$82b89c00$8829d400$@scilab.org> References: <175488.65958.qm@web112617.mail.gq1.yahoo.com> <001b01cbd27e$82b89c00$8829d400$@scilab.org> Message-ID: Hello, Is there a way to get the error messages during compilation in the scilab console ? For example, on my machine, a syntax error in C file would lead to the following message with no indication about the error (windows 7, 32bits, scilab 5.2.2) Guylaine NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\bin\cl.EXE"'?: code retour '0x2' Stop. !--error 10000 unix_s: error during "nmake /Y /nologo /f Makelib.mak all" execution at line 34 of function unix_s called by : at line 67 of function ilib_compile called by : at line 95 of function ilib_build called by : at line 17 of function tbx_build_gateway called by : tbx_build_gateway('readraw_gateway', inter_names, inter_files, curr_path, inter_libs, '', inter_cflags); at line 16 of exec file called by : at line 10 of function tbx_builder_gateway_lang called by : tbx_builder_gateway_lang(languages, sci_gateway_dir); at line 6 of exec file called by : at line 8 of function devtools_run_builder called by : at line 6 of function tbx_builder_gateway called by : tbx_builder_gateway(toolbox_dir); at line 36 of exec file called by : == "") then exec(%fileToExec); disp(msprintf(gettext("Execution done.\n"))); end while executing a callback From allan.cornet at scilab.org Tue Feb 22 13:16:38 2011 From: allan.cornet at scilab.org (Allan CORNET) Date: Tue, 22 Feb 2011 13:16:38 +0100 Subject: [scilab-Users] Compiler output on Windows In-Reply-To: References: <175488.65958.qm@web112617.mail.gq1.yahoo.com> <001b01cbd27e$82b89c00$8829d400$@scilab.org> Message-ID: <001f01cbd28a$5afe34c0$10fa9e40$@scilab.org> Hi, This feature is in Scilab 5.3.0 Allan -----Message d'origine----- De : Collewet Guylaine [mailto:guylaine.collewet at cemagref.fr] Envoy? : mardi 22 f?vrier 2011 12:23 ? : users at lists.scilab.org Objet : [scilab-Users] Compiler output on Windows Hello, Is there a way to get the error messages during compilation in the scilab console ? For example, on my machine, a syntax error in C file would lead to the following message with no indication about the error (windows 7, 32bits, scilab 5.2.2) Guylaine NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\bin\cl.EXE"'?: code retour '0x2' Stop. !--error 10000 unix_s: error during "nmake /Y /nologo /f Makelib.mak all" execution at line 34 of function unix_s called by : at line 67 of function ilib_compile called by : at line 95 of function ilib_build called by : at line 17 of function tbx_build_gateway called by : tbx_build_gateway('readraw_gateway', inter_names, inter_files, curr_path, inter_libs, '', inter_cflags); at line 16 of exec file called by : at line 10 of function tbx_builder_gateway_lang called by : tbx_builder_gateway_lang(languages, sci_gateway_dir); at line 6 of exec file called by : at line 8 of function devtools_run_builder called by : at line 6 of function tbx_builder_gateway called by : tbx_builder_gateway(toolbox_dir); at line 36 of exec file called by : == "") then exec(%fileToExec); disp(msprintf(gettext("Execution done.\n"))); end while executing a callback From haraldgalda at yahoo.com Tue Feb 22 13:22:51 2011 From: haraldgalda at yahoo.com (Harald Galda, Dr. Eng. (J)) Date: Tue, 22 Feb 2011 04:22:51 -0800 (PST) Subject: AW: [scilab-Users] Toolbox Compilation on 64 bit Windows? In-Reply-To: <001b01cbd27e$82b89c00$8829d400$@scilab.org> References: <175488.65958.qm@web112617.mail.gq1.yahoo.com> <001b01cbd27e$82b89c00$8829d400$@scilab.org> Message-ID: <490956.1657.qm@web112602.mail.gq1.yahoo.com> Hi, when I installed the SDK there was no option to install x64 support, but Scilab 5.3.0 (64 bit) detected the compiler after SDK installation. Are any further steps necessary? The atoms compilation chain built a 32 bit version of IPD-8.0, but not a 64 bit version. Were there any error messages when trying to build a 64 bit version? I would like IPD-8.0 to be packaged in ATOMS. However, I would like to build the toolbox myself to check whether it works correctly. I might consider uploading the 64 bit version at forge.scilab.org, but I consider ATOMS as more important. Regards Harald Galda ----- Urspr?ngliche Mail ---- Von: Allan CORNET An: users at lists.scilab.org Gesendet: Dienstag, den 22. Februar 2011, 11:51:50 Uhr Betreff: RE: [scilab-Users] Toolbox Compilation on 64 bit Windows? Hi, Have you read this about Visual studio express and x64 support: http://wiki.scilab.org/How_can_I_set_up_Microsoft_Visual_Studio_2008/2010_Express_Edition_for_use_with_Scilab_x64_on_64-bit_Windows%3F uuid.lib is in Windows SDK (C:\Program Files\Microsoft SDKs\Windows\v7.1\Lib\x64\uuid.lib) (Please be sure that you have install SDK with x64 support) you can try this: http://atoms.scilab.org/toolboxes/mingw as other compiler but I advice to use MS compilers if you want to be packaged in ATOMS on Windows Do not hesitate, if you have some others questions about that ;) Best regards Allan -----Message d'origine----- De : Harald Galda, Dr. Eng. (J) [mailto:haraldgalda at yahoo.com] Envoy? : mardi 22 f?vrier 2011 11:35 ? : users at lists.scilab.org Objet : [scilab-Users] Toolbox Compilation on 64 bit Windows? Dear users, I tried to build a toolbox on 5.3.0 for 64 bit Windows. I used the Microsoft Visual Studio Express Edition 2010 and the Windows SDK. I get the following error message: !Creation of dll libIPD.dll and import lib from ... ! ! ! !CloseVideoFile.obj ConvertColorSpace.obj CreatePixelIndexList.obj DistanceTransform.obj GetVideoInfo.obj MaskFilter.obj MatchTemplate.obj MedianF! ! ilter.obj MorphologicalFilter.obj OpenVideoFile.obj ReadImageFile.obj ReadImageFromVideo.obj SearchBlobs.obj SeparableFilter.obj VarianceFil! ! ter.obj Watershed.obj WriteImageFile.obj libIPD.obj ! ! ! !LINK : fatal error LNK1104: cannot open file 'uuid.lib' ! ! ! !NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\BIN\amd64\link.EXE"' : return code '0x450' ! ! ! !Stop. ! !--error 10000 The library uuid.lib belongs to Visual Studio or the SDK, not to Scilab. Compilation works fine on Scilab 5.3.0 for 32 bit Windows. Is there any free C++ compiler for 64 bit Windows that is supported by Scilab? Best regards Harald Galda From t.krieg at gigant-group.com Tue Feb 22 15:48:07 2011 From: t.krieg at gigant-group.com (Krieg, Tobias) Date: Tue, 22 Feb 2011 15:48:07 +0100 Subject: Problem with Xcos Message-ID: Ladies and Gentlemen I'm using Xcos to create a Dynamik-Simulation. Now I have the following problem. If I create the Modell in XCos everything okay, the computation runs correkt. Then I save the file! If I start the Simulation later again I get following Error-Message: ___________________________________________ scilab-5.3.0 Consortium Scilab (DIGITEO) Copyright (c) 1989-2010 (INRIA) Copyright (c) 1989-2007 (ENPC) ___________________________________________ Starte Ausf?hrung: lade Startumgebung !--error 10000 Incorrect assignment. at line 22 of function generic_i_s called by : at line 2 of function %l_i_s called by : at line 303 of function scicos_flat called by : at line 36 of function c_pass1 called by : at line 50 of function do_compile called by : at line 96 of function do_update called by : at line 142 of function xcos_simulate called by : _3148_\xcos3473681565502220114.h5"); scicos_debug(0); xcos_simulate(scs_m, 4); ;notify("-78254895") while executing a callback Do you have an idea which I made wrong? The Xcos Simulation: Mit freundlichen Gr??en, Kind regards, Salutations Dipl.- Ing. (FH) Tobias Krieg Entwicklungsingenieur / development engineer gigant - TRENKAMP & GEHLE GmbH M?rschendorferstr. 42 D-49413 Dinklage Tel.: +49 (0) 4443.96 20 57 Fax: +49 (0) 4443.96 20 30 E-Mail: t.krieg at gigant-group.com Web: www.gigant-group.com Sitz: Dinklage ? Handelsregister: Oldenburg i.O., B 110276 ? Sitz: Dinklage ? Handelsregister: Oldenburg i.O., B 110276 ? Gesch?ftsf?hrer: Markus Gehle -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/octet-stream Size: 3300352 bytes Desc: not available URL: From allan.cornet at scilab.org Tue Feb 22 16:42:20 2011 From: allan.cornet at scilab.org (Allan CORNET) Date: Tue, 22 Feb 2011 16:42:20 +0100 Subject: [scilab-Users] Toolbox Compilation on 64 bit Windows? In-Reply-To: <490956.1657.qm@web112602.mail.gq1.yahoo.com> References: <175488.65958.qm@web112617.mail.gq1.yahoo.com> <001b01cbd27e$82b89c00$8829d400$@scilab.org> <490956.1657.qm@web112602.mail.gq1.yahoo.com> Message-ID: <002901cbd2a7$17b7e450$4727acf0$@scilab.org> Hi, IPD 8.0 for Windows 64 bit is packaged atomsSystemUpdate() atomsInstall('IPD') atomsLoad('IPD') Thanks ! Allan -----Message d'origine----- De?: Harald Galda, Dr. Eng. (J) [mailto:haraldgalda at yahoo.com] Envoy??: mardi 22 f?vrier 2011 13:23 ??: users at lists.scilab.org Objet?: AW: [scilab-Users] Toolbox Compilation on 64 bit Windows? Hi, when I installed the SDK there was no option to install x64 support, but Scilab 5.3.0 (64 bit) detected the compiler after SDK installation. Are any further steps necessary? The atoms compilation chain built a 32 bit version of IPD-8.0, but not a 64 bit version. Were there any error messages when trying to build a 64 bit version? I would like IPD-8.0 to be packaged in ATOMS. However, I would like to build the toolbox myself to check whether it works correctly. I might consider uploading the 64 bit version at forge.scilab.org, but I consider ATOMS as more important. Regards Harald Galda ----- Urspr?ngliche Mail ---- Von: Allan CORNET An: users at lists.scilab.org Gesendet: Dienstag, den 22. Februar 2011, 11:51:50 Uhr Betreff: RE: [scilab-Users] Toolbox Compilation on 64 bit Windows? Hi, Have you read this about Visual studio express and x64 support: http://wiki.scilab.org/How_can_I_set_up_Microsoft_Visual_Studio_2008/2010_Ex press_Edition_for_use_with_Scilab_x64_on_64-bit_Windows%3F uuid.lib is in Windows SDK (C:\Program Files\Microsoft SDKs\Windows\v7.1\Lib\x64\uuid.lib) (Please be sure that you have install SDK with x64 support) you can try this: http://atoms.scilab.org/toolboxes/mingw as other compiler but I advice to use MS compilers if you want to be packaged in ATOMS on Windows Do not hesitate, if you have some others questions about that ;) Best regards Allan -----Message d'origine----- De : Harald Galda, Dr. Eng. (J) [mailto:haraldgalda at yahoo.com] Envoy? : mardi 22 f?vrier 2011 11:35 ? : users at lists.scilab.org Objet : [scilab-Users] Toolbox Compilation on 64 bit Windows? Dear users, I tried to build a toolbox on 5.3.0 for 64 bit Windows. I used the Microsoft Visual Studio Express Edition 2010 and the Windows SDK. I get the following error message: !Creation of dll libIPD.dll and import lib from ... ! ! ! !CloseVideoFile.obj ConvertColorSpace.obj CreatePixelIndexList.obj DistanceTransform.obj GetVideoInfo.obj MaskFilter.obj MatchTemplate.obj MedianF! ! ilter.obj MorphologicalFilter.obj OpenVideoFile.obj ReadImageFile.obj ReadImageFromVideo.obj SearchBlobs.obj SeparableFilter.obj VarianceFil! ! ter.obj Watershed.obj WriteImageFile.obj libIPD.obj ! ! ! !LINK : fatal error LNK1104: cannot open file 'uuid.lib' ! ! ! !NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\BIN\amd64\link.EXE"' : return code '0x450' ! ! ! !Stop. ! !--error 10000 The library uuid.lib belongs to Visual Studio or the SDK, not to Scilab. Compilation works fine on Scilab 5.3.0 for 32 bit Windows. Is there any free C++ compiler for 64 bit Windows that is supported by Scilab? Best regards Harald Galda From guylaine.collewet at cemagref.fr Tue Feb 22 16:49:21 2011 From: guylaine.collewet at cemagref.fr (Collewet Guylaine) Date: Tue, 22 Feb 2011 16:49:21 +0100 Subject: createMatrixOfFloat ? Message-ID: Hello, I'd like to return a matrix of float from C to scilab Does the function createMatrixOfFloat exist ? Guylaine -------------- next part -------------- An HTML attachment was scrubbed... URL: From clement.david at scilab.org Tue Feb 22 17:17:17 2011 From: clement.david at scilab.org (=?ISO-8859-1?Q?Cl=E9ment?= David) Date: Tue, 22 Feb 2011 17:17:17 +0100 Subject: [scilab-Users] Problem with Xcos In-Reply-To: References: Message-ID: <1298391437.3054.11.camel@pinarellu.inria.fr> Hello, This bug has been reported on http://bugzilla.scilab.org and should be fixed on the latest nightly build version. Can you check if you are able to reproduce with [1] please ? [1]: http://www.scilab.org/communities/developer_zone/scilab_versions/development_version/branch_53 Le mardi 22 f?vrier 2011 ? 15:48 +0100, Krieg, Tobias a ?crit : > at line 22 of function generic_i_s called by : > at line 2 of function %l_i_s called by : > at line 303 of function scicos_flat called by : > at line 36 of function c_pass1 called by : > at line 50 of function do_compile called by : > at line 96 of function do_update called by : > at line 142 of function xcos_simulate called by : -- Cl?ment David From vogt at centre-cired.fr Tue Feb 22 17:37:39 2011 From: vogt at centre-cired.fr (Adrien Vogt-Schilb) Date: Tue, 22 Feb 2011 17:37:39 +0100 Subject: [scilab-Users] createMatrixOfFloat ? In-Reply-To: References: Message-ID: <4D63E653.8010909@centre-cired.fr> Le 22/02/2011 16:49, Collewet Guylaine a ?crit : > > Hello, > > I'd like toreturn a matrix of float from C to scilab > > Does the functioncreateMatrixOfFloatexist? > > Guylaine > try write_csv or fprintfMat -- *Adrien Vogt-Schilb* Research Fellow vogt at centre-cired.fr Tel: (+33) 1 43 94 73 72 Fax: (+33) 1 43 94 73 70 CIRED 45 bis, Av de la Belle Gabrielle F-94736 Nogent-sur-Marne http://www.centre-cired.fr/ -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: logocired.png Type: image/png Size: 4092 bytes Desc: not available URL: From vogt at centre-cired.fr Tue Feb 22 17:39:17 2011 From: vogt at centre-cired.fr (Adrien Vogt-Schilb) Date: Tue, 22 Feb 2011 17:39:17 +0100 Subject: [scilab-Users] createMatrixOfFloat ? In-Reply-To: <4D63E653.8010909@centre-cired.fr> References: <4D63E653.8010909@centre-cired.fr> Message-ID: <4D63E6B5.7010208@centre-cired.fr> Le 22/02/2011 17:37, Adrien Vogt-Schilb a ?crit : > Le 22/02/2011 16:49, Collewet Guylaine a ?crit : >> >> Hello, >> >> I'd like toreturn a matrix of float from C to scilab >> >> Does the functioncreateMatrixOfFloatexist? >> >> Guylaine >> > try write_csv or fprintfMat my mistake, i misunderstood your mail -------------- next part -------------- An HTML attachment was scrubbed... URL: From paul.hillereau at gmail.com Tue Feb 22 19:09:32 2011 From: paul.hillereau at gmail.com (Paul Hillereau) Date: Tue, 22 Feb 2011 19:09:32 +0100 Subject: [scilab-Users] createMatrixOfFloat ? In-Reply-To: <4D63E6B5.7010208@centre-cired.fr> References: <4D63E653.8010909@centre-cired.fr> <4D63E6B5.7010208@centre-cired.fr> Message-ID: 2011/2/22 Adrien Vogt-Schilb > Le 22/02/2011 17:37, Adrien Vogt-Schilb a ?crit : > > Le 22/02/2011 16:49, Collewet Guylaine a ?crit : > > Hello, > > I?d like to return a matrix of float from C to scilab > > Does the function createMatrixOfFloat exist ? > > Guylaine > > Yes It's possible; you should have a look at API Scilab : http://help.scilab.org/docs/5.3.0/en_US/doubleExample.html -------------- next part -------------- An HTML attachment was scrubbed... URL: From guylaine.collewet at cemagref.fr Tue Feb 22 19:56:49 2011 From: guylaine.collewet at cemagref.fr (Collewet Guylaine) Date: Tue, 22 Feb 2011 19:56:49 +0100 Subject: =?iso-8859-1?Q?RE=A0=3A_=5Bscilab-Users=5D_createMatrixOfFloat_=3F?= References: <4D63E653.8010909@centre-cired.fr> <4D63E6B5.7010208@centre-cired.fr> Message-ID: Thanks but I can only find createMatrixOfDouble, not the equivalent function for "float" Guylaine -------- Message d'origine-------- De: Paul Hillereau [mailto:paul.hillereau at gmail.com] Date: mar. 22/02/2011 19:09 ?: users at lists.scilab.org Cc: Adrien Vogt-Schilb Objet : Re: [scilab-Users] createMatrixOfFloat ? 2011/2/22 Adrien Vogt-Schilb > Le 22/02/2011 17:37, Adrien Vogt-Schilb a ?crit : > > Le 22/02/2011 16:49, Collewet Guylaine a ?crit : > > Hello, > > I'd like to return a matrix of float from C to scilab > > Does the function createMatrixOfFloat exist ? > > Guylaine > > Yes It's possible; you should have a look at API Scilab : http://help.scilab.org/docs/5.3.0/en_US/doubleExample.html -------------- next part -------------- A non-text attachment was scrubbed... Name: winmail.dat Type: application/ms-tnef Size: 2982 bytes Desc: not available URL: From Samuel.Gougeon at univ-lemans.fr Tue Feb 22 20:01:39 2011 From: Samuel.Gougeon at univ-lemans.fr (Samuel GOUGEON) Date: Tue, 22 Feb 2011 20:01:39 +0100 Subject: =?ISO-8859-1?Q?RE=A0=3A_=5Bscilab-Users=5D_createMatrixO?= =?ISO-8859-1?Q?fFloat_=3F?= In-Reply-To: References: <4D63E653.8010909@centre-cired.fr> <4D63E6B5.7010208@centre-cired.fr> Message-ID: <4D640813.3040509@univ-lemans.fr> ----- Message d'origine ----- De : Collewet Guylaine Date : 22/02/2011 19:56: > Thanks > > but I can only find createMatrixOfDouble, not the equivalent function for "float" > > Guylaine AFAIK, there are no single precision reals in Scilab. Regards Samuel From guylaine.collewet at cemagref.fr Tue Feb 22 20:09:32 2011 From: guylaine.collewet at cemagref.fr (Collewet Guylaine) Date: Tue, 22 Feb 2011 20:09:32 +0100 Subject: =?iso-8859-1?Q?RE=A0=3A_RE=A0=3A_=5Bscilab-Users=5D_createMatrixOfFloat?= =?iso-8859-1?Q?_=3F?= References: <4D63E653.8010909@centre-cired.fr> <4D63E6B5.7010208@centre-cired.fr> <4D640813.3040509@univ-lemans.fr> Message-ID: Hi, I agree that scilab variables are double precision reals, however there are different functions to return variables from C such as : createMatrixOfBoolean createMatrixOfInteger8 createMatrixOfInteger16 createMatrixOfInteger32 createMatrixOfDouble I can't find one for floats Guylaine -------- Message d'origine-------- De: Samuel GOUGEON [mailto:Samuel.Gougeon at univ-lemans.fr] Date: mar. 22/02/2011 20:01 ?: users at lists.scilab.org Objet : Re: RE?: [scilab-Users] createMatrixOfFloat ? > AFAIK, there are no single precision reals in Scilab. > Regards > Samuel ----- Message d'origine ----- De : Collewet Guylaine Date : 22/02/2011 19:56: > Thanks > > but I can only find createMatrixOfDouble, not the equivalent function for "float" > > Guylaine -------------- next part -------------- A non-text attachment was scrubbed... Name: winmail.dat Type: application/ms-tnef Size: 3067 bytes Desc: not available URL: From paul.carrico at free.fr Tue Feb 22 22:27:21 2011 From: paul.carrico at free.fr (Paul CARRICO) Date: Tue, 22 Feb 2011 22:27:21 +0100 Subject: Pochhammer-Chree waves Message-ID: <000d01cbd2d7$4ac9eca0$e05dc5e0$@carrico@free.fr> Dear All, Does somebody is experienced in Pochhammer-Chree waves and can give me some relevant document to read ? Nota : subject in relation to (Kolsky) shocks . Thanks for any advances Paul -------------- next part -------------- An HTML attachment was scrubbed... URL: From Loic.Girod at esstin.uhp-nancy.fr Wed Feb 23 10:55:59 2011 From: Loic.Girod at esstin.uhp-nancy.fr (=?iso-8859-1?Q?Lo=EFc_GIROD?=) Date: Wed, 23 Feb 2011 10:55:59 +0100 Subject: changing font size in a figure Message-ID: <005501cbd33f$e026ca30$a0745e90$@esstin.uhp-nancy.fr> Hello, I would like to change the default value of the font size of axis labels in a figure. It works well with the command Xset(?font size?,4) Before plotting the graph but, as xset is now obsolete, I would like to use the set command to do set same thing with the axes_properties but I can?t find the way to make it work. Many Thanks Best Regards Lo?c -------------- next part -------------- An HTML attachment was scrubbed... URL: From paul.carrico at esterline.com Wed Feb 23 11:01:55 2011 From: paul.carrico at esterline.com (Carrico, Paul) Date: Wed, 23 Feb 2011 11:01:55 +0100 Subject: [scilab-Users] changing font size in a figure In-Reply-To: <005501cbd33f$e026ca30$a0745e90$@esstin.uhp-nancy.fr> References: <005501cbd33f$e026ca30$a0745e90$@esstin.uhp-nancy.fr> Message-ID: <55A12CBC06A8C9459DCE0BBEF8122FDC0498B15F@exchsrv.AUXITROL1> Hi An extract herebellow ... plus an interesting doc Paul ################################################# drawlater(); xgrid(3); f = gcf(); // Active le handle "Figure" //f // affiche les parametres de f f.figure_size = [1000, 1000]; // d?finition de la taille de la figure f.background = color(245,245,245); // couleur arri?re-plan de la figure a = gca(); // Active le handle "Axes" //a // affiche les propri?t?s du handle "Axes" a.font_size = 2; // taille des chiffres des axes (font_size = enfant de a = "axes") a.x_label.text = string(nom_grandeur_physique1(1,1)) ; // nom axe X (text = enfant de x_label) a.x_label.font_size = 4; // definition de la taille des caract?res (font_size = enfant de x_label) a.y_label.text = "S_eq de VON MISES [MPa]"; a.Y_label.font_size = 4; a.title.text = (string(TITRE_GRAPHIQUE)); // titre de la figure a.title.font_size = 5; a.line_style = 1; // definition du style des axes legend(noms_fichiers,pos=POSITION_LEGENDE) drawnow(); ________________________________ De : Lo?c GIROD [mailto:Loic.Girod at esstin.uhp-nancy.fr] Envoy? : mercredi 23 f?vrier 2011 10:56 ? : users at lists.scilab.org Objet : [scilab-Users] changing font size in a figure Hello, I would like to change the default value of the font size of axis labels in a figure. It works well with the command Xset("font size",4) Before plotting the graph but, as xset is now obsolete, I would like to use the set command to do set same thing with the axes_properties but I can't find the way to make it work. Many Thanks Best Regards Lo?c -------------------------------------------------------------------------------- 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. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: fiche_graphiques.pdf Type: application/octet-stream Size: 1801187 bytes Desc: fiche_graphiques.pdf URL: From Ding.Zheng at reson.com Wed Feb 23 11:17:09 2011 From: Ding.Zheng at reson.com (Ding Zheng) Date: Wed, 23 Feb 2011 10:17:09 +0000 Subject: plot dots in 3d and 2d using color Message-ID: <26CBBB51A278494180C1043F7D33A9970BC4E7@SLAEXC01.reson.root> Hi I am trying plot dots 3d in Scilab. the data someting like x(1,n),y(1,n),z(1, n). I tried both plot3d(x,y,list(z,colors)) and param3d1(x,y,list(z,colors)). I made the colors las below: nc=256; colors =1+(nc-1)*(z-min(z))/(max(z)-min(z)); the dots can be plotted. but the dots's color is always black. if use a colormap. xset("colormap",hotcolormap(256)). it also doesn't work. Can everyone help me? Thanks in advance. Ding zheng -------------- next part -------------- An HTML attachment was scrubbed... URL: From rohitgoyal1088 at gmail.com Wed Feb 23 13:38:08 2011 From: rohitgoyal1088 at gmail.com (rohit goyal) Date: Wed, 23 Feb 2011 18:08:08 +0530 Subject: SCILAB help Message-ID: Hi, I am working on SCILAB/XCOS and i am new to it. I need a help regarding 2 issue- 1.Like in MATLAB/SIMULINK there is a library where you can create a block and then copy that block into main model and whatever changes you make in library block it reflect back into your main model. So how we can do same thing in XCOS. 2. When i copy any superblock, the links inside that block get disturbed. It is randomly oriented. So how can we correct that. Kindly reply to these problem as soon as possible .It will be very helpful to me. Thanks & Regards Rohit Goyal Email id - rohitgoyal1088 at gmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From Samuel.Gougeon at univ-lemans.fr Wed Feb 23 14:07:40 2011 From: Samuel.Gougeon at univ-lemans.fr (Samuel GOUGEON) Date: Wed, 23 Feb 2011 14:07:40 +0100 Subject: [scilab-Users] plot dots in 3d and 2d using color In-Reply-To: <26CBBB51A278494180C1043F7D33A9970BC4E7@SLAEXC01.reson.root> References: <26CBBB51A278494180C1043F7D33A9970BC4E7@SLAEXC01.reson.root> Message-ID: <4D65069C.6090003@univ-lemans.fr> Hello, ----- Message d'origine ----- De : Ding Zheng Date : 23/02/2011 11:17: > > Hi > > I am trying plot dots 3d in Scilab. the data someting like x(1,n),y(1,n),z(1, > n). I tried both plot3d(x,y,list(z,colors)) and param3d1(x,y,list(z,colors)). > I made the colors las below: > > nc=256; > colors =1+(nc-1)*(z-min(z))/(max(z)-min(z)); > > the dots can be plotted. but the dots's color is always black. if use a > colormap. xset("colormap",hotcolormap(256)). it also doesn't work. > > Can everyone help me? > You may have a look here: http://bugzilla.scilab.org/show_bug.cgi?id=6344#c1 attachement: http://bugzilla.scilab.org/attachment.cgi?id=1465 plotPoints() plots a set a points with the desired color, the same color for all points. Regards Samuel -------------- next part -------------- An HTML attachment was scrubbed... URL: From Ding.Zheng at reson.com Wed Feb 23 16:16:05 2011 From: Ding.Zheng at reson.com (Ding Zheng) Date: Wed, 23 Feb 2011 15:16:05 +0000 Subject: [scilab-Users] plot dots in 3d and 2d using color In-Reply-To: <4D65069C.6090003@univ-lemans.fr> References: <26CBBB51A278494180C1043F7D33A9970BC4E7@SLAEXC01.reson.root> <4D65069C.6090003@univ-lemans.fr> Message-ID: <26CBBB51A278494180C1043F7D33A9970BC52A@SLAEXC01.reson.root> Hi Samuel, Thanks for your reply. Actually I had looked this thread. But I want to draw every point in different color if their z value is different. I am not very clear about the list(z,colors) in param3d1 function. My understanding, the colors should be a vector values mapped from z value. Isn't? but it doesn't work. And I also looked the thread written by Enrico Segre. clf(); xset("colormap",hotcolormap(nc)) drawlater() plot2d(x,y,-2) for i=1:N plot2d(x(i),y(i),-9) e=gce();e=e.children; e.mark_size_unit="point"; e.mark_size=6; e.mark_foreground=-1; e.mark_background=zc(i); end drawnow() the function works for plot2d. but my data is huge. It has 290000 points. It will be very slow using this function due to the loop for every points. For plot 3d points. Still I haven't solution. Regards Ding zheng From: Samuel GOUGEON [mailto:Samuel.Gougeon at univ-lemans.fr] Sent: woensdag 23 februari 2011 14:08 To: users at lists.scilab.org Subject: Re: [scilab-Users] plot dots in 3d and 2d using color Hello, ----- Message d'origine ----- De : Ding Zheng Date : 23/02/2011 11:17: Hi I am trying plot dots 3d in Scilab. the data someting like x(1,n),y(1,n),z(1, n). I tried both plot3d(x,y,list(z,colors)) and param3d1(x,y,list(z,colors)). I made the colors las below: nc=256; colors =1+(nc-1)*(z-min(z))/(max(z)-min(z)); the dots can be plotted. but the dots's color is always black. if use a colormap. xset("colormap",hotcolormap(256)). it also doesn't work. Can everyone help me? You may have a look here: http://bugzilla.scilab.org/show_bug.cgi?id=6344#c1 attachement: http://bugzilla.scilab.org/attachment.cgi?id=1465 plotPoints() plots a set a points with the desired color, the same color for all points. Regards Samuel -------------- next part -------------- An HTML attachment was scrubbed... URL: From Loic.Girod at esstin.uhp-nancy.fr Wed Feb 23 16:52:10 2011 From: Loic.Girod at esstin.uhp-nancy.fr (=?iso-8859-1?Q?Lo=EFc_GIROD?=) Date: Wed, 23 Feb 2011 16:52:10 +0100 Subject: uigetfile : how to filter file with the first character Message-ID: <00eb01cbd371$a2ef5470$e8cdfd50$@esstin.uhp-nancy.fr> Hello, I would like to use the function uigetfile by specifying the first character of the file to select. For instance, I would like only files starting with ?P_? like P_80, P_102 I?ve tried with the following code : uigetfile(["P_*.*"],"",'select P file') but the dialog box selecs all extensions (*.*). Is there a way to do that ? Many Thanks Best regards Lo?c -------------- next part -------------- An HTML attachment was scrubbed... URL: From Samuel.Gougeon at univ-lemans.fr Wed Feb 23 17:49:39 2011 From: Samuel.Gougeon at univ-lemans.fr (Samuel GOUGEON) Date: Wed, 23 Feb 2011 17:49:39 +0100 Subject: [scilab-Users] uigetfile : how to filter file with the first character In-Reply-To: <00eb01cbd371$a2ef5470$e8cdfd50$@esstin.uhp-nancy.fr> References: <00eb01cbd371$a2ef5470$e8cdfd50$@esstin.uhp-nancy.fr> Message-ID: <4D653AA3.3090806@univ-lemans.fr> ----- Message d'origine ----- De : Lo?c GIROD Date : 23/02/2011 16:52: > > Hello, > > I would like to use the function uigetfile by specifying the first character > of the file to select. > > For instance, I would like only files starting with "P_" like P_80, P_102... > > I've tried with the following code : > > uigetfile(["P_*.*"],"",'select P file') > > but the dialog box selecs all extensions (*.*). > > Is there a way to do that ? > It was possible with the former tk_getfile() (Scilab 4.1.2), while it has regressed with uigetfile() and is no longer possible with Scilab 5: See http://bugzilla.scilab.org/show_bug.cgi?id=4847 Do not hesitate to post on this Bugzilla thread, to awake it. Regards Samuel -------------- next part -------------- An HTML attachment was scrubbed... URL: From Loic.Girod at esstin.uhp-nancy.fr Fri Feb 25 06:57:14 2011 From: Loic.Girod at esstin.uhp-nancy.fr (=?iso-8859-1?Q?Lo=EFc_GIROD?=) Date: Fri, 25 Feb 2011 06:57:14 +0100 Subject: x_choose and script running Message-ID: <004b01cbd4b0$da867a90$8f936fb0$@esstin.uhp-nancy.fr> Hello, I would like to display a list of choice at the end of the execution of the script. For instance : 1) execute sript again 2) Exit With the x_choose function, what is the best way to proceed as the ?go to? function seems not to be used ? Do you think something like under is regular ? While choose=1 Script X_choose Else exit End Many thanks Lo?c -------------- next part -------------- An HTML attachment was scrubbed... URL: From sam at cctech.co.in Fri Feb 25 09:10:47 2011 From: sam at cctech.co.in (Sam Mathew) Date: Fri, 25 Feb 2011 13:40:47 +0530 Subject: XCos - TOWS problem with initial time, t Message-ID: Hi everyone, I was trying to check the TOWS_c palette in XCos. It's a simple case of a step function flipping value across a given time. Although I am giving the initial time as 0, when I extract the values of the variable A, the time doesn't start from t=0, but some very large value like, 99998. ----------- t = A.time t = 99998. 99998.1 99998.2 99998.3 99998.4 99998.5 99998.6 99998.7 99998.8 99998.9 99999. 99999.1 99999.2 99999.3 99999.4 99999.5 99999.6 99999.7 99999.8 99999.9 ----------- Any clue if this is a bug? Regards, Sam -- *Sam Mathew* | Asst. Manager, CFD *Centre for Computational Technologies - CCTech** * 1 Akshay Residency | 50 Anand Park | Aundh | Pune | 411007 | India Ph: +91 20 40098381/82 | M: +91-9975960244 | www.cctech.co.in* * *CCTech ? "Simulation is The Future"* -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: TOWS_problem.jpg Type: image/jpeg Size: 71815 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: test-tows.xcos Type: application/octet-stream Size: 45487 bytes Desc: not available URL: From rida.alekxe.hansamu at gmail.com Mon Feb 21 02:31:49 2011 From: rida.alekxe.hansamu at gmail.com (ATTe.: Alejandro Aldaco) Date: Sun, 20 Feb 2011 19:31:49 -0600 Subject: help scilab Message-ID: <615806F65B3C41FDA1CAF801639232DB@PC> hello, my name is Alejandro, i?m using scilab for college. i downloaded scilab 6 days ago, and when i ran it there was a problem when i tried to plot a function. the code that i used was: -->x=0:0.1:15; -->y=x^2 -->plot(x,y) when i type enter, the program simply closes. i really need to get the graphics, for which i require to solve this problem but i really don?t know how. thas is why i call for advice about what should i check on my sistem. i shoul mention that already tried reinstalling the program I await your response. in advance, thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: