From allan.cornet at scilab.org Wed Sep 1 08:08:21 2010 From: allan.cornet at scilab.org (Allan CORNET) Date: Wed, 1 Sep 2010 08:08:21 +0200 Subject: [scilab-Users] LabView Gateway In-Reply-To: <94C4B75340A6604499A5D51D19BE8F16EF23891EDB@REX2.intranet.epfl.ch> References: <94C4B75340A6604499A5D51D19BE8F16EF23891EDB@REX2.intranet.epfl.ch> Message-ID: <001501cb499c$1429f150$3c7dd3f0$@scilab.org> Hi, Scilab version ? [a,b] = getdebuginfo() ? LabVIEW cannot initialize the script server ? : Labview does not find Scilab. Please check that your installation is valid. What is the result of : W = win64() R = winqueryreg('HKEY_LOCAL_MACHINE','SOFTWARE\Scilab','LASTINSTALL') P = winqueryreg('HKEY_LOCAL_MACHINE','SOFTWARE\Scilab\'+R,'SCIPATH') S = isfile(P+'\bin\call_scilab.dll') Allan De : Calmon Martin [mailto:martin.calmon at epfl.ch] Envoy? : mardi 31 ao?t 2010 18:32 ? : users at lists.scilab.org Objet : [scilab-Users] LabView Gateway When trying to launch one of the example VIs SciLab/LabView gateway, I have the following error message : *** Error 1046 occurred at LabVIEW: LabVIEW cannot initialize the script server. Ensure the server software is installed. in Scilab Life.vi Possible reason(s): LabVIEW: LabVIEW cannot initialize the script server. Ensure the server software is installed. *** Thanks for your help... _____ Martin CALMON EPFL/STI/IGM/LMH Assistant +41 (0)21 69 32502 +41 (0)78 65 75020 -------------- next part -------------- An HTML attachment was scrubbed... URL: From Peter.Cusack at csiro.au Wed Sep 1 05:35:10 2010 From: Peter.Cusack at csiro.au (Peter.Cusack at csiro.au) Date: Wed, 1 Sep 2010 13:35:10 +1000 Subject: [scilab-Users] Elliptic integral In-Reply-To: <4C7CC38A.3030306@limsi.fr> References: <4C7CC38A.3030306@limsi.fr> Message-ID: Thanks Mathieu; That leads to a problem that I was trying to avoid, having to install a compiler then master enough of it to link code. If it is the only way out, then I'll try, but it seems much harder than just getting an internal function to work. On the upside though, there are some links to some very good documentation there that might help me find a solution (if I can ever read enough). Cheers; Peter. > -----Original Message----- > From: Mathieu Dubois [mailto:mathieu.dubois at limsi.fr] > Sent: Tuesday, 31 August 2010 18:56 > To: Cusack, Peter (CMSE, Lindfield) > Subject: Re: [scilab-Users] Elliptic integral > > Hello Peter, > > I know nothing about elliptic integrals but there is a scilab function > that may help you: %asn > > Otherwise I found this website: > http://www.nag.co.uk/doc/techrep/html/TR5_09/Tr5_09.asp (there is an > example for elliptic integrals of the second kind). > > HTH, > Mathieu > > > On 08/31/2010 01:44 AM, Peter.Cusack at csiro.au wrote: > > Hi all. > > > > I'm writing some code to simulate a magnetic field. It uses elliptic > integrals of the first and second kind. The elliptic integral of the > second kind is not part of the Scilab function list, so I created one as > shown below. > > > > -->deff('y=f(t,k)','y=sqrt((1-(k*t)^2)/(1-t^2))') //Core definition > for integral > > -->deff('[ec]=elliptic_ec(k)','ec=intg(0,1,list(f,k))') //Second kind, > not built into SciLab > > > > When this runs, I get the following error message: > > > > !--error 98 > > Variable returned by scilab argument function is incorrect. > > > > at line 2 of function elliptic_ec called by : > > at line 2 of function Bx called by : > > at line 2 of function Bxt called by : > > Bcentre=Bxt(0,0) //*Field at centre of winding*/ > > > > I'm looking for help to get past this. If the variable is incorrect, > what should it be and how can I correct it? > > > > If, as I suspect, the error is what's left after a failed computation, > can someone point me to a more reliable method to calculate the elliptic > integral? > > > > Cheers; > > > > Peter. > > > > Peter Cusack, BE, MSc > > Control Engineer > > CSIRO Materials Science and Engineering > > CSIRO > > > > Phone: +61 2 9413 7123 | Fax: +61 2 9413 7200 > > peter.cusack at csiro.au | www.csiro.au | www.csiro.au/cmse > > Address: PO Box 218, Lindfield, NSW 2070, Australia > > > > PLEASE NOTE > > The information contained in this email may be confidential or > privileged. Any unauthorised use or disclosure is prohibited. If you > have received this email in error, please delete it immediately and > notify the sender by return email. Thank you. To the extent permitted by > law, CSIRO does not represent, warrant and/or guarantee that the > integrity of this communication has been maintained or that the > communication is free of errors, virus, interception or interference. > > > > Please consider the environment before printing this email. > > > > From martin.calmon at epfl.ch Wed Sep 1 10:05:55 2010 From: martin.calmon at epfl.ch (Calmon Martin) Date: Wed, 1 Sep 2010 10:05:55 +0200 Subject: [scilab-Users] LabView Gateway In-Reply-To: <001501cb499c$1429f150$3c7dd3f0$@scilab.org> References: <94C4B75340A6604499A5D51D19BE8F16EF23891EDB@REX2.intranet.epfl.ch>,<001501cb499c$1429f150$3c7dd3f0$@scilab.org> Message-ID: <94C4B75340A6604499A5D51D19BE8F16EF23891EE2@REX2.intranet.epfl.ch> -->W = win64() W = T --> -->R = winqueryreg('HKEY_LOCAL_MACHINE','SOFTWARE\Scilab','LASTINSTALL') R = scilab-5.3.0-beta-2 (64-bit) --> -->P = winqueryreg('HKEY_LOCAL_MACHINE','SOFTWARE\Scilab\'+R,'SCIPATH') P = D:\scilab-5.3.0-beta-2 --> -->S = isfile(P+'\bin\call_scilab.dll') S = T -->[a,b] = getdebuginfo() b = !Version: scilab-5.3.0-beta-2 ! ! ! !Compilation date: Jul 27 2010 ! ! ! !Compilation time: 16:48:03 ! ! ! !Compiler Architecture: X64 ! ! ! !Compiled with Intel compiler ! ! ! !XML version: 2.4.26 ! ! ! !Tcl/Tk: Enable ! ! ! !TCL version: 8.5.2 ! ! ! !TK version: 8.5.2 ! ! ! !Path separator: ; ! ! ! !Directory separator: \ ! ! ! !PCRE Version: 8.2 ! a = !Memory in use: 76 % ! ! ! !Total Physical Memory (Kbytes): 4121668 ! ! ! !Free Physical Memory (Kbytes): 964400 ! ! ! !Total Paging File (Kbytes): 8441112 ! ! ! !Free Paging File (Kbytes): 4196480 ! ! ! !Total Virtual Memory (Kbytes): 8589934464 ! ! ! !Free Virtual Memory (Kbytes): 8589237236 ! ! ! !Free Extended Memory (Kbytes): 0 ! ! ! !Operating System: Windows Vista x64 ! ! ! !Intel(R) Core(TM)2 Extreme CPU X9100 @ 3.06GHz ! ! ! !Number of processors: 2 ! ! ! !Video card: NVIDIA Quadro FX 3700M ! ! ! !Video card driver version: 8.16.11.8825 ! ! ! !Screen size: 1920 x 1200 32 bits ! ! ! !Number of Monitors: 1 ! ! ! !Path: D:/scilab-5.3.0-beta-2/bin;C:\Program Files (x86)\Intel\MPI-RT\3.2.! ! 1.009\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:! ! \Program Files (x86)\Common Files\Lenovo;C:\Program Files (x86)\Thin! ! kPad\ConnectUtilities\;C:\Program Files\MATLAB\R2008b\bin;C:\Program! ! Files\MATLAB\R2008b\bin\win64;C:\Program Files (x86)\SSH Communicat! ! ions Security\SSH Tectia\SSH Tectia AUX;C:\Program Files (x86)\SSH C! ! ommunications Security\SSH Tectia\SSH Tectia AUX\Support binaries;C:! ! \Program Files (x86)\SSH Communications Security\SSH Tectia\SSH Tect! ! ia Broker;C:\Program Files (x86)\SSH Communications Security\SSH Tec! ! tia\SSH Tectia Client;C:\Program Files (x86)\IVI Foundation\IVI\bin;! ! C:\Program Files (x86)\IVI Foundation\VISA\WinNT\Bin\;C:\PROGRA~2\IV! ! IFOU~1\VISA\WinNT\Bin;C:\Program Files (x86)\IVI Foundation\VISA\Win! ! NT\Bin;C:\Program Files\IVI Foundation\VISA\Win64\Bin\;C:\IFOR\WIN\B! ! IN;C:\IFOR\WIN\BIN\EN_US;C:\Program Files\IVI Foundation\IVI\bin;C:\! ! Program Files (x86)\Common Files\DivX Shared\;C:\Program Files\Intel! ! \WiFi\bin\;C:\Program Files\Common Files\Intel\WirelessCommon\;C:\Pr! ! ogram Files (x86)\HBM\QuantumX Assistant;C:\Program Files (x86)\HBM\! ! QuantumX LabVIEW Driver;C:\Program Files (x86)\VCollab\VCollab Prese! ! nter 2010;C:\Program Files (x86)\QuickTime Alternative\QTSystem\ ! ! ! !ComSpec: C:\Windows\system32\cmd.exe ! ! ! !TMP : C:\Users\calmon\AppData\Local\Temp ! ! ! !TEMP: C:\Users\calmon\AppData\Local\Temp ! ! ! !WSCI: D:\scilab-5.3.0-beta-2 ! ! ! !SCIHOME: C:\Users\calmon\AppData\Roaming\Scilab\scilab-5.3.0-beta-2 ! ________________________________ Martin CALMON EPFL/STI/IGM/LMH Assistant +41 (0)21 69 32502 +41 (0)78 65 75020 ________________________________ De : Allan CORNET [allan.cornet at scilab.org] Date d'envoi : mercredi 1 septembre 2010 08:08 ? : users at lists.scilab.org Objet : RE: [scilab-Users] LabView Gateway Hi, Scilab version ? [a,b] = getdebuginfo() ? LabVIEW cannot initialize the script server ? : Labview does not find Scilab. Please check that your installation is valid. What is the result of : W = win64() R = winqueryreg('HKEY_LOCAL_MACHINE','SOFTWARE\Scilab','LASTINSTALL') P = winqueryreg('HKEY_LOCAL_MACHINE','SOFTWARE\Scilab\'+R,'SCIPATH') S = isfile(P+'\bin\call_scilab.dll') Allan De : Calmon Martin [mailto:martin.calmon at epfl.ch] Envoy? : mardi 31 ao?t 2010 18:32 ? : users at lists.scilab.org Objet : [scilab-Users] LabView Gateway When trying to launch one of the example VIs SciLab/LabView gateway, I have the following error message : *** Error 1046 occurred at LabVIEW: LabVIEW cannot initialize the script server. Ensure the server software is installed. in Scilab Life.vi Possible reason(s): LabVIEW: LabVIEW cannot initialize the script server. Ensure the server software is installed. *** Thanks for your help... ________________________________ Martin CALMON EPFL/STI/IGM/LMH Assistant +41 (0)21 69 32502 +41 (0)78 65 75020 -------------- next part -------------- An HTML attachment was scrubbed... URL: From allan.cornet at scilab.org Wed Sep 1 10:12:57 2010 From: allan.cornet at scilab.org (Allan CORNET) Date: Wed, 1 Sep 2010 10:12:57 +0200 Subject: [scilab-Users] RE : [scilab-Users] LabView Gateway In-Reply-To: <94C4B75340A6604499A5D51D19BE8F16EF23891EE2@REX2.intranet.epfl.ch> References: <94C4B75340A6604499A5D51D19BE8F16EF23891EDB@REX2.intranet.epfl.ch>,<001501cb499c$1429f150$3c7dd3f0$@scilab.org> <94C4B75340A6604499A5D51D19BE8F16EF23891EE2@REX2.intranet.epfl.ch> Message-ID: <002401cb49ad$7c235010$7469f030$@scilab.org> Hi, LabView is a 32 bits application then you need to use also Scilab 32 bits Please uninstall previous Scilab and install Scilab 32 bits version for windows Allan De : Calmon Martin [mailto:martin.calmon at epfl.ch] Envoy? : mercredi 1 septembre 2010 10:06 ? : users at lists.scilab.org Objet : [scilab-Users] RE : [scilab-Users] LabView Gateway -->W = win64() W = T --> -->R = winqueryreg('HKEY_LOCAL_MACHINE','SOFTWARE\Scilab','LASTINSTALL') R = scilab-5.3.0-beta-2 (64-bit) --> -->P = winqueryreg('HKEY_LOCAL_MACHINE','SOFTWARE\Scilab\'+R,'SCIPATH') P = D:\scilab-5.3.0-beta-2 --> -->S = isfile(P+'\bin\call_scilab.dll') S = T -->[a,b] = getdebuginfo() b = !Version: scilab-5.3.0-beta-2 ! ! ! !Compilation date: Jul 27 2010 ! ! ! !Compilation time: 16:48:03 ! ! ! !Compiler Architecture: X64 ! ! ! !Compiled with Intel compiler ! ! ! !XML version: 2.4.26 ! ! ! !Tcl/Tk: Enable ! ! ! !TCL version: 8.5.2 ! ! ! !TK version: 8.5.2 ! ! ! !Path separator: ; ! ! ! !Directory separator: \ ! ! ! !PCRE Version: 8.2 ! a = !Memory in use: 76 % ! ! ! !Total Physical Memory (Kbytes): 4121668 ! ! ! !Free Physical Memory (Kbytes): 964400 ! ! ! !Total Paging File (Kbytes): 8441112 ! ! ! !Free Paging File (Kbytes): 4196480 ! ! ! !Total Virtual Memory (Kbytes): 8589934464 ! ! ! !Free Virtual Memory (Kbytes): 8589237236 ! ! ! !Free Extended Memory (Kbytes): 0 ! ! ! !Operating System: Windows Vista x64 ! ! ! !Intel(R) Core(TM)2 Extreme CPU X9100 @ 3.06GHz ! ! ! !Number of processors: 2 ! ! ! !Video card: NVIDIA Quadro FX 3700M ! ! ! !Video card driver version: 8.16.11.8825 ! ! ! !Screen size: 1920 x 1200 32 bits ! ! ! !Number of Monitors: 1 ! ! ! !Path: D:/scilab-5.3.0-beta-2/bin;C:\Program Files (x86)\Intel\MPI-RT\3.2.! ! 1.009\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:! ! \Program Files (x86)\Common Files\Lenovo;C:\Program Files (x86)\Thin! ! kPad\ConnectUtilities\;C:\Program Files\MATLAB\R2008b\bin;C:\Program! ! Files\MATLAB\R2008b\bin\win64;C:\Program Files (x86)\SSH Communicat! ! ions Security\SSH Tectia\SSH Tectia AUX;C:\Program Files (x86)\SSH C! ! ommunications Security\SSH Tectia\SSH Tectia AUX\Support binaries;C:! ! \Program Files (x86)\SSH Communications Security\SSH Tectia\SSH Tect! ! ia Broker;C:\Program Files (x86)\SSH Communications Security\SSH Tec! ! tia\SSH Tectia Client;C:\Program Files (x86)\IVI Foundation\IVI\bin;! ! C:\Program Files (x86)\IVI Foundation\VISA\WinNT\Bin\;C:\PROGRA~2\IV! ! IFOU~1\VISA\WinNT\Bin;C:\Program Files (x86)\IVI Foundation\VISA\Win! ! NT\Bin;C:\Program Files\IVI Foundation\VISA\Win64\Bin\;C:\IFOR\WIN\B! ! IN;C:\IFOR\WIN\BIN\EN_US;C:\Program Files\IVI Foundation\IVI\bin;C:\! ! Program Files (x86)\Common Files\DivX Shared\;C:\Program Files\Intel! ! \WiFi\bin\;C:\Program Files\Common Files\Intel\WirelessCommon\;C:\Pr! ! ogram Files (x86)\HBM\QuantumX Assistant;C:\Program Files (x86)\HBM\! ! QuantumX LabVIEW Driver;C:\Program Files (x86)\VCollab\VCollab Prese! ! nter 2010;C:\Program Files (x86)\QuickTime Alternative\QTSystem\ ! ! ! !ComSpec: C:\Windows\system32\cmd.exe ! ! ! !TMP : C:\Users\calmon\AppData\Local\Temp ! ! ! !TEMP: C:\Users\calmon\AppData\Local\Temp ! ! ! !WSCI: D:\scilab-5.3.0-beta-2 ! ! ! !SCIHOME: C:\Users\calmon\AppData\Roaming\Scilab\scilab-5.3.0-beta-2 ! _____ Martin CALMON EPFL/STI/IGM/LMH Assistant +41 (0)21 69 32502 +41 (0)78 65 75020 _____ De : Allan CORNET [allan.cornet at scilab.org] Date d'envoi : mercredi 1 septembre 2010 08:08 ? : users at lists.scilab.org Objet : RE: [scilab-Users] LabView Gateway Hi, Scilab version ? [a,b] = getdebuginfo() ? LabVIEW cannot initialize the script server ? : Labview does not find Scilab. Please check that your installation is valid. What is the result of : W = win64() R = winqueryreg('HKEY_LOCAL_MACHINE','SOFTWARE\Scilab','LASTINSTALL') P = winqueryreg('HKEY_LOCAL_MACHINE','SOFTWARE\Scilab\'+R,'SCIPATH') S = isfile(P+'\bin\call_scilab.dll') Allan De : Calmon Martin [mailto:martin.calmon at epfl.ch] Envoy? : mardi 31 ao?t 2010 18:32 ? : users at lists.scilab.org Objet : [scilab-Users] LabView Gateway When trying to launch one of the example VIs SciLab/LabView gateway, I have the following error message : *** Error 1046 occurred at LabVIEW: LabVIEW cannot initialize the script server. Ensure the server software is installed. in Scilab Life.vi Possible reason(s): LabVIEW: LabVIEW cannot initialize the script server. Ensure the server software is installed. *** Thanks for your help... _____ Martin CALMON EPFL/STI/IGM/LMH Assistant +41 (0)21 69 32502 +41 (0)78 65 75020 -------------- next part -------------- An HTML attachment was scrubbed... URL: From fs.andre at gmail.com Wed Sep 1 19:56:02 2010 From: fs.andre at gmail.com (=?ISO-8859-1?Q?Andr=E9_FS?=) Date: Wed, 1 Sep 2010 14:56:02 -0300 Subject: Passing arguments by reference Message-ID: Hello, people. Is there any special operator to do that? -->function f(x) --> (?)x = (?)x+1 -->endfunction; -->a=1; -->f(a); -->disp(a); 2 -- Andr? FS Aeronautical Engineering Student Instituto Tecnol?gico de Aeron?utica (www.ita.br) CENIC (http://www.cenic.biz/index_1.html) From jewu at gmx.net Wed Sep 1 21:00:15 2010 From: jewu at gmx.net (Jens Wunderlich) Date: Wed, 01 Sep 2010 21:00:15 +0200 Subject: graphic axis tic label with two lines Message-ID: <4C7EA2BF.7040607@gmx.net> Hi all, is it possible to have the tics of let's say the x-axis labelled with a two-lines string? In my case I like to have labels with date and time. These labels are too long and are printed overlapping. To avoid this it would be nice to have the time below the date. I tried: //working example with all in one line ha=gca(); ha.x_ticks.labels(1) = '2010-09-01 20:55'; //this doesn't work ha.x_ticks.labels(2) = ['2010-09-01' '20:55' ] Any help would be appreciated. Thanks, Jens From antoine.monmayrant at laas.fr Wed Sep 1 22:27:13 2010 From: antoine.monmayrant at laas.fr (Antoine Monmayrant) Date: Wed, 01 Sep 2010 22:27:13 +0200 Subject: [scilab-Users] graphic axis tic label with two lines In-Reply-To: <4C7EA2BF.7040607@gmx.net> References: <4C7EA2BF.7040607@gmx.net> Message-ID: <4C7EB721.50203@laas.fr> Jens Wunderlich a ?crit : > Hi all, > > is it possible to have the tics of let's say the x-axis labelled with > a two-lines string? > In my case I like to have labels with date and time. These labels are > too long and are printed overlapping. To avoid this it would be nice > to have the time below the date. > > I tried: > > //working example with all in one line > ha=gca(); > > ha.x_ticks.labels(1) = '2010-09-01 20:55'; > > //this doesn't work > ha.x_ticks.labels(2) = ['2010-09-01' '20:55' ] > > Any help would be appreciated. > > Thanks, > Jens You can try this latex horror: x=[1:10]; y=sin(x); h=scf(); plot(x,y); a=gca(); a.x_ticks.labels(5)="$ \begin{matrix}\text{First line}\\ \text{Second line}\end{matrix} $"; But I think there is also a package you can use to rotate the ticks to avoid overlapping. Antoine From clemence.davoust at scilab.org Thu Sep 2 11:28:10 2010 From: clemence.davoust at scilab.org (=?ISO-8859-1?Q?Cl=E9mence_DAVOUST?=) Date: Thu, 2 Sep 2010 11:28:10 +0200 Subject: Release of Scilab 5.3.0 - beta 3 Message-ID: <4A8C7414-78BF-40F1-862B-9F698B88CF19@scilab.org> Dear all, The Scilab R&D Team is pleased to announce the release of Scilab 5.3.0 beta 3. Download and information can be found at: http://www.scilab.org/en/products/scilab/download/5.3.0-beta-3 We invite you to test this beta version and to report possible bugs on Scilab bug tracker at: http://bugzilla.scilab.org/ Best Regards ----------------------------------------------- The Scilab Consortium R&D Team ----------------------------------------------- Digiteo Domaine de Voluceau Rocquencourt - B.P. 105 78153 Le Chesnay Cedex - France From mathieu.dubois at limsi.fr Thu Sep 2 15:13:23 2010 From: mathieu.dubois at limsi.fr (Mathieu Dubois) Date: Thu, 02 Sep 2010 15:13:23 +0200 Subject: [scilab-Users] graphic axis tic label with two lines In-Reply-To: <4C7EB721.50203@laas.fr> References: <4C7EA2BF.7040607@gmx.net> <4C7EB721.50203@laas.fr> Message-ID: <4C7FA2F3.3050803@limsi.fr> Hi, > But I think there is also a package you can use to rotate the ticks to > avoid overlapping. Another (complex) solution is to draw the labels with xstring. Assuming the labels are already set, you could try: X=ha.x_ticks.locations; // Get the locations on X axis str=ha.x_ticks.labels; // Get the labels xstring(X, min(y)-0.1, str, 45); // Draw rotated strings // Set clip_state to "off" for each string e=a.children(1); n_ticks=length(e.children); for i=1:n_ticks e.children(i).clip_state="off"; end // Clear the ticks ha.x_ticks.labels=['']; Mathieu From jewu at gmx.net Thu Sep 2 20:45:29 2010 From: jewu at gmx.net (Jens Wunderlich) Date: Thu, 02 Sep 2010 20:45:29 +0200 Subject: [scilab-Users] graphic axis tic label with two lines In-Reply-To: <4C7FA2F3.3050803@limsi.fr> References: <4C7EA2BF.7040607@gmx.net> <4C7EB721.50203@laas.fr> <4C7FA2F3.3050803@limsi.fr> Message-ID: <4C7FF0C9.50700@gmx.net> Thanks Antoine and Mathieu for these suggestions. This should solve the problem for my application. Jens From mathieu.dubois at limsi.fr Mon Sep 6 09:29:13 2010 From: mathieu.dubois at limsi.fr (Mathieu Dubois) Date: Mon, 06 Sep 2010 09:29:13 +0200 Subject: [scilab-Users] Passing arguments by reference In-Reply-To: References: Message-ID: <4C849849.3010208@limsi.fr> AFAIK, there is no way to do that... However there is a lengthy article on scilab wiki (http://wiki.scilab.org/) called "Emulate Object Oriented " which might help you. Mathieu On 09/01/2010 07:56 PM, Andr? FS wrote: > Hello, people. > > Is there any special operator to do that? > > -->function f(x) > --> (?)x = (?)x+1 > -->endfunction; > -->a=1; > -->f(a); > -->disp(a); > 2 > > -- > Andr? FS > Aeronautical Engineering Student > Instituto Tecnol?gico de Aeron?utica (www.ita.br) > CENIC (http://www.cenic.biz/index_1.html) > -------------- next part -------------- An HTML attachment was scrubbed... URL: From nicolas.fezans at gmail.com Mon Sep 6 10:56:01 2010 From: nicolas.fezans at gmail.com (Nicolas FEZANS) Date: Mon, 6 Sep 2010 10:56:01 +0200 Subject: [scilab-Users] Passing arguments by reference In-Reply-To: <4C849849.3010208@limsi.fr> References: <4C849849.3010208@limsi.fr> Message-ID: Hi all, well I did absolutely need that in the past and could do it by means of strings containing the name of the variables or functions I wanted to pass and the "execstr" function. It is not 100% ideal for various reasons but it did work very well and fast. I later tried to remove some of them of my code (when the amount data were small) but it lead to significantly slower execution, so I ended up letting all of them. I hope it helps! Nicolas On Mon, Sep 6, 2010 at 9:29 AM, Mathieu Dubois wrote: > AFAIK, there is no way to do that... > > However there is a lengthy article on scilab wiki (http://wiki.scilab.org/) > called "Emulate Object Oriented" which might help you. > > Mathieu > > On 09/01/2010 07:56 PM, Andr? FS wrote: > > Hello, people. > > Is there any special operator to do that? > > -->function f(x) > --> (?)x = (?)x+1 > -->endfunction; > -->a=1; > -->f(a); > -->disp(a); > 2 > > -- > Andr? FS > Aeronautical Engineering Student > Instituto Tecnol?gico de Aeron?utica (www.ita.br) > CENIC (http://www.cenic.biz/index_1.html) > > From calixte.denizet at ac-rennes.fr Tue Sep 7 00:31:15 2010 From: calixte.denizet at ac-rennes.fr (calixte) Date: Tue, 07 Sep 2010 00:31:15 +0200 Subject: [scilab-Users] Passing arguments by reference In-Reply-To: References: <4C849849.3010208@limsi.fr> Message-ID: <1283812275.8217.52.camel@Calixte-Dell> Le lundi 06 septembre 2010 ? 10:56 +0200, Nicolas FEZANS a ?crit : Hi, If you define f in an external interface, it's possible (and fast) in using the function intppty (see help intppty) Calixte > Hi all, > > well I did absolutely need that in the past and could do it by means > of strings containing the name of the variables or functions I wanted > to pass and the "execstr" function. It is not 100% ideal for various > reasons but it did work very well and fast. I later tried to remove > some of them of my code (when the amount data were small) but it lead > to significantly slower execution, so I ended up letting all of them. > > I hope it helps! > > Nicolas > > > On Mon, Sep 6, 2010 at 9:29 AM, Mathieu Dubois wrote: > > AFAIK, there is no way to do that... > > > > However there is a lengthy article on scilab wiki (http://wiki.scilab.org/) > > called "Emulate Object Oriented" which might help you. > > > > Mathieu > > > > On 09/01/2010 07:56 PM, Andr? FS wrote: > > > > Hello, people. > > > > Is there any special operator to do that? > > > > -->function f(x) > > --> (?)x = (?)x+1 > > -->endfunction; > > -->a=1; > > -->f(a); > > -->disp(a); > > 2 > > > > -- > > Andr? FS > > Aeronautical Engineering Student > > Instituto Tecnol?gico de Aeron?utica (www.ita.br) > > CENIC (http://www.cenic.biz/index_1.html) > > > > From guylaine.collewet at cemagref.fr Tue Sep 7 18:21:35 2010 From: guylaine.collewet at cemagref.fr (Collewet Guylaine) Date: Tue, 7 Sep 2010 18:21:35 +0200 Subject: amount of memory available Message-ID: Hello, I would like to know what is the maximum amount of memory available in scilab 5.2.2 I could not get more than approximately 110 M0 using both stacksize and gstacksize although the total amount of memory available on my computer is 700 MO thanks Guylaine Collewet -------------- next part -------------- An HTML attachment was scrubbed... URL: From sunil.nandihalli at gmail.com Wed Sep 8 07:11:32 2010 From: sunil.nandihalli at gmail.com (Sunil S Nandihalli) Date: Wed, 8 Sep 2010 10:41:32 +0530 Subject: compiling the giws-examples In-Reply-To: References: Message-ID: Hello everybody, I am here because I was trying to use giws. Its really a wonderfull idea .. to call java from c++ .. I tried to compile the examples and I get the following error when I try to compile the example2.. The compile log is ... /usr/lib/jvm/java-6-sun-1.6.0.20/bin/javac example2/MyObjectWithArray.java ../../giws -f MyObjectWithArray.giws.xml -p example2.hxx generated ... example2.cpp generated ... g++ main.cpp example2.cpp example2.hxx -g -ljvm -L/usr/lib/jvm/java-6-sun-1.6.0.20/jre/lib/i386 -L/usr/lib/jvm/java-6-sun-1.6.0.20/jre/lib/i386/client/ -I/usr/lib/jvm/java-6-sun-1.6.0.20/include -I/usr/lib/jvm/java-6-sun-1.6.0.20/include/linux -o myExample2 main.cpp: In function ?int main()?: main.cpp:87: warning: deprecated conversion from string constant to ?char*? main.cpp:87: warning: deprecated conversion from string constant to ?char*? main.cpp:87: warning: deprecated conversion from string constant to ?char*? example2.cpp: In member function ?bool* example2::MyObjectWithArray::dealingWithBooleans(bool*, int)?: *example2.cpp:339: error: invalid static_cast from type ?bool*? to type ?jboolean*?* make: *** [myExample2] Error 1 I am running on ubuntu 10.04 java version java-6-sun-1.6.0.20 g++ -v gives g++ -v Using built-in specs. Target: i486-linux-gnu Configured with: ../src/configure -v --with-pkgversion='Ubuntu 4.4.3-4ubuntu5' --with-bugurl=file:///usr/share/doc/gcc-4.4/README.Bugs --enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr --enable-shared --enable-multiarch --enable-linker-build-id --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.4 --program-suffix=-4.4 --enable-nls --enable-clocale=gnu --enable-libstdcxx-debug --enable-plugin --enable-objc-gc --enable-targets=all --disable-werror --with-arch-32=i486 --with-tune=generic --enable-checking=release --build=i486-linux-gnu --host=i486-linux-gnu --target=i486-linux-gnu Thread model: posix gcc version 4.4.3 (Ubuntu 4.4.3-4ubuntu5) can anybody tell me how to fix this.. I am able to compile and run the other 3 examples. Thanks for reading this.. Sunil. -------------- next part -------------- An HTML attachment was scrubbed... URL: From einzigsue at gmail.com Wed Sep 8 03:42:52 2010 From: einzigsue at gmail.com (=?UTF-8?B?5a2Z5pyI?=) Date: Wed, 8 Sep 2010 11:42:52 +1000 Subject: scilab automatically close after excuting plot Message-ID: Hi All, I want to plot 200 points in scilab and excuted the following codes 10 times continuously. u=mopen('0r.dat'); [n a b]=mfscanf(-1,u,'%s %e'); mclose(u); c=matrix(b,2,200); u=mopen('0.dat'); [n a b]=mfscanf(-1,u,'%s %e'); mclose(u); d=matrix(b,2,200); plot(d(1,:),d(2,:)./c(2,:)); The figure is printed correctly every time. However, after I leave this software alone for about 2 hours, when I retype this code again, scilab automatically close after excuting plot. I tried to remove the software and install it again. It solved the problem at the first time, but after I excute the codes again. the problem happened again. I decided to reinstall scilab the second time. but this time the problem is not solved. WHY? How can I fix it? -- ?? mit freundlichen gr??en -------------- next part -------------- An HTML attachment was scrubbed... URL: From sylvestre.ledru at scilab.org Wed Sep 8 08:40:58 2010 From: sylvestre.ledru at scilab.org (Sylvestre Ledru) Date: Wed, 08 Sep 2010 08:40:58 +0200 Subject: [scilab-Users] compiling the giws-examples In-Reply-To: References: Message-ID: <1283928058.14304.2178.camel@zlarin> Hello, Le mercredi 08 septembre 2010 ? 10:41 +0530, Sunil S Nandihalli a ?crit : > Hello everybody, > I am here because I was trying to use giws. > > example2.cpp: In member function ?bool* > example2::MyObjectWithArray::dealingWithBooleans(bool*, int)?: > example2.cpp:339: error: invalid static_cast from type ?bool*? to type > ?jboolean*? > make: *** [myExample2] Error 1 Which version of giws are you using ? Cheers, Sylvestre -- ------------------------- Sylvestre Ledru ------------------------- The Scilab Consortium Digiteo Domaine de Voluceau Rocquencourt - B.P. 105 78153 Le Chesnay Cedex France From sunil.nandihalli at gmail.com Wed Sep 8 09:07:05 2010 From: sunil.nandihalli at gmail.com (Sunil S Nandihalli) Date: Wed, 8 Sep 2010 12:37:05 +0530 Subject: [scilab-Users] compiling the giws-examples In-Reply-To: <1283928058.14304.2178.camel@zlarin> References: <1283928058.14304.2178.camel@zlarin> Message-ID: Hi Sylvestre, giws -v gives the following output.. Swig 1.0.5 Copyright (C) 2007-2008 INRIA / Scilab This software is governed by the CeCILL license under French law and abiding by the rules of distribution of free software. You can use, modify and/ or redistribute the software under the terms of the CeCILL license as circulated by CEA, CNRS and INRIA at the following URL http://www.cecill.info/ . Written by Sylvestre Ledru Thanks, Sunil. On Wed, Sep 8, 2010 at 12:10 PM, Sylvestre Ledru wrote: > Hello, > > Le mercredi 08 septembre 2010 ? 10:41 +0530, Sunil S Nandihalli a > ?crit : > > Hello everybody, > > I am here because I was trying to use giws. > > > > example2.cpp: In member function ?bool* > > example2::MyObjectWithArray::dealingWithBooleans(bool*, int)?: > > example2.cpp:339: error: invalid static_cast from type ?bool*? to type > > ?jboolean*? > > make: *** [myExample2] Error 1 > > Which version of giws are you using ? > > Cheers, > Sylvestre > > -- > ------------------------- > Sylvestre Ledru > ------------------------- > The Scilab Consortium > Digiteo > Domaine de Voluceau > Rocquencourt - B.P. 105 > 78153 Le Chesnay Cedex > France > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From sylvestre.ledru at scilab.org Wed Sep 8 09:10:38 2010 From: sylvestre.ledru at scilab.org (Sylvestre Ledru) Date: Wed, 08 Sep 2010 09:10:38 +0200 Subject: [scilab-Users] compiling the giws-examples In-Reply-To: References: <1283928058.14304.2178.camel@zlarin> Message-ID: <1283929838.14304.2297.camel@zlarin> There is the following bug in this version. The following version fixed it: giws (1.0.6) * When using an array of bool, a static_cast was failing. Rollback to the classic cast. This bug has been introduced in the version 1.0.5 (Closes: #3) You should try the one available on the website: http://forge.scilab.org/index.php/p/giws/downloads/ By the way, I will probably release a new version managing inheritance soon. If you have any other questions, since it is not relevant to Scilab, please switch to the developer mailing list (dev at lists.scilab.org) Thanks, Sylvestre Le mercredi 08 septembre 2010 ? 12:37 +0530, Sunil S Nandihalli a ?crit : > Hi Sylvestre, > > > giws -v gives the following output.. > > > Swig 1.0.5 > Copyright (C) 2007-2008 INRIA / Scilab > This software is governed by the CeCILL license under French law and > abiding by the rules of distribution of free software. You can use, > modify and/ or redistribute the software under the terms of the CeCILL > license as circulated by CEA, CNRS and INRIA at the following URL > http://www.cecill.info/ . > > > Written by Sylvestre Ledru > > > Thanks, > Sunil. > > > > On Wed, Sep 8, 2010 at 12:10 PM, Sylvestre Ledru > wrote: > Hello, > > Le mercredi 08 septembre 2010 ? 10:41 +0530, Sunil S > Nandihalli a > ?crit : > > Hello everybody, > > I am here because I was trying to use giws. > > > > > example2.cpp: In member function ?bool* > > example2::MyObjectWithArray::dealingWithBooleans(bool*, > int)?: > > example2.cpp:339: error: invalid static_cast from type > ?bool*? to type > > ?jboolean*? > > make: *** [myExample2] Error 1 > > > Which version of giws are you using ? > > Cheers, > Sylvestre > > -- > ------------------------- > Sylvestre Ledru > ------------------------- > The Scilab Consortium > Digiteo > Domaine de Voluceau > Rocquencourt - B.P. 105 > 78153 Le Chesnay Cedex > France > > -- ------------------------- Sylvestre Ledru ------------------------- The Scilab Consortium Digiteo Domaine de Voluceau Rocquencourt - B.P. 105 78153 Le Chesnay Cedex France From sunil.nandihalli at gmail.com Wed Sep 8 10:12:32 2010 From: sunil.nandihalli at gmail.com (Sunil S Nandihalli) Date: Wed, 8 Sep 2010 13:42:32 +0530 Subject: [scilab-Users] compiling the giws-examples In-Reply-To: <1283929838.14304.2297.camel@zlarin> References: <1283928058.14304.2178.camel@zlarin> <1283929838.14304.2297.camel@zlarin> Message-ID: thanks Sylvestre, that fixed it .. here after I will make sure that I only email the dev list. Looking forward to your new release.. :) best regards, Sunil. On Wed, Sep 8, 2010 at 12:40 PM, Sylvestre Ledru wrote: > There is the following bug in this version. The following version fixed > it: > giws (1.0.6) > > * When using an array of bool, a static_cast was failing. > Rollback to the > classic cast. This bug has been introduced in the version > 1.0.5 > (Closes: #3) > > You should try the one available on the website: > http://forge.scilab.org/index.php/p/giws/downloads/ > > By the way, I will probably release a new version managing inheritance > soon. > > If you have any other questions, since it is not relevant to Scilab, > please switch to the developer mailing list (dev at lists.scilab.org) > > Thanks, > Sylvestre > > Le mercredi 08 septembre 2010 ? 12:37 +0530, Sunil S Nandihalli a > ?crit : > > Hi Sylvestre, > > > > > > giws -v gives the following output.. > > > > > > Swig 1.0.5 > > Copyright (C) 2007-2008 INRIA / Scilab > > This software is governed by the CeCILL license under French law and > > abiding by the rules of distribution of free software. You can use, > > modify and/ or redistribute the software under the terms of the CeCILL > > license as circulated by CEA, CNRS and INRIA at the following URL > > http://www.cecill.info/ . > > > > > > Written by Sylvestre Ledru > > > > > > Thanks, > > Sunil. > > > > > > > > On Wed, Sep 8, 2010 at 12:10 PM, Sylvestre Ledru > > wrote: > > Hello, > > > > Le mercredi 08 septembre 2010 ? 10:41 +0530, Sunil S > > Nandihalli a > > ?crit : > > > Hello everybody, > > > I am here because I was trying to use giws. > > > > > > > > example2.cpp: In member function ?bool* > > > example2::MyObjectWithArray::dealingWithBooleans(bool*, > > int)?: > > > example2.cpp:339: error: invalid static_cast from type > > ?bool*? to type > > > ?jboolean*? > > > make: *** [myExample2] Error 1 > > > > > > Which version of giws are you using ? > > > > Cheers, > > Sylvestre > > > > -- > > ------------------------- > > Sylvestre Ledru > > ------------------------- > > The Scilab Consortium > > Digiteo > > Domaine de Voluceau > > Rocquencourt - B.P. 105 > > 78153 Le Chesnay Cedex > > France > > > > > > -- > ------------------------- > Sylvestre Ledru > ------------------------- > The Scilab Consortium > Digiteo > Domaine de Voluceau > Rocquencourt - B.P. 105 > 78153 Le Chesnay Cedex > France > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From michael.baudin at scilab.org Wed Sep 8 16:15:15 2010 From: michael.baudin at scilab.org (=?ISO-8859-1?Q?Micha=EBl_Baudin?=) Date: Wed, 08 Sep 2010 16:15:15 +0200 Subject: [scilab-Users] amount of memory available In-Reply-To: References: Message-ID: <4C879A73.4050102@scilab.org> Hello, It actually depends on several factors, such as the operating system and the processes which are running at the time where you launch the stacksize("max") function. The upper bound is 2GB, but your 700MB are well under this limit, so that it should work. If you are able to close some other applications, you may see some increasing of the stack. But why do you want to increase the stack size, do you actually observe the "stack size exceeded!" message ? Best regards, Micha?l Baudin Le 07/09/2010 18:21, Collewet Guylaine a ?crit : > > Hello, > > I would like to know what is the maximum amount of memory available in > scilab 5.2.2 > > I could not get more than approximately 110 M0 using both stacksize > and gstacksize although the total amount of memory available on my > computer is 700 MO > > thanks > > Guylaine Collewet > -- 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 Sep 9 11:55:39 2010 From: mathieu.dubois at limsi.fr (Mathieu Dubois) Date: Thu, 09 Sep 2010 11:55:39 +0200 Subject: [scilab-Users] scilab automatically close after excuting plot In-Reply-To: References: Message-ID: <4C88AF1B.8050804@limsi.fr> Hello, On 09/08/2010 03:42 AM, ?? wrote: > Hi All, > > I want to plot 200 points in scilab and excuted the following codes 10 > times continuously. > > u=mopen('0r.dat'); > [n a b]=mfscanf(-1,u,'%s %e'); > mclose(u); > c=matrix(b,2,200); > u=mopen('0.dat'); > [n a b]=mfscanf(-1,u,'%s %e'); > mclose(u); > d=matrix(b,2,200); > plot(d(1,:),d(2,:)./c(2,:)); > > The figure is printed correctly every time. However, after I leave > this software alone for about 2 hours, when I retype this code again, > scilab automatically close after excuting plot. > > I tried to remove the software and install it again. It solved the > problem at the first time, but after I excute the codes again. the > problem happened again. I decided to reinstall scilab the second time. > but this time the problem is not solved. > > WHY? Your problem looks like a crash. If it is the case you may find a log file (under linux the name is something like hs_err_pidXXXXX.log). > How can I fix it? I don't think that reinstalling the software will improve the situation. Problems with plot are often related to graphics issue. Have a look at http://wiki.scilab.org/Graphical_issues_with_Scilab_5.0. There was a lot of messages on similar issues so you may have a look at the mailing lists archives... Another possibility is that you run out of memory (because you launch the code several times). In this case you should try to delete variables that are no longer needed. Sorry I cannot help you much, Mathieu From guylaine.collewet at cemagref.fr Thu Sep 9 12:06:20 2010 From: guylaine.collewet at cemagref.fr (Collewet Guylaine) Date: Thu, 9 Sep 2010 12:06:20 +0200 Subject: [scilab-Users] amount of memory available In-Reply-To: <4C879A73.4050102@scilab.org> References: <4C879A73.4050102@scilab.org> Message-ID: I forgot one question : do you know "where" is the memory allocated in a C function taken ? (I use calloc in own-written C functions interface with scilab) thank you Guylaine COLLEWET ________________________________ Cemagref 17, avenue de Cucill? CS 64427 35044 Rennes c?dex t?l : 02 23 48 21 67 fax : 02 23 48 21 15 mailto:guylaine.collewet at cemagref.fr ________________________________ ________________________________ De : Micha?l Baudin [mailto:michael.baudin at scilab.org] Envoy? : mercredi 8 septembre 2010 16:15 ? : users at lists.scilab.org Objet : Re: [scilab-Users] amount of memory available Hello, It actually depends on several factors, such as the operating system and the processes which are running at the time where you launch the stacksize("max") function. The upper bound is 2GB, but your 700MB are well under this limit, so that it should work. If you are able to close some other applications, you may see some increasing of the stack. But why do you want to increase the stack size, do you actually observe the "stack size exceeded!" message ? Best regards, Micha?l Baudin Le 07/09/2010 18:21, Collewet Guylaine a ?crit : Hello, I would like to know what is the maximum amount of memory available in scilab 5.2.2 I could not get more than approximately 110 M0 using both stacksize and gstacksize although the total amount of memory available on my computer is 700 MO thanks Guylaine Collewet -- 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 guylaine.collewet at cemagref.fr Thu Sep 9 12:08:02 2010 From: guylaine.collewet at cemagref.fr (Collewet Guylaine) Date: Thu, 9 Sep 2010 12:08:02 +0200 Subject: =?iso-8859-1?Q?RE=A0=3A_=5Bscilab-Users=5D_amount_of_memory_available?= References: <4C879A73.4050102@scilab.org> Message-ID: Hello, Thank you for your answer I am working under window XP and I would like to increase the stacksize in order to manage a huge set of elements (about 1.5 GO) In fact I did not notice that the units of stacksize function is 8 bytes, which means that 100 MO of stack corresponds in fact to 800 MO By the way, it seems that stacksize('max') does not work properly on my computer : -->stacksize('max') -->stacksize ans = 27130576. 33095. -->stacksize(1e8) -->stacksize ans = 1.000D+08 33095. Best regards Guylaine -------- Message d'origine-------- De: Micha?l Baudin [mailto:michael.baudin at scilab.org] Date: mer. 08/09/2010 16:15 ?: users at lists.scilab.org Objet : Re: [scilab-Users] amount of memory available Hello, It actually depends on several factors, such as the operating system and the processes which are running at the time where you launch the stacksize("max") function. The upper bound is 2GB, but your 700MB are well under this limit, so that it should work. If you are able to close some other applications, you may see some increasing of the stack. But why do you want to increase the stack size, do you actually observe the "stack size exceeded!" message ? Best regards, Micha?l Baudin Le 07/09/2010 18:21, Collewet Guylaine a ?crit : > > Hello, > > I would like to know what is the maximum amount of memory available in > scilab 5.2.2 > > I could not get more than approximately 110 M0 using both stacksize > and gstacksize although the total amount of memory available on my > computer is 700 MO > > thanks > > Guylaine Collewet > -- 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 j.s.strom at hslmg.de Fri Sep 10 00:56:47 2010 From: j.s.strom at hslmg.de (JensSimon) Date: Thu, 9 Sep 2010 22:56:47 +0000 (UTC) Subject: Elliptic integral References: Message-ID: writes: > > Hi all. > > I'm writing some code to simulate a magnetic field. It uses elliptic integrals of the first and second kind. > The elliptic integral of the second kind is not part of the Scilab function list, so I created one as shown below.... > Variable returned by scilab argument function is incorrect. > > at line 2 of function elliptic_ec called by : > at line 2 of function Bx called by : > at line 2 of function Bxt called by : > Bcentre=Bxt(0,0) //*Field at centre of winding*/ > > I'm looking for help to get past this. If the variable is incorrect, what should it be and how can I correct it? > > If, as I suspect, the error is what's left after a failed computation, can someone point me to a more reliable > method to calculate the elliptic integral? > > Cheers; > > Peter... > ------------------------------------------------------------------------ Hi Peter, You probably got the error message for arguments >1. In this case the sqrt returns an imaginary number, which cannot be handled by intg. For arguments <=1 your function works properly. However, I did not check if your code realizes the integral you intend to calculate correctly. Cheers, Jens From hinow at uwm.edu Thu Sep 9 23:51:21 2010 From: hinow at uwm.edu (Peter Hinow) Date: Thu, 9 Sep 2010 16:51:21 -0500 (CDT) Subject: how to write strings into a file without leading blank Message-ID: <791621935.201683.1284069080983.JavaMail.root@mail02.pantherlink.uwm.edu> Dear fellows, how can I write strings into a file without leading blank? With write(unit,'xxxxx') I obtain xxxxx but I want xxxxx It does not seem to be an issue of the string (I tried stripblanks, but that does not change the result). Thank you for all help. Cheers, Peter -- Peter Hinow, PhD Department of Mathematical Sciences University of Wisconsin - Milwaukee P.O. Box 413 Milwaukee, WI 53201-0413 USA phone: ++1 414 229 4933 https://pantherfile.uwm.edu/hinow/www/ From pierre.marechal at scilab.org Fri Sep 10 08:25:50 2010 From: pierre.marechal at scilab.org (Pierre MARECHAL) Date: Fri, 10 Sep 2010 08:25:50 +0200 Subject: [scilab-Users] how to write strings into a file without leading blank In-Reply-To: <791621935.201683.1284069080983.JavaMail.root@mail02.pantherlink.uwm.edu> References: <791621935.201683.1284069080983.JavaMail.root@mail02.pantherlink.uwm.edu> Message-ID: <4C89CF6E.1040501@scilab.org> Le 09/09/2010 23:51, Peter Hinow a ?crit : > Dear fellows, > how can I write strings into a file without leading blank? With > write(unit,'xxxxx') > I obtain > xxxxx > but I want > xxxxx > It does not seem to be an issue of the string (I tried stripblanks, but that does not change the result). > Thank you for all help. > Cheers, > Peter > Hi peter, mputl('text','yourfile.txt'); => http://www.scilab.org/product/man/mputl.html Cheers, Pierre -- ============================================== Pierre MARECHAL Ing?nieur Support et D?veloppements ------ Consortium Scilab Digiteo Domaine de Voluceau Rocquencourt - B.P. 105 78153 Le Chesnay Cedex ------ T?l : +33.1.39.63.56.81 ============================================== From j.s.strom at hslmg.de Fri Sep 10 10:50:02 2010 From: j.s.strom at hslmg.de (JensSimon) Date: Fri, 10 Sep 2010 08:50:02 +0000 (UTC) Subject: Terminate ODE() when a condition is true Message-ID: Hallo Scilab friends, Does anyone know a way with ode() to stop the solution of the differential equation (or of a system) when a certain condition is met (e.g. if a state variable y in ydot=f(t,y) passes zero)? Of course the results before that case should be available to the calling script. Kind regards, Jens From stephane.mottelet at utc.fr Fri Sep 10 11:42:33 2010 From: stephane.mottelet at utc.fr (Stephane Mottelet) Date: Fri, 10 Sep 2010 11:42:33 +0200 Subject: [scilab-Users] Terminate ODE() when a condition is true In-Reply-To: References: Message-ID: <20100910114233.28944udbr2ektbwg@webmail.utc.fr> JensSimon a ?crit?: > Hallo Scilab friends, > Does anyone know a way with ode() to stop the solution of the differential > equation (or of a system) when a certain condition is met (e.g. if a state > variable y in ydot=f(t,y) passes zero)? Of course the results > before that case > should be available to the calling script. > Kind regards, Jens > > see ode_root S. From j.s.strom at hslmg.de Fri Sep 10 12:29:14 2010 From: j.s.strom at hslmg.de (JensSimon) Date: Fri, 10 Sep 2010 10:29:14 +0000 (UTC) Subject: Terminate ODE() when a condition is true References: <20100910114233.28944udbr2ektbwg@webmail.utc.fr> Message-ID: Stephane Mottelet writes: ... > see ode_root > > S. Dear Stephane, That is exactly what I needed! And to my shame ode_root is in the See Also List of the ode help text. I should have found it alone. Thanks again, Jens From michael.baudin at scilab.org Fri Sep 10 16:15:33 2010 From: michael.baudin at scilab.org (=?ISO-8859-1?Q?Micha=EBl_Baudin?=) Date: Fri, 10 Sep 2010 16:15:33 +0200 Subject: =?ISO-8859-1?Q?RE=A0=3A_=5Bscilab-Users=5D_amount_of_?= =?ISO-8859-1?Q?memory_available?= In-Reply-To: References: <4C879A73.4050102@scilab.org> Message-ID: <4C8A3D85.60900@scilab.org> Here is what I can say : * the default size of the stack is 5 000 000 doubles, which corresponds to 40 MB that can be entirely filled with a dense square 2236 x 2236 matrix; * the upper limit of the size of the stack is 250 000 000 doubles, which corresponds to 2 GB that can be entirely filled with a dense square 15811 x 15811 matrix. You use a Windows XP 32 bits with Scilab 5.2.2. You should be able to increase your stack size up to 1.8 GB approximately, because Windows reserves some amount of memory for its own use. You may actually face a bug in Scilab 5.2.2, since there has been some activity on this side during the last months or so. If you will, you may try the 5.3.0-beta-3 : http://www.scilab.org/fr/products/scilab/download/5.3.0-beta-3 It may fix your bug. If not, please report it on our bug tracker : http://bugzilla.scilab.org/index.cgi Best regards, Micha?l Baudin PS function mstr = stacksize2memory ( sz ) // Converts the size of the stack to the corresponding memory in the OS m = sz * 64 / 8 if ( m < 10^3 ) then mstr = msprintf("%d B",floor(m)) elseif ( m < 10^6 ) then m = m/1.e3 mstr = msprintf("%d kB",floor(m)) elseif ( m < 10^9 ) then m = m/1.e6 mstr = msprintf("%d MB",floor(m)) else m = m/1.e9 mstr = msprintf("%d GB",floor(m)) end endfunction sz = 5000000; stacksize2memory (sz) // 40 MB n = floor(sqrt(sz)) // ~2236 x 2236 sz = 250000000; stacksize2memory (sz) // 2 GB n = floor(sqrt(sz)) // ~15811 x 15811 Le 09/09/2010 12:08, Collewet Guylaine a ?crit : > Hello, > > Thank you for your answer > > I am working under window XP and I would like to increase the stacksize in order to manage a huge set of elements (about 1.5 GO) > > In fact I did not notice that the units of stacksize function is 8 bytes, which means that 100 MO of stack corresponds in fact to 800 MO > > By the way, it seems that stacksize('max') does not work properly on my computer : > -->stacksize('max') > -->stacksize > ans = > 27130576. 33095. > -->stacksize(1e8) > -->stacksize > ans = > 1.000D+08 33095. > > > Best regards > > Guylaine > > > -------- Message d'origine-------- > De: Micha?l Baudin [mailto:michael.baudin at scilab.org] > Date: mer. 08/09/2010 16:15 > ?: users at lists.scilab.org > Objet : Re: [scilab-Users] amount of memory available > > Hello, > > It actually depends on several factors, such as the operating system and > the processes which are running at the time where you launch the > stacksize("max") function. The upper bound is 2GB, but your 700MB are > well under this limit, so that it should work. If you are able to close > some other applications, you may see some increasing of the stack. > > But why do you want to increase the stack size, do you actually observe > the "stack size exceeded!" message ? > > Best regards, > > Micha?l Baudin > > Le 07/09/2010 18:21, Collewet Guylaine a ?crit : >> Hello, >> >> I would like to know what is the maximum amount of memory available in >> scilab 5.2.2 >> >> I could not get more than approximately 110 M0 using both stacksize >> and gstacksize although the total amount of memory available on my >> computer is 700 MO >> >> thanks >> >> Guylaine Collewet >> > -- 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 kuba.radlinski at gmail.com Fri Sep 10 18:19:51 2010 From: kuba.radlinski at gmail.com (=?ISO-8859-2?Q?Jakub_Radli=F1ski?=) Date: Fri, 10 Sep 2010 18:19:51 +0200 Subject: Scilab does not detect C Compiler (W7, VC Express, SDK 7.1) Message-ID: Hi, I've installed Scilab 5.2.2 and Visual C++ 2008 Express and Windows SDK 7.1 exactly according to instructions on wiki page (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). Unfortunately there is no possibility to execute any "builder" scripts. Scilab says "This toolbox requires a compiler to build." I've checked several things and the results are as follows: -->configure_msvc() ans = T -->findmsvccompiler() ans = msvc90express BUT: -->haveacompiler() ans = F Any ideas? Kuba P.S. My system: Windows 7 Home Premium 64bit From mruggeri at frh.utn.edu.ar Mon Sep 13 00:01:58 2010 From: mruggeri at frh.utn.edu.ar (Marcos C. Ruggeri) Date: Sun, 12 Sep 2010 19:01:58 -0300 Subject: Difference between load and exec Message-ID: <000a01cb52c6$200e4740$602ad5c0$@utn.edu.ar> Hello, I have been translating several routines of a FEM code from MATLAB into Scilab. Particularly I would like to know what is the difference between use of ?Load into Scilab?(CTRL+L) and ?Execute file into Scilab?(CTRL+E) in the Scilab text editor menu. Thanks in advance. Marcos C. Ruggeri Grupo de Simulaci?n y Mec?nica Computacional Universidad Tecnol?gica Nacional Facultad Regional Haedo mruggeri at frh.utn.edu.ar www.frh.utn.edu.ar -------------- next part -------------- An HTML attachment was scrubbed... URL: From hinow at uwm.edu Fri Sep 10 16:51:33 2010 From: hinow at uwm.edu (Peter Hinow) Date: Fri, 10 Sep 2010 09:51:33 -0500 (CDT) Subject: [scilab-Users] how to write strings into a file without leading blank In-Reply-To: <4C89CF6E.1040501@scilab.org> Message-ID: <1445699820.221841.1284130293713.JavaMail.root@mail02.pantherlink.uwm.edu> Dear Pierre, thank you for the response. I found out that it works fine with mfprintf(unit,'xxxxx'). In my opinion, there is some redundancy here or a lack of documentation. As I see it, mopen and file('open',...) do the same thing, but not quite. Best regards, Peter ----- Original Message ----- From: "Pierre MARECHAL" To: users at lists.scilab.org Sent: Friday, September 10, 2010 1:25:50 AM Subject: Re: [scilab-Users] how to write strings into a file without leading blank Le 09/09/2010 23:51, Peter Hinow a ?crit : > Dear fellows, > how can I write strings into a file without leading blank? With > write(unit,'xxxxx') > I obtain > xxxxx > but I want > xxxxx > It does not seem to be an issue of the string (I tried stripblanks, but that does not change the result). > Thank you for all help. > Cheers, > Peter > Hi peter, mputl('text','yourfile.txt'); => http://www.scilab.org/product/man/mputl.html Cheers, Pierre -- ============================================== Pierre MARECHAL Ing?nieur Support et D?veloppements ------ Consortium Scilab Digiteo Domaine de Voluceau Rocquencourt - B.P. 105 78153 Le Chesnay Cedex ------ T?l : +33.1.39.63.56.81 ============================================== -- Peter Hinow, PhD Department of Mathematical Sciences University of Wisconsin - Milwaukee P.O. Box 413 Milwaukee, WI 53201-0413 USA phone: ++1 414 229 4933 https://pantherfile.uwm.edu/hinow/www/ From allan.cornet at scilab.org Mon Sep 13 08:08:14 2010 From: allan.cornet at scilab.org (Allan CORNET) Date: Mon, 13 Sep 2010 08:08:14 +0200 Subject: [scilab-Users] Scilab does not detect C Compiler (W7, VC Express, SDK 7.1) In-Reply-To: References: Message-ID: <000f01cb530a$0d25f1c0$2771d540$@scilab.org> Hi, Please update to Scilab 5.3 beta-3 "The support for Microsoft Visual Studio C++ 2008/2010 Express Edition to manage dynamic link tools of Scilab has been added in Scilab 5.3." Best regards Allan CORNET -----Message d'origine----- De : Jakub Radli?ski [mailto:kuba.radlinski at gmail.com] Envoy? : vendredi 10 septembre 2010 18:20 ? : users at lists.scilab.org Objet : [scilab-Users] Scilab does not detect C Compiler (W7, VC Express, SDK 7.1) Hi, I've installed Scilab 5.2.2 and Visual C++ 2008 Express and Windows SDK 7.1 exactly according to instructions on wiki page (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). Unfortunately there is no possibility to execute any "builder" scripts. Scilab says "This toolbox requires a compiler to build." I've checked several things and the results are as follows: -->configure_msvc() ans = T -->findmsvccompiler() ans = msvc90express BUT: -->haveacompiler() ans = F Any ideas? Kuba P.S. My system: Windows 7 Home Premium 64bit From kuba.radlinski at gmail.com Mon Sep 13 10:15:38 2010 From: kuba.radlinski at gmail.com (=?ISO-8859-2?Q?Jakub_Radli=F1ski?=) Date: Mon, 13 Sep 2010 10:15:38 +0200 Subject: [scilab-Users] Scilab does not detect C Compiler (W7, VC Express, SDK 7.1) In-Reply-To: <000f01cb530a$0d25f1c0$2771d540$@scilab.org> References: <000f01cb530a$0d25f1c0$2771d540$@scilab.org> Message-ID: Hi, I found the cause previously - I've mixed Visual Studio 2008 Express and SDK 7.1 (which contains C++ compilers for VS 2010). When I try to work with pure 2008 or 2010 installation (VS C++ 2008 and SDK 7.0 or VS C++ 2010 and SDK 7.1) everything works fine in Scilab x86 (5.2.2). > Please update to Scilab 5.3 beta-3 > "The support for Microsoft Visual Studio C++ 2008/2010 Express Edition to manage dynamic link tools of Scilab has been added in Scilab 5.3." I've checked that - in x86 everything works fine but in x64 i got the error: NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\BIN\amd64\link.EXE"' : return code '0x450' Kuba > > Best regards > > Allan CORNET > > > -----Message d'origine----- > De : Jakub Radli?ski [mailto:kuba.radlinski at gmail.com] > Envoy? : vendredi 10 septembre 2010 18:20 > ? : users at lists.scilab.org > Objet : [scilab-Users] Scilab does not detect C Compiler (W7, VC Express, SDK 7.1) > > Hi, > > I've installed Scilab 5.2.2 and Visual C++ 2008 Express and Windows SDK 7.1 exactly according to instructions on wiki page (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). > > Unfortunately there is no possibility to execute any "builder" > scripts. Scilab says "This toolbox requires a compiler to build." I've checked several things and the results are as follows: > > -->configure_msvc() > ?ans ?= > > ?T > > -->findmsvccompiler() > ?ans ?= > > ?msvc90express > > BUT: > > > -->haveacompiler() > ?ans ?= > > ?F > > Any ideas? > > Kuba > > P.S. My system: Windows 7 Home Premium 64bit > > From mathieu.dubois at limsi.fr Mon Sep 13 13:51:47 2010 From: mathieu.dubois at limsi.fr (Mathieu Dubois) Date: Mon, 13 Sep 2010 13:51:47 +0200 Subject: [scilab-Users] Difference between load and exec In-Reply-To: <000a01cb52c6$200e4740$602ad5c0$@utn.edu.ar> References: <000a01cb52c6$200e4740$602ad5c0$@utn.edu.ar> Message-ID: <4C8E1053.9080405@limsi.fr> Hello, > > Particularly I would like to know what is the difference between use > of "Load into Scilab"(CTRL+L) and "Execute file into Scilab"(CTRL+E) > in the Scilab text editor menu. > Which version are you using? With version 5.3-beta3 the only difference is that "load" will print the instructions on the main window while "exec" won't... I don't remember exactly but I think it was different in older versions... Mathieu -------------- next part -------------- An HTML attachment was scrubbed... URL: From frederic.jourdin at shom.fr Mon Sep 13 14:03:07 2010 From: frederic.jourdin at shom.fr (Frederic Jourdin) Date: Mon, 13 Sep 2010 14:03:07 +0200 Subject: min of matrices and undefined values Message-ID: <4C8E12FB.4070800@shom.fr> Scilab versions: 5.2.2 and 5.3.0.beta1 Hi all ! the use of the function "min" in the case: "m=min(A1,A2,...,An), where all the Aj are matrices of the same sizes" (see the manual), appears to me not working when there are undefined values involved. For instance, coding: a= [ 1, %nan; 4, 4]; b= [ %nan, 3; 3, 6]; c= [ 2, 2; %nan, %nan]; min( a, b, c) returns the following result: NaN NaN NaN NaN when I expected: 1 2 3 4 which seems to me not logical, knowing that the following simple use of "min": min( [ 1; %nan; 2]) gives the right answer which is: 1 This appears inconsistent to me. Is it? thank you Fred From Peter.Cusack at csiro.au Tue Sep 14 03:10:27 2010 From: Peter.Cusack at csiro.au (Peter.Cusack at csiro.au) Date: Tue, 14 Sep 2010 11:10:27 +1000 Subject: [scilab-Users] Re: Elliptic integral In-Reply-To: References: Message-ID: Hi Jens. Thanks for looking into this. In fact, the code was translated from working Maxima code, and that included a check to ensure that the argument remained less than 1. Here is the full version of my function declaration, in hope that you can see an obvious flaw: deff('[a]=al(r,a)','a=r/a') //*alpha*/ deff('[b]=be(x,a)','b=x/a') //*beta*/ deff('[g]=ga(x,r)','g=x/r') //*gamma*/ deff('[que]=Q(x,r,a)','que=(1+al(r,a))^2 + be(x,a)^2')//may need to be square rooted deff('[kay]=k(x,r,a)','if al(r,a)/Q(x,r,a)<0.25 then kay=4*al(r,a)/Q(x,r,a); else kay=0.999; end')//*ellipticK(1) is undefined*/ deff('[b0]=B0(a,j)','b0=j*Mu0/(2*a)') //*Field at centre of single turn with radius a and current j*/ //Elliptic integrals deff('ek=elliptic_kc(k)','ek=delip(1,k)')//First kind is a built in function deff('y=f(t,k)','y=sqrt((1-(k*t)^2)/(1-t^2))') //Core definition for integral deff('ec=elliptic_ec(k)','ec=intg(0,1,list(f,k))') //Second kind, not built into SciLab //Field calculations //Single turns deff('[xx]=Bx(x,r,a,j)','xx=B0(a,j)/(%pi*sqrt(Q(x,r,a)))*(elliptic_ec(k(x,r,a))*(1-al(r,a)^2-be(x,a)^2)/(Q(x,r,a)-4*al(r,a))+elliptic_kc(k(x,r,a)))') //X field deff('[rr]=Br(x,r,a,j)','if r>0 then rr=B0(a,j)*ga(x,r)/(%pi*sqrt(Q(x,r,a)))*(elliptic_ec(k(x,r,a))*(1+al(r,a)^2+be(x,a)^2)/(Q(x,r,a)-4*al(r,a))-elliptic_kc(k(x,r,a))); else rr=0; end') //*R field. ga(x,0) is undefined*/ //Total of all turns deff('[xt]=Bxt(x,r)','xt=sum(Bx(x-X,r,A,I))')//*x field at x,r*/ deff('[rt]=Brt(x,r)','rt=sum(Br(x-X,r,A,I))')//*r field at x,r*/ //Uniformity Bcentre=Bxt(0,0) //*Field at centre of winding*/ Cheers; Peter. > ------------------------------------------------------------------------ > Hi Peter, > You probably got the error message for arguments >1. In this case the > sqrt > returns an imaginary number, which cannot be handled by intg. For > arguments <=1 > your function works properly. However, I did not check if your code > realizes > the integral you intend to calculate correctly. > Cheers, Jens > From marcelo_rleite at yahoo.com Wed Sep 15 03:16:47 2010 From: marcelo_rleite at yahoo.com (Marcelo Leite) Date: Tue, 14 Sep 2010 18:16:47 -0700 (PDT) Subject: problems with xcos Message-ID: <97466.12211.qm@web120617.mail.ne1.yahoo.com> hi. I'm trying to simulate a circuit in scilab, but it doesnt work. the circuit is the "boost_converter" and when a try to simulate the circuit a lot of messages saying "memory full" are displayed on console window. -------------- next part -------------- An HTML attachment was scrubbed... URL: From mathieu.dubois at limsi.fr Wed Sep 15 11:19:37 2010 From: mathieu.dubois at limsi.fr (Mathieu Dubois) Date: Wed, 15 Sep 2010 11:19:37 +0200 Subject: [scilab-Users] Release of Scilab 5.3.0 - beta 3 In-Reply-To: <4A8C7414-78BF-40F1-862B-9F698B88CF19@scilab.org> References: <4A8C7414-78BF-40F1-862B-9F698B88CF19@scilab.org> Message-ID: <4C908FA9.3080400@limsi.fr> Hello, I'm using Scilab 5.3.0 beta 3 for a few days and I wanted to report some minor problems with scinotes (the new text editor). When saving a file the default path is in scilab configuration directory (~/.Scilab/ scilab5.3.0-beta-3). I think that it would be better to propose the current directory. I didn't find anything on bugzilla. Also it would be nice if scinotes is automatically launched when scilab starts (for instance if it was open when scilab was closed). This may be too late for 5.3.0... Mathieu On 09/02/2010 11:28 AM, Cl?mence DAVOUST wrote: > Dear all, > > The Scilab R&D Team is pleased to announce the release of Scilab 5.3.0 > beta 3. > Download and information can be found at: > http://www.scilab.org/en/products/scilab/download/5.3.0-beta-3 > > We invite you to test this beta version and to report possible bugs on > Scilab bug tracker at: http://bugzilla.scilab.org/ > > Best Regards > > ----------------------------------------------- > The Scilab Consortium R&D Team > ----------------------------------------------- > Digiteo > Domaine de Voluceau > Rocquencourt - B.P. 105 > 78153 Le Chesnay Cedex - France > > > > From calixte at contrib.scilab.org Wed Sep 15 13:05:27 2010 From: calixte at contrib.scilab.org (Calixte Denizet) Date: Wed, 15 Sep 2010 13:05:27 +0200 Subject: [scilab-Users] Release of Scilab 5.3.0 - beta 3 In-Reply-To: <4C908FA9.3080400@limsi.fr> References: <4A8C7414-78BF-40F1-862B-9F698B88CF19@scilab.org> <4C908FA9.3080400@limsi.fr> Message-ID: <1284548727.10898.15.camel@Calixte-Dell> Le mercredi 15 septembre 2010 ? 11:19 +0200, Mathieu Dubois a ?crit : > Hello, > Hello Matthieu, > I'm using Scilab 5.3.0 beta 3 for a few days and I wanted to report some > minor problems with scinotes (the new text editor). > > When saving a file the default path is in scilab configuration directory > (~/.Scilab/ scilab5.3.0-beta-3). I think that it would be better to > propose the current directory. I didn't find anything on bugzilla. > On my computer, if I start Scilab from my home directory, the default dir is my home. You can try to put an empty string in the value attribute of the tag LastOpenedDirectory in the file ~/.Scilab/scilab-5.3.0-beta-3/configuration.xml, restart scilab from your home and test... If the bug is still alive, please make a bug report. > Also it would be nice if scinotes is automatically launched when scilab > starts (for instance if it was open when scilab was closed). This may be > too late for 5.3.0... > In the directory ~/.Scilab/scilab-5.3.0-beta-3/ just put a file scilab.ini containing scinotes; that's all ! Best regards, Calixte > Mathieu > > On 09/02/2010 11:28 AM, Cl?mence DAVOUST wrote: > > Dear all, > > > > The Scilab R&D Team is pleased to announce the release of Scilab 5.3.0 > > beta 3. > > Download and information can be found at: > > http://www.scilab.org/en/products/scilab/download/5.3.0-beta-3 > > > > We invite you to test this beta version and to report possible bugs on > > Scilab bug tracker at: http://bugzilla.scilab.org/ > > > > Best Regards > > > > ----------------------------------------------- > > The Scilab Consortium R&D Team > > ----------------------------------------------- > > Digiteo > > Domaine de Voluceau > > Rocquencourt - B.P. 105 > > 78153 Le Chesnay Cedex - France > > > > > > > > > From mathieu.dubois at limsi.fr Wed Sep 15 13:43:08 2010 From: mathieu.dubois at limsi.fr (Mathieu Dubois) Date: Wed, 15 Sep 2010 13:43:08 +0200 Subject: [scilab-Users] Release of Scilab 5.3.0 - beta 3 In-Reply-To: <1284548727.10898.15.camel@Calixte-Dell> References: <4A8C7414-78BF-40F1-862B-9F698B88CF19@scilab.org> <4C908FA9.3080400@limsi.fr> <1284548727.10898.15.camel@Calixte-Dell> Message-ID: <4C90B14C.9040805@limsi.fr> Hello, Thanks for your reply but I think I was not clear in my explanations. >> I'm using Scilab 5.3.0 beta 3 for a few days and I wanted to report some >> minor problems with scinotes (the new text editor). >> >> When saving a file the default path is in scilab configuration directory >> (~/.Scilab/ scilab5.3.0-beta-3). I think that it would be better to >> propose the current directory. I didn't find anything on bugzilla. >> >> > On my computer, if I start Scilab from my home directory, the default > dir is my home. > You can try to put an empty string in the value attribute of the tag > LastOpenedDirectory in the file > ~/.Scilab/scilab-5.3.0-beta-3/configuration.xml, restart scilab from > your home and test... If the bug is still alive, please make a bug > report. > I was talking about the directory proposed in scinotes. In fact it is the directory of the last saved file which might be ok. But a way to quickly jump to the current directory would be nice. Maybe using the native file explorer would be better... >> Also it would be nice if scinotes is automatically launched when scilab >> starts (for instance if it was open when scilab was closed). This may be >> too late for 5.3.0... >> >> > In the directory ~/.Scilab/scilab-5.3.0-beta-3/ just put a file > scilab.ini containing scinotes; that's all ! > It would help but I'm used to dock scinotes and it's boring to repeat this every time I launch scilab. Best regards, Mathieu > Best regards, > > Calixte > > >> Mathieu >> >> On 09/02/2010 11:28 AM, Cl?mence DAVOUST wrote: >> >>> Dear all, >>> >>> The Scilab R&D Team is pleased to announce the release of Scilab 5.3.0 >>> beta 3. >>> Download and information can be found at: >>> http://www.scilab.org/en/products/scilab/download/5.3.0-beta-3 >>> >>> We invite you to test this beta version and to report possible bugs on >>> Scilab bug tracker at: http://bugzilla.scilab.org/ >>> >>> Best Regards >>> >>> ----------------------------------------------- >>> The Scilab Consortium R&D Team >>> ----------------------------------------------- >>> Digiteo >>> Domaine de Voluceau >>> Rocquencourt - B.P. 105 >>> 78153 Le Chesnay Cedex - France >>> >>> >>> >>> >>> >> > > From calixte at contrib.scilab.org Wed Sep 15 14:27:46 2010 From: calixte at contrib.scilab.org (Calixte Denizet) Date: Wed, 15 Sep 2010 14:27:46 +0200 Subject: [scilab-Users] Release of Scilab 5.3.0 - beta 3 In-Reply-To: <4C90B14C.9040805@limsi.fr> References: <4A8C7414-78BF-40F1-862B-9F698B88CF19@scilab.org> <4C908FA9.3080400@limsi.fr> <1284548727.10898.15.camel@Calixte-Dell> <4C90B14C.9040805@limsi.fr> Message-ID: <1284553666.10898.29.camel@Calixte-Dell> Le mercredi 15 septembre 2010 ? 13:43 +0200, Mathieu Dubois a ?crit : > Hello, > > Thanks for your reply but I think I was not clear in my explanations. > >> I'm using Scilab 5.3.0 beta 3 for a few days and I wanted to report some > >> minor problems with scinotes (the new text editor). > >> > >> When saving a file the default path is in scilab configuration directory > >> (~/.Scilab/ scilab5.3.0-beta-3). I think that it would be better to > >> propose the current directory. I didn't find anything on bugzilla. > >> > >> > > On my computer, if I start Scilab from my home directory, the default > > dir is my home. > > You can try to put an empty string in the value attribute of the tag > > LastOpenedDirectory in the file > > ~/.Scilab/scilab-5.3.0-beta-3/configuration.xml, restart scilab from > > your home and test... If the bug is still alive, please make a bug > > report. > > > I was talking about the directory proposed in scinotes. In fact it is > the directory of the last saved file which might be ok. But a way to > quickly jump to the current directory would be nice. Maybe using the > native file explorer would be better... Actually, we use Java components... But a workaround is to use the menu File > Open file in... where you can add (and remove) your favorites dirs and choose a dir where the filechooser will be opened. If you have a very very favorite dir, the button 'Open in' (third button from the left) is configurable in the file SCI/modules/scinotes/etc/scinotesGUIConfiguration.xml where you have a line :