From communication at scilab-enterprises.com Wed Apr 1 10:33:07 2015 From: communication at scilab-enterprises.com (Scilab Communications) Date: Wed, 01 Apr 2015 10:33:07 +0200 Subject: [Scilab-users] Release of Scilab 5.5.2 Message-ID: <551BAD43.6030205@scilab-enterprises.com> Dear Scilab users, *Scilab Enterprises is glad to announce the release of Scilab 5.5.2. * Scilab 5.5.2 is a minor release which solves in particular two serious bugs: * Scilab failed to start under some Windows platforms due to an ATOMS internal libraries loading issue (See bug #12842), * All graphics were displayed in red under some Windows platforms (See bug #12788). This release also includes new graphics features such as the improvement of the fec function to enable the rendering of meshes based on any convex polygon type (not only triangles). * Scilab 5.5.2 is now available for download at http://www.scilab.org* Best Regards -- Communication Department, Scilab Enterprises 143bis rue Yves Le Coz - 78000 Versailles (France) http://www.scilab-enterprises.com - http://www.scilab.org -------------- next part -------------- An HTML attachment was scrubbed... URL: From klaus-rohe at t-online.de Wed Apr 1 13:52:03 2015 From: klaus-rohe at t-online.de (Klaus Rohe) Date: Wed, 1 Apr 2015 13:52:03 +0200 Subject: [Scilab-users] Release of Scilab 5.5.2 In-Reply-To: <551BAD43.6030205@scilab-enterprises.com> References: <551BAD43.6030205@scilab-enterprises.com> Message-ID: <000001d06c72$453ef5d0$cfbce170$@t-online.de> Hi all, I?m not able to download Scilab 5.5.2 because I?m immediately redirected to http://www.scilab.org/thanks if I click the download button. Kind regards Klaus Von: users [mailto:users-bounces at lists.scilab.org] Im Auftrag von Scilab Communications Gesendet: Mittwoch, 1. April 2015 10:33 An: release at lists.scilab.org; Scilab list; List dedicated to development questions; localization at lists.scilab.org; distributor at lists.scilab.org; gsoc at lists.scilab.org Betreff: [Scilab-users] Release of Scilab 5.5.2 Dear Scilab users, Scilab Enterprises is glad to announce the release of Scilab 5.5.2. Scilab 5.5.2 is a minor release which solves in particular two serious bugs: * Scilab failed to start under some Windows platforms due to an ATOMS internal libraries loading issue (See bug #12842), * All graphics were displayed in red under some Windows platforms (See bug #12788). This release also includes new graphics features such as the improvement of the fec function to enable the rendering of meshes based on any convex polygon type (not only triangles). Scilab 5.5.2 is now available for download at http://www.scilab.org Best Regards -- Communication Department, Scilab Enterprises 143bis rue Yves Le Coz - 78000 Versailles (France) http://www.scilab-enterprises.com - http://www.scilab.org -------------- next part -------------- An HTML attachment was scrubbed... URL: From julie.paul at scilab-enterprises.com Wed Apr 1 14:09:26 2015 From: julie.paul at scilab-enterprises.com (Julie PAUL) Date: Wed, 01 Apr 2015 14:09:26 +0200 Subject: [Scilab-users] Release of Scilab 5.5.2 In-Reply-To: <000001d06c72$453ef5d0$cfbce170$@t-online.de> References: <551BAD43.6030205@scilab-enterprises.com> <000001d06c72$453ef5d0$cfbce170$@t-online.de> Message-ID: <551BDFF6.5010707@scilab-enterprises.com> Dear Sir, After clicking, download normally begins and a new page appears to thank you for downloading. Can you check and if it is not the case, could you provide us your OS and web browser? Thanks in advance Julie PAUL Scilab Enterprises Communications & Public Relations Director 143bis rue Yves Le Coz - 78000 Versailles (FR) Phone: +33(0)1 80 77 04 79 http://www.scilab-enterprises.com - http://www.scilab.org Le 01/04/2015 13:52, Klaus Rohe a ?crit : > > Hi all, > > I?m not able to download Scilab 5.5.2 because I?m immediately > redirected to http://www.scilab.org/thanks if I click the download button. > > Kind regards > > Klaus > > *Von:*users [mailto:users-bounces at lists.scilab.org] *Im Auftrag von > *Scilab Communications > *Gesendet:* Mittwoch, 1. April 2015 10:33 > *An:* release at lists.scilab.org; Scilab list; List dedicated to > development questions; localization at lists.scilab.org; > distributor at lists.scilab.org; gsoc at lists.scilab.org > *Betreff:* [Scilab-users] Release of Scilab 5.5.2 > > Dear Scilab users, > > *Scilab Enterprises is glad to announce the release of Scilab 5.5.2. * > > Scilab 5.5.2 is a minor release which solves in particular two serious > bugs: > > * Scilab failed to start under some Windows platforms due to an > ATOMS internal libraries loading issue (See bug #12842), > * All graphics were displayed in red under some Windows platforms > (See bug #12788). > > > This release also includes new graphics features such as the > improvement of the fec function to enable the rendering of meshes > based on any convex polygon type (not only triangles). > > * **Scilab 5.5.2 is now available for download at http://www.scilab.org* > > Best Regards > > > -- > Communication Department, Scilab Enterprises > 143bis rue Yves Le Coz - 78000 Versailles (France) > http://www.scilab-enterprises.com -http://www.scilab.org > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users -------------- next part -------------- An HTML attachment was scrubbed... URL: From omorr at uns.ac.rs Wed Apr 1 14:18:04 2015 From: omorr at uns.ac.rs (Radovan Omorjan) Date: Wed, 01 Apr 2015 14:18:04 +0200 Subject: [Scilab-users] Jupiter and Scilab? In-Reply-To: <551BDFF6.5010707@scilab-enterprises.com> References: <551BAD43.6030205@scilab-enterprises.com> <000001d06c72$453ef5d0$cfbce170$@t-online.de> <551BDFF6.5010707@scilab-enterprises.com> Message-ID: <551BE1FC.2020505@uns.ac.rs> Have anyone tried to connect Scilab and Jupiter https://jupyter.org/ ? Best Regards From Christophe.Dang at sidel.com Wed Apr 1 15:22:53 2015 From: Christophe.Dang at sidel.com (Dang, Christophe) Date: Wed, 1 Apr 2015 13:22:53 +0000 Subject: [Scilab-users] Release of Scilab 5.5.2 In-Reply-To: <551BDFF6.5010707@scilab-enterprises.com> References: <551BAD43.6030205@scilab-enterprises.com> <000001d06c72$453ef5d0$cfbce170$@t-online.de> <551BDFF6.5010707@scilab-enterprises.com> Message-ID: Hello, > De : users [mailto:users-bounces at lists.scilab.org] De la part de Julie PAUL > Envoy? : mercredi 1 avril 2015 14:09 > > After clicking, download normally begins and a new page appears to thank you for downloading. I also had the issue with IE (W7). I managed to download with FireFox. HTH -- Christophe Dang Ngoc Chan Mechanical calculation engineer This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error), please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden. From klaus-rohe at t-online.de Wed Apr 1 15:26:43 2015 From: klaus-rohe at t-online.de (Klaus Rohe) Date: Wed, 1 Apr 2015 15:26:43 +0200 Subject: [Scilab-users] Release of Scilab 5.5.2 In-Reply-To: <551BDFF6.5010707@scilab-enterprises.com> References: <551BAD43.6030205@scilab-enterprises.com> <000001d06c72$453ef5d0$cfbce170$@t-online.de> <551BDFF6.5010707@scilab-enterprises.com> Message-ID: <002401d06c7f$7ee7c7f0$7cb757d0$@t-online.de> Hi Julie, I?m using Internet Explorer 11 on Windows 7 Ultimate (32 bit). It now works! Thanks for the immediate answer. Kind regards Klaus Von: users [mailto:users-bounces at lists.scilab.org] Im Auftrag von Julie PAUL Gesendet: Mittwoch, 1. April 2015 14:09 An: users at lists.scilab.org Betreff: Re: [Scilab-users] Release of Scilab 5.5.2 Dear Sir, After clicking, download normally begins and a new page appears to thank you for downloading. Can you check and if it is not the case, could you provide us your OS and web browser? Thanks in advance Julie PAUL Scilab Enterprises Communications & Public Relations Director 143bis rue Yves Le Coz - 78000 Versailles (FR) Phone: +33(0)1 80 77 04 79 http://www.scilab-enterprises.com - http://www.scilab.org Le 01/04/2015 13:52, Klaus Rohe a ?crit : Hi all, I?m not able to download Scilab 5.5.2 because I?m immediately redirected to http://www.scilab.org/thanks if I click the download button. Kind regards Klaus Von: users [mailto:users-bounces at lists.scilab.org] Im Auftrag von Scilab Communications Gesendet: Mittwoch, 1. April 2015 10:33 An: release at lists.scilab.org; Scilab list; List dedicated to development questions; localization at lists.scilab.org; distributor at lists.scilab.org; gsoc at lists.scilab.org Betreff: [Scilab-users] Release of Scilab 5.5.2 Dear Scilab users, Scilab Enterprises is glad to announce the release of Scilab 5.5.2. Scilab 5.5.2 is a minor release which solves in particular two serious bugs: * Scilab failed to start under some Windows platforms due to an ATOMS internal libraries loading issue (See bug #12842), * All graphics were displayed in red under some Windows platforms (See bug #12788). This release also includes new graphics features such as the improvement of the fec function to enable the rendering of meshes based on any convex polygon type (not only triangles). Scilab 5.5.2 is now available for download at http://www.scilab.org Best Regards -- Communication Department, Scilab Enterprises 143bis rue Yves Le Coz - 78000 Versailles (France) http://www.scilab-enterprises.com - http://www.scilab.org _______________________________________________ users mailing list users at lists.scilab.org http://lists.scilab.org/mailman/listinfo/users -------------- next part -------------- An HTML attachment was scrubbed... URL: From adershowitz at exponent.com Wed Apr 1 15:13:21 2015 From: adershowitz at exponent.com (Adam Dershowitz) Date: Wed, 1 Apr 2015 13:13:21 +0000 Subject: [Scilab-users] Release of Scilab 5.5.2 In-Reply-To: <551BAD43.6030205@scilab-enterprises.com> References: <551BAD43.6030205@scilab-enterprises.com> Message-ID: <011BB2FD7D33AB49936FD297F594AEB89B1A09B8@SFMB02.exponent.com> I?m not sure if this is the best place to report a problem, but figured I would start here. If there is a better place, please let me know. I just downloaded 5.5.2 for MacOS (10.10.2) and when I try to run it, I get a crash with the following library problem: Application Specific Information: dyld: launch, loading dependent libraries DYLD_LIBRARY_PATH=/Applications/scilab-5.5.2.app/Contents/MacOS/share/scilab/../../lib/scilab/:/Applications/scilab-5.5.2.app/Contents/MacOS/lib/scilab:/Applications/scilab-5.5.2.app/Contents/MacOS/lib/thirdparty:/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/../Libraries: Dyld Error Message: Symbol not found: _double_general_add Referenced from: /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libLinearAlgebra.dylib Expected in: /Applications/scilab-5.5.2.app/Contents/MacOS/lib/thirdparty/libBLAS.dylib in /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libLinearAlgebra.dylib I see that a six months back there was a dedicated version of 5.5.1 specifically for 10.10, but it looks like that one is no longer available, and this doesn?t appear to be a java related issue. Thoughts or suggestions? -- Adam From: Scilab Communications > Organization: Scilab Enterprises Reply-To: "communication at scilab-enterprises.com" >, "International users mailing list for Scilab." > Date: Wednesday, April 1, 2015 at 4:33 AM To: "release at lists.scilab.org" >, Scilab list >, List dedicated to development questions >, "localization at lists.scilab.org" >, "distributor at lists.scilab.org" >, "gsoc at lists.scilab.org" > Subject: [Scilab-users] Release of Scilab 5.5.2 Dear Scilab users, Scilab Enterprises is glad to announce the release of Scilab 5.5.2. Scilab 5.5.2 is a minor release which solves in particular two serious bugs: * Scilab failed to start under some Windows platforms due to an ATOMS internal libraries loading issue (See bug #12842), * All graphics were displayed in red under some Windows platforms (See bug #12788). This release also includes new graphics features such as the improvement of the fec function to enable the rendering of meshes based on any convex polygon type (not only triangles). Scilab 5.5.2 is now available for download at http://www.scilab.org Best Regards -- Communication Department, Scilab Enterprises 143bis rue Yves Le Coz - 78000 Versailles (France) http://www.scilab-enterprises.com - http://www.scilab.org -------------- next part -------------- An HTML attachment was scrubbed... URL: From nakabisha at gmail.com Wed Apr 1 16:32:05 2015 From: nakabisha at gmail.com (N.N.) Date: Wed, 1 Apr 2015 16:32:05 +0200 Subject: [Scilab-users] can not run scilab 5,5,2 Message-ID: After a clean download and perfect installation, I tried to lauch scilab. I got a message box with only these words : Scilab cannot create Scilab Java Main-class. (We have not been able to find the main Scilab class. Check if the Scilab and thirdparty party packages are availabe). I run on an i3-32 bit intel machine with win7-32 as OS. I have the latest update of java. I have installed the JDK. Is there somebody who can help me please ? Thank you very much. Regards, Alain (Belgium) -- Complex numbers: They are all fun and games until someone loses an i. From klaus-rohe at t-online.de Wed Apr 1 16:41:39 2015 From: klaus-rohe at t-online.de (Klaus Rohe) Date: Wed, 1 Apr 2015 16:41:39 +0200 Subject: [Scilab-users] Release of Scilab 5.5.2 In-Reply-To: <551BAD43.6030205@scilab-enterprises.com> References: <551BAD43.6030205@scilab-enterprises.com> Message-ID: <000001d06c89$f7082590$e51870b0$@t-online.de> Hi all, I have installed Scilab 5.5.2 on Windows 7 Ultimate 32 bit using scilab-5.5.2.exe. After successfully installation the following files remain in the directory >From which I did the installation: commons-mkl-5.5.2-win32.zip blas-lapack-mkl-5.5.2-win32.zip Kind regards Klaus Von: users [mailto:users-bounces at lists.scilab.org] Im Auftrag von Scilab Communications Gesendet: Mittwoch, 1. April 2015 10:33 An: release at lists.scilab.org; Scilab list; List dedicated to development questions; localization at lists.scilab.org; distributor at lists.scilab.org; gsoc at lists.scilab.org Betreff: [Scilab-users] Release of Scilab 5.5.2 Dear Scilab users, Scilab Enterprises is glad to announce the release of Scilab 5.5.2. Scilab 5.5.2 is a minor release which solves in particular two serious bugs: * Scilab failed to start under some Windows platforms due to an ATOMS internal libraries loading issue (See bug #12842), * All graphics were displayed in red under some Windows platforms (See bug #12788). This release also includes new graphics features such as the improvement of the fec function to enable the rendering of meshes based on any convex polygon type (not only triangles). Scilab 5.5.2 is now available for download at http://www.scilab.org Best Regards -- Communication Department, Scilab Enterprises 143bis rue Yves Le Coz - 78000 Versailles (France) http://www.scilab-enterprises.com - http://www.scilab.org -------------- next part -------------- An HTML attachment was scrubbed... URL: From vincent.couvert at scilab-enterprises.com Wed Apr 1 17:15:37 2015 From: vincent.couvert at scilab-enterprises.com (Vincent COUVERT) Date: Wed, 01 Apr 2015 17:15:37 +0200 Subject: [Scilab-users] Release of Scilab 5.5.2 In-Reply-To: <011BB2FD7D33AB49936FD297F594AEB89B1A09B8@SFMB02.exponent.com> References: <551BAD43.6030205@scilab-enterprises.com> <011BB2FD7D33AB49936FD297F594AEB89B1A09B8@SFMB02.exponent.com> Message-ID: <551C0B99.7040803@scilab-enterprises.com> Hello, Can you try to remove /Applications/scilab-5.5.2.app/Contents/MacOS/lib/thirdparty/libBLAS.dylib to see if this fixes the issue? Regards, Le 01/04/2015 15:13, Adam Dershowitz a ?crit : > I?m not sure if this is the best place to report a problem, but > figured I would start here. If there is a better place, please let me > know. > I just downloaded 5.5.2 for MacOS (10.10.2) and when I try to run it, > I get a crash with the following library problem: > > Application Specific Information: > dyld: launch, loading dependent libraries > DYLD_LIBRARY_PATH=/Applications/scilab-5.5.2.app/Contents/MacOS/share/scilab/../../lib/scilab/:/Applications/scilab-5.5.2.app/Contents/MacOS/lib/scilab:/Applications/scilab-5.5.2.app/Contents/MacOS/lib/thirdparty:/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/../Libraries: > > Dyld Error Message: > Symbol not found: _double_general_add > Referenced from: > /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libLinearAlgebra.dylib > Expected in: > /Applications/scilab-5.5.2.app/Contents/MacOS/lib/thirdparty/libBLAS.dylib > in > /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libLinearAlgebra.dylib > > I see that a six months back there was a dedicated version of 5.5.1 > specifically for 10.10, but it looks like that one is no longer > available, and this doesn?t appear to be a java related issue. > > Thoughts or suggestions? > > -- Adam > > > From: Scilab Communications > > Organization: Scilab Enterprises > Reply-To: "communication at scilab-enterprises.com > " > >, "International users > mailing list for Scilab." > > Date: Wednesday, April 1, 2015 at 4:33 AM > To: "release at lists.scilab.org " > >, Scilab > list >, List > dedicated to development questions >, "localization at lists.scilab.org > " >, "distributor at lists.scilab.org > " >, "gsoc at lists.scilab.org > " > > Subject: [Scilab-users] Release of Scilab 5.5.2 > > Dear Scilab users, > > *Scilab Enterprises is glad to announce the release of Scilab 5.5.2. * > > Scilab 5.5.2 is a minor release which solves in particular two serious > bugs: > > * Scilab failed to start under some Windows platforms due to an > ATOMS internal libraries loading issue (See bug #12842), > * All graphics were displayed in red under some Windows platforms > (See bug #12788). > > > This release also includes new graphics features such as the > improvement of the fec function to enable the rendering of meshes > based on any convex polygon type (not only triangles). > > *Scilab 5.5.2 is now available for download at http://www.scilab.org* > > Best Regards > > -- > Communication Department, Scilab Enterprises > 143bis rue Yves Le Coz - 78000 Versailles (France) > http://www.scilab-enterprises.com -http://www.scilab.org > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users -------------- next part -------------- An HTML attachment was scrubbed... URL: From vincent.couvert at scilab-enterprises.com Wed Apr 1 17:16:50 2015 From: vincent.couvert at scilab-enterprises.com (Vincent COUVERT) Date: Wed, 01 Apr 2015 17:16:50 +0200 Subject: [Scilab-users] can not run scilab 5,5,2 In-Reply-To: References: Message-ID: <551C0BE2.3010308@scilab-enterprises.com> Hello, Can you try to remove the directory pointed by SCIHOME (http://help.scilab.org/SCIHOME) to see if this fixes the issue? Regards. Le 01/04/2015 16:32, N.N. a ?crit : > After a clean download and perfect installation, I tried to lauch scilab. > > I got a message box with only these words : > > Scilab cannot create Scilab Java Main-class. > (We have not been able to find the main Scilab class. > Check if the Scilab and thirdparty party packages are availabe). > > I run on an i3-32 bit intel machine with win7-32 as OS. > I have the latest update of java. > I have installed the JDK. > > Is there somebody who can help me please ? > > Thank you very much. > Regards, Alain (Belgium) > From nakabisha at gmail.com Wed Apr 1 17:42:31 2015 From: nakabisha at gmail.com (N.N.) Date: Wed, 1 Apr 2015 17:42:31 +0200 Subject: [Scilab-users] can not run scilab 5,5,2 In-Reply-To: <551C0BE2.3010308@scilab-enterprises.com> References: <551C0BE2.3010308@scilab-enterprises.com> Message-ID: Hello Vincent, This is my path from the doscommand C:\Users\Qyko>path PATH=C:\Python27\;C:\Python27\Scripts;C:\Program Files\ActiveState Komodo Edit 8 \;C:\ProgramData\Oracle\Java\javapath;C:\Program Files\Common Files\Microsoft Sh ared\Windows Live;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Win dows\System32\WindowsPowerShell\v1.0\;C:\Program Files\Dyalog\Dyalog APL 13.2 Un icode\;C:\Program Files\Microsoft Network Monitor 3\;C:\Program Files\ChucK\/bin ;C:\Program Files\Dyalog\Dyalog APL 14.0 Unicode\;C:\Program Files\QuickTime\QTS ystem\;C:\Program Files\nodejs\;C:\Program Files\LuxRender;C:\Users\Qyko\AppData \Roaming\Python\Scripts;C:\Users\Qyko\Tcl ActiveState\bin;C:\EUPHORIA\BIN;C:\Use r Qyko\Ruby193\bin;C:\Program Files\Bitvise SSH Client;C:\Python27\;C:\Python27\ Scripts;C:\Program Files\ActiveState Komodo Edit 8\;C:\ProgramData\Oracle\Java\j avapath;C:\Program Files\Common Files\Microsoft Shared\Windows Live;C:\Windows\s ystem32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShel l\v1.0\;C:\Program Files\Dyalog\Dyalog APL 13.2 Unicode\;C:\Program Files\Micros oft Network Monitor 3\;C:\Program Files\ChucK\/bin;C:\Program Files\Dyalog\Dyalo g APL 14.0 Unicode\;C:\Program Files\QuickTime\QTSystem\;C:\Program Files\nodejs \;C:\Program Files\LuxRender;C:\Users\Qyko\AppData\Roaming\npm What is the dos instruction to type the contents of SCIHOME ? It is too long ago that I used dos and I even do not have a manual now. Regards. On 4/1/15, Vincent COUVERT wrote: > Hello, > > Can you try to remove the directory pointed by SCIHOME > (http://help.scilab.org/SCIHOME) to see if this fixes the issue? > > Regards. > > Le 01/04/2015 16:32, N.N. a ?crit : >> After a clean download and perfect installation, I tried to lauch scilab. >> >> I got a message box with only these words : >> >> Scilab cannot create Scilab Java Main-class. >> (We have not been able to find the main Scilab class. >> Check if the Scilab and thirdparty party packages are availabe). >> >> I run on an i3-32 bit intel machine with win7-32 as OS. >> I have the latest update of java. >> I have installed the JDK. >> >> Is there somebody who can help me please ? >> >> Thank you very much. >> Regards, Alain (Belgium) >> > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > -- Complex numbers: They are all fun and games until someone loses an i. From adershowitz at exponent.com Wed Apr 1 17:28:57 2015 From: adershowitz at exponent.com (Adam Dershowitz) Date: Wed, 1 Apr 2015 15:28:57 +0000 Subject: [Scilab-users] Release of Scilab 5.5.2 In-Reply-To: <551C0B99.7040803@scilab-enterprises.com> References: <551BAD43.6030205@scilab-enterprises.com> <011BB2FD7D33AB49936FD297F594AEB89B1A09B8@SFMB02.exponent.com> <551C0B99.7040803@scilab-enterprises.com> Message-ID: <011BB2FD7D33AB49936FD297F594AEB89B1A0C1F@SFMB02.exponent.com> That did it. It now opens and runs. -- Adam From: Vincent COUVERT > Reply-To: "International users mailing list for Scilab." > Date: Wednesday, April 1, 2015 at 11:15 AM To: "users at lists.scilab.org" > Subject: Re: [Scilab-users] Release of Scilab 5.5.2 Hello, Can you try to remove /Applications/scilab-5.5.2.app/Contents/MacOS/lib/thirdparty/libBLAS.dylib to see if this fixes the issue? Regards, Le 01/04/2015 15:13, Adam Dershowitz a ?crit : I?m not sure if this is the best place to report a problem, but figured I would start here. If there is a better place, please let me know. I just downloaded 5.5.2 for MacOS (10.10.2) and when I try to run it, I get a crash with the following library problem: Application Specific Information: dyld: launch, loading dependent libraries DYLD_LIBRARY_PATH=/Applications/scilab-5.5.2.app/Contents/MacOS/share/scilab/../../lib/scilab/:/Applications/scilab-5.5.2.app/Contents/MacOS/lib/scilab:/Applications/scilab-5.5.2.app/Contents/MacOS/lib/thirdparty:/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/../Libraries: Dyld Error Message: Symbol not found: _double_general_add Referenced from: /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libLinearAlgebra.dylib Expected in: /Applications/scilab-5.5.2.app/Contents/MacOS/lib/thirdparty/libBLAS.dylib in /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libLinearAlgebra.dylib I see that a six months back there was a dedicated version of 5.5.1 specifically for 10.10, but it looks like that one is no longer available, and this doesn?t appear to be a java related issue. Thoughts or suggestions? -- Adam From: Scilab Communications > Organization: Scilab Enterprises Reply-To: "communication at scilab-enterprises.com" >, "International users mailing list for Scilab." > Date: Wednesday, April 1, 2015 at 4:33 AM To: "release at lists.scilab.org" >, Scilab list >, List dedicated to development questions >, "localization at lists.scilab.org" >, "distributor at lists.scilab.org" >, "gsoc at lists.scilab.org" > Subject: [Scilab-users] Release of Scilab 5.5.2 Dear Scilab users, Scilab Enterprises is glad to announce the release of Scilab 5.5.2. Scilab 5.5.2 is a minor release which solves in particular two serious bugs: * Scilab failed to start under some Windows platforms due to an ATOMS internal libraries loading issue (See bug #12842), * All graphics were displayed in red under some Windows platforms (See bug #12788). This release also includes new graphics features such as the improvement of the fec function to enable the rendering of meshes based on any convex polygon type (not only triangles). Scilab 5.5.2 is now available for download at http://www.scilab.org Best Regards -- Communication Department, Scilab Enterprises 143bis rue Yves Le Coz - 78000 Versailles (France) http://www.scilab-enterprises.com - http://www.scilab.org _______________________________________________ users mailing list users at lists.scilab.orghttp://lists.scilab.org/mailman/listinfo/users -------------- next part -------------- An HTML attachment was scrubbed... URL: From vincent.couvert at scilab-enterprises.com Wed Apr 1 18:35:42 2015 From: vincent.couvert at scilab-enterprises.com (Vincent COUVERT) Date: Wed, 01 Apr 2015 18:35:42 +0200 Subject: [Scilab-users] can not run scilab 5,5,2 In-Reply-To: References: <551C0BE2.3010308@scilab-enterprises.com> Message-ID: <551C1E5E.4050504@scilab-enterprises.com> Hello, This is not a environment variable but a Scilab variable pointing to your Scilab configuration files. This path depends on your OS, your username and the Scilab version you use, the help page http://help.scilab.org/SCIHOME explains how to find it. Regards. Le 01/04/2015 17:42, N.N. a ?crit : > Hello Vincent, > > This is my path from the doscommand > > C:\Users\Qyko>path > PATH=C:\Python27\;C:\Python27\Scripts;C:\Program Files\ActiveState Komodo Edit 8 > \;C:\ProgramData\Oracle\Java\javapath;C:\Program Files\Common Files\Microsoft Sh > ared\Windows Live;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Win > dows\System32\WindowsPowerShell\v1.0\;C:\Program Files\Dyalog\Dyalog APL 13.2 Un > icode\;C:\Program Files\Microsoft Network Monitor 3\;C:\Program Files\ChucK\/bin > ;C:\Program Files\Dyalog\Dyalog APL 14.0 Unicode\;C:\Program Files\QuickTime\QTS > ystem\;C:\Program Files\nodejs\;C:\Program Files\LuxRender;C:\Users\Qyko\AppData > \Roaming\Python\Scripts;C:\Users\Qyko\Tcl ActiveState\bin;C:\EUPHORIA\BIN;C:\Use > r Qyko\Ruby193\bin;C:\Program Files\Bitvise SSH Client;C:\Python27\;C:\Python27\ > Scripts;C:\Program Files\ActiveState Komodo Edit 8\;C:\ProgramData\Oracle\Java\j > avapath;C:\Program Files\Common Files\Microsoft Shared\Windows Live;C:\Windows\s > ystem32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShel > l\v1.0\;C:\Program Files\Dyalog\Dyalog APL 13.2 Unicode\;C:\Program Files\Micros > oft Network Monitor 3\;C:\Program Files\ChucK\/bin;C:\Program Files\Dyalog\Dyalo > g APL 14.0 Unicode\;C:\Program Files\QuickTime\QTSystem\;C:\Program Files\nodejs > \;C:\Program Files\LuxRender;C:\Users\Qyko\AppData\Roaming\npm > > What is the dos instruction to type the contents of SCIHOME ? > It is too long ago that I used dos and I even do not have a manual now. > > Regards. > > On 4/1/15, Vincent COUVERT wrote: >> Hello, >> >> Can you try to remove the directory pointed by SCIHOME >> (http://help.scilab.org/SCIHOME) to see if this fixes the issue? >> >> Regards. >> >> Le 01/04/2015 16:32, N.N. a ?crit : >>> After a clean download and perfect installation, I tried to lauch scilab. >>> >>> I got a message box with only these words : >>> >>> Scilab cannot create Scilab Java Main-class. >>> (We have not been able to find the main Scilab class. >>> Check if the Scilab and thirdparty party packages are availabe). >>> >>> I run on an i3-32 bit intel machine with win7-32 as OS. >>> I have the latest update of java. >>> I have installed the JDK. >>> >>> Is there somebody who can help me please ? >>> >>> Thank you very much. >>> Regards, Alain (Belgium) >>> >> _______________________________________________ >> users mailing list >> users at lists.scilab.org >> http://lists.scilab.org/mailman/listinfo/users >> > -- Vincent COUVERT Development Manager ----------------------------------------------------------- Scilab Enterprises 143bis rue Yves Le Coz - 78000 Versailles, France Phone: +33.1.80.77.04.68 http://www.scilab-enterprises.com From vincent.couvert at scilab-enterprises.com Wed Apr 1 18:52:26 2015 From: vincent.couvert at scilab-enterprises.com (Vincent COUVERT) Date: Wed, 01 Apr 2015 18:52:26 +0200 Subject: [Scilab-users] Release of Scilab 5.5.2 In-Reply-To: <000001d06c89$f7082590$e51870b0$@t-online.de> References: <551BAD43.6030205@scilab-enterprises.com> <000001d06c89$f7082590$e51870b0$@t-online.de> Message-ID: <551C224A.1040100@scilab-enterprises.com> Hello, These files are kept for future installation without Internet connexion. You can removed them. Regards. Le 01/04/2015 16:41, Klaus Rohe a ?crit : > > Hi all, > > I have installed Scilab 5.5.2 on Windows 7 Ultimate 32 bit using > scilab-5.5.2.exe. > > After successfully installation the following files remain in the > directory > > From which I did the installation: > > commons-mkl-5.5.2-win32.zip > > blas-lapack-mkl-5.5.2-win32.zip > > Kind regards > > Klaus > > *Von:*users [mailto:users-bounces at lists.scilab.org] *Im Auftrag von > *Scilab Communications > *Gesendet:* Mittwoch, 1. April 2015 10:33 > *An:* release at lists.scilab.org; Scilab list; List dedicated to > development questions; localization at lists.scilab.org; > distributor at lists.scilab.org; gsoc at lists.scilab.org > *Betreff:* [Scilab-users] Release of Scilab 5.5.2 > > Dear Scilab users, > > *Scilab Enterprises is glad to announce the release of Scilab 5.5.2. * > > Scilab 5.5.2 is a minor release which solves in particular two serious > bugs: > > * Scilab failed to start under some Windows platforms due to an > ATOMS internal libraries loading issue (See bug #12842), > * All graphics were displayed in red under some Windows platforms > (See bug #12788). > > > This release also includes new graphics features such as the > improvement of the fec function to enable the rendering of meshes > based on any convex polygon type (not only triangles). > > * **Scilab 5.5.2 is now available for download at http://www.scilab.org* > > Best Regards > > > -- > Communication Department, Scilab Enterprises > 143bis rue Yves Le Coz - 78000 Versailles (France) > http://www.scilab-enterprises.com -http://www.scilab.org > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users -------------- next part -------------- An HTML attachment was scrubbed... URL: From dnayak at ncsu.edu Wed Apr 1 19:05:24 2015 From: dnayak at ncsu.edu (dnayak) Date: Wed, 1 Apr 2015 10:05:24 -0700 (MST) Subject: [Scilab-users] Grocer: Estimation of a Sequence of States In-Reply-To: References: <1427729335916-4031997.post@n3.nabble.com> Message-ID: Hi Eric, Thanks for the information. However, after going through the function ms_var_oos, I feel it runs the Markov-switching VAR model estimated over one period of time on another period and compares the results. However, I need a function that will estimate for me the sequence of regimes/states that the data goes through. So, what I need is to first estimate the parameters for the Markov-switching VAR model, i.e. train the model on a time-series data set X and then use the same parameters to estimate the regimes that every instant of X falls into. For example, it should give me something like - 1. Data for time instant 1 falls in Regime 2; 2. Data for time instant 2 falls in Regime 4; and so on. Can Grocer do that? Thanks, Deb On Mon, Mar 30, 2015 at 12:57 PM, Eric Dubois [via Scilab / Xcos - Mailing Lists Archives] wrote: > Hello. > > The function ms_var_oos that has been introduced in Grocer 1.66 is > probably what you need. > > See help ms_var_oos for a description of the function. > > Eric > Le 30 mars 2015 17:30, "dnayak" <[hidden email] > > a ?crit : > >> Hi, >> >> I have been using Grocer for some time now for the estimation of HMM-VAR >> parameters. However, I have a different problem now. >> >> Suppose, I have estimated the parameters of an HMM-VAR. Now, I want to use >> those parameters to estimate the sequence of states in a given time-series >> data. This may or may not be the data used to obtain the parameters. >> >> Is there any function, that is able to do that? >> >> Thanks, >> Deb >> >> >> >> -- >> View this message in context: >> http://mailinglists.scilab.org/Grocer-Estimation-of-a-Sequence-of-States-tp4031997.html >> Sent from the Scilab users - Mailing Lists Archives mailing list archive >> at Nabble.com. >> _______________________________________________ >> users mailing list >> [hidden email] >> http://lists.scilab.org/mailman/listinfo/users >> > > _______________________________________________ > users mailing list > [hidden email] > http://lists.scilab.org/mailman/listinfo/users > > > ------------------------------ > If you reply to this email, your message will be added to the discussion > below: > > http://mailinglists.scilab.org/Grocer-Estimation-of-a-Sequence-of-States-tp4031997p4031999.html > To unsubscribe from Grocer: Estimation of a Sequence of States, click > here > > . > NAML > > -- View this message in context: http://mailinglists.scilab.org/Grocer-Estimation-of-a-Sequence-of-States-tp4031997p4032031.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. -------------- next part -------------- An HTML attachment was scrubbed... URL: From grocer.toolbox at gmail.com Wed Apr 1 21:54:20 2015 From: grocer.toolbox at gmail.com (Eric Dubois) Date: Wed, 1 Apr 2015 21:54:20 +0200 Subject: [Scilab-users] Grocer: Estimation of a Sequence of States In-Reply-To: References: <1427729335916-4031997.post@n3.nabble.com> Message-ID: Hi Deb. I am not sure to understand: - the output from ms_var, a results tlist, contains field 'smoothed probs' and 'filteed probs' that provides the (smoothed and filtered) probabilities of the corresponding states on the estimation period; - the output from ms_var_oos provides the same results, but on any period (in or out of sample). Isn't it what you search? ?ric. 2015-04-01 19:05 GMT+02:00 dnayak : > Hi Eric, > > Thanks for the information. However, after going through the function > ms_var_oos, I feel it runs the Markov-switching VAR model estimated over > one period of time on another period and compares the results. > > However, I need a function that will estimate for me the sequence of > regimes/states that the data goes through. So, what I need is to first > estimate the parameters for the Markov-switching VAR model, i.e. train the > model on a time-series data set X and then use the same parameters to > estimate the regimes that every instant of X falls into. For example, it > should give me something like - 1. Data for time instant 1 falls in Regime > 2; 2. Data for time instant 2 falls in Regime 4; and so on. > > Can Grocer do that? > > Thanks, > Deb > > On Mon, Mar 30, 2015 at 12:57 PM, Eric Dubois [via Scilab / Xcos - Mailing > Lists Archives] <[hidden email] > > wrote: > >> Hello. >> >> The function ms_var_oos that has been introduced in Grocer 1.66 is >> probably what you need. >> >> See help ms_var_oos for a description of the function. >> >> Eric >> Le 30 mars 2015 17:30, "dnayak" <[hidden email] >> > a ?crit : >> >>> Hi, >>> >>> I have been using Grocer for some time now for the estimation of HMM-VAR >>> parameters. However, I have a different problem now. >>> >>> Suppose, I have estimated the parameters of an HMM-VAR. Now, I want to >>> use >>> those parameters to estimate the sequence of states in a given >>> time-series >>> data. This may or may not be the data used to obtain the parameters. >>> >>> Is there any function, that is able to do that? >>> >>> Thanks, >>> Deb >>> >>> >>> >>> -- >>> View this message in context: >>> http://mailinglists.scilab.org/Grocer-Estimation-of-a-Sequence-of-States-tp4031997.html >>> Sent from the Scilab users - Mailing Lists Archives mailing list archive >>> at Nabble.com. >>> _______________________________________________ >>> users mailing list >>> [hidden email] >>> http://lists.scilab.org/mailman/listinfo/users >>> >> >> _______________________________________________ >> users mailing list >> [hidden email] >> http://lists.scilab.org/mailman/listinfo/users >> >> >> ------------------------------ >> If you reply to this email, your message will be added to the >> discussion below: >> >> http://mailinglists.scilab.org/Grocer-Estimation-of-a-Sequence-of-States-tp4031997p4031999.html >> To unsubscribe from Grocer: Estimation of a Sequence of States, click >> here. >> NAML >> >> > > > ------------------------------ > View this message in context: Re: Grocer: Estimation of a Sequence of > States > > > Sent from the Scilab users - Mailing Lists Archives mailing list archive > > at Nabble.com. > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From vincent.couvert at scilab-enterprises.com Thu Apr 2 12:16:11 2015 From: vincent.couvert at scilab-enterprises.com (Vincent COUVERT) Date: Thu, 02 Apr 2015 12:16:11 +0200 Subject: [Scilab-users] Release of Scilab 5.5.2 In-Reply-To: <011BB2FD7D33AB49936FD297F594AEB89B1A0C1F@SFMB02.exponent.com> References: <551BAD43.6030205@scilab-enterprises.com> <011BB2FD7D33AB49936FD297F594AEB89B1A09B8@SFMB02.exponent.com> <551C0B99.7040803@scilab-enterprises.com> <011BB2FD7D33AB49936FD297F594AEB89B1A0C1F@SFMB02.exponent.com> Message-ID: <551D16EB.8000009@scilab-enterprises.com> Hello, We just released a Mac OS X 10.10 dedicated version of Scilab 5.5.2: http://www.scilab.org/download/5.5.2 Regards, On 04/01/2015 05:28 PM, Adam Dershowitz wrote: > That did it. It now opens and runs. > > -- Adam > > > From: Vincent COUVERT > > Reply-To: "International users mailing list for Scilab." > > > Date: Wednesday, April 1, 2015 at 11:15 AM > To: "users at lists.scilab.org " > > > Subject: Re: [Scilab-users] Release of Scilab 5.5.2 > > Hello, > > Can you try to remove > /Applications/scilab-5.5.2.app/Contents/MacOS/lib/thirdparty/libBLAS.dylib > to see if this fixes the issue? > > Regards, > Le 01/04/2015 15:13, Adam Dershowitz a ?crit : >> I?m not sure if this is the best place to report a problem, but >> figured I would start here. If there is a better place, please let >> me know. >> I just downloaded 5.5.2 for MacOS (10.10.2) and when I try to run it, >> I get a crash with the following library problem: >> >> Application Specific Information: >> dyld: launch, loading dependent libraries >> DYLD_LIBRARY_PATH=/Applications/scilab-5.5.2.app/Contents/MacOS/share/scilab/../../lib/scilab/:/Applications/scilab-5.5.2.app/Contents/MacOS/lib/scilab:/Applications/scilab-5.5.2.app/Contents/MacOS/lib/thirdparty:/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/../Libraries: >> >> Dyld Error Message: >> Symbol not found: _double_general_add >> Referenced from: >> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libLinearAlgebra.dylib >> Expected in: >> /Applications/scilab-5.5.2.app/Contents/MacOS/lib/thirdparty/libBLAS.dylib >> in >> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libLinearAlgebra.dylib >> >> I see that a six months back there was a dedicated version of 5.5.1 >> specifically for 10.10, but it looks like that one is no longer >> available, and this doesn?t appear to be a java related issue. >> >> Thoughts or suggestions? >> >> -- Adam >> >> >> From: Scilab Communications > > >> Organization: Scilab Enterprises >> Reply-To: "communication at scilab-enterprises.com >> " >> > >, "International users >> mailing list for Scilab." > > >> Date: Wednesday, April 1, 2015 at 4:33 AM >> To: "release at lists.scilab.org " >> >, Scilab >> list >, List >> dedicated to development questions > >, "localization at lists.scilab.org >> " >> > >, >> "distributor at lists.scilab.org " >> >, >> "gsoc at lists.scilab.org " >> > >> Subject: [Scilab-users] Release of Scilab 5.5.2 >> >> Dear Scilab users, >> >> *Scilab Enterprises is glad to announce the release of Scilab 5.5.2. * >> >> Scilab 5.5.2 is a minor release which solves in particular two >> serious bugs: >> >> * Scilab failed to start under some Windows platforms due to an >> ATOMS internal libraries loading issue (See bug #12842), >> * All graphics were displayed in red under some Windows platforms >> (See bug #12788). >> >> >> This release also includes new graphics features such as the >> improvement of the fec function to enable the rendering of meshes >> based on any convex polygon type (not only triangles). >> >> *Scilab 5.5.2 is now available for download at http://www.scilab.org* >> >> Best Regards >> >> -- >> Communication Department, Scilab Enterprises >> 143bis rue Yves Le Coz - 78000 Versailles (France) >> http://www.scilab-enterprises.com -http://www.scilab.org >> >> >> _______________________________________________ >> users mailing list >> users at lists.scilab.orghttp://lists.scilab.org/mailman/listinfo/users > > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users -------------- next part -------------- An HTML attachment was scrubbed... URL: From adershowitz at exponent.com Thu Apr 2 14:12:53 2015 From: adershowitz at exponent.com (Adam Dershowitz) Date: Thu, 2 Apr 2015 12:12:53 +0000 Subject: [Scilab-users] Release of Scilab 5.5.2 In-Reply-To: <551D16EB.8000009@scilab-enterprises.com> References: <551BAD43.6030205@scilab-enterprises.com> <011BB2FD7D33AB49936FD297F594AEB89B1A09B8@SFMB02.exponent.com> <551C0B99.7040803@scilab-enterprises.com> <011BB2FD7D33AB49936FD297F594AEB89B1A0C1F@SFMB02.exponent.com> <551D16EB.8000009@scilab-enterprises.com> Message-ID: <011BB2FD7D33AB49936FD297F594AEB89B1A163C@SFMB02.exponent.com> This one works for me. Thank you. -- Adam From: Vincent COUVERT > Reply-To: "International users mailing list for Scilab." > Date: Thursday, April 2, 2015 at 6:16 AM To: "users at lists.scilab.org" > Subject: Re: [Scilab-users] Release of Scilab 5.5.2 Hello, We just released a Mac OS X 10.10 dedicated version of Scilab 5.5.2: http://www.scilab.org/download/5.5.2 Regards, On 04/01/2015 05:28 PM, Adam Dershowitz wrote: That did it. It now opens and runs. -- Adam From: Vincent COUVERT > Reply-To: "International users mailing list for Scilab." > Date: Wednesday, April 1, 2015 at 11:15 AM To: "users at lists.scilab.org" > Subject: Re: [Scilab-users] Release of Scilab 5.5.2 Hello, Can you try to remove /Applications/scilab-5.5.2.app/Contents/MacOS/lib/thirdparty/libBLAS.dylib to see if this fixes the issue? Regards, Le 01/04/2015 15:13, Adam Dershowitz a ?crit : I?m not sure if this is the best place to report a problem, but figured I would start here. If there is a better place, please let me know. I just downloaded 5.5.2 for MacOS (10.10.2) and when I try to run it, I get a crash with the following library problem: Application Specific Information: dyld: launch, loading dependent libraries DYLD_LIBRARY_PATH=/Applications/scilab-5.5.2.app/Contents/MacOS/share/scilab/../../lib/scilab/:/Applications/scilab-5.5.2.app/Contents/MacOS/lib/scilab:/Applications/scilab-5.5.2.app/Contents/MacOS/lib/thirdparty:/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/../Libraries: Dyld Error Message: Symbol not found: _double_general_add Referenced from: /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libLinearAlgebra.dylib Expected in: /Applications/scilab-5.5.2.app/Contents/MacOS/lib/thirdparty/libBLAS.dylib in /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libLinearAlgebra.dylib I see that a six months back there was a dedicated version of 5.5.1 specifically for 10.10, but it looks like that one is no longer available, and this doesn?t appear to be a java related issue. Thoughts or suggestions? -- Adam From: Scilab Communications > Organization: Scilab Enterprises Reply-To: "communication at scilab-enterprises.com" >, "International users mailing list for Scilab." > Date: Wednesday, April 1, 2015 at 4:33 AM To: "release at lists.scilab.org" >, Scilab list >, List dedicated to development questions >, "localization at lists.scilab.org" >, "distributor at lists.scilab.org" >, "gsoc at lists.scilab.org" > Subject: [Scilab-users] Release of Scilab 5.5.2 Dear Scilab users, Scilab Enterprises is glad to announce the release of Scilab 5.5.2. Scilab 5.5.2 is a minor release which solves in particular two serious bugs: * Scilab failed to start under some Windows platforms due to an ATOMS internal libraries loading issue (See bug #12842), * All graphics were displayed in red under some Windows platforms (See bug #12788). This release also includes new graphics features such as the improvement of the fec function to enable the rendering of meshes based on any convex polygon type (not only triangles). Scilab 5.5.2 is now available for download at http://www.scilab.org Best Regards -- Communication Department, Scilab Enterprises 143bis rue Yves Le Coz - 78000 Versailles (France) http://www.scilab-enterprises.com - http://www.scilab.org _______________________________________________ users mailing list users at lists.scilab.orghttp://lists.scilab.org/mailman/listinfo/users _______________________________________________ users mailing list users at lists.scilab.orghttp://lists.scilab.org/mailman/listinfo/users -------------- next part -------------- An HTML attachment was scrubbed... URL: From joodlink at hotmail.com Mon Apr 6 05:29:17 2015 From: joodlink at hotmail.com (Joo Cat) Date: Mon, 6 Apr 2015 11:29:17 +0800 Subject: [Scilab-users] How to Import Java Files with long names? Message-ID: How do you import Java files that are longer than 24 characters? Compiling them is OK. It's only when importing them into Scilab that gives the error due to truncation. jcompile("ThisIsALongJavaNameForScilab.java") jimport("ThisIsALongJavaNameForScilab") // Error -------------- next part -------------- An HTML attachment was scrubbed... URL: From Florian.Klingenstein at gigatronik.com Tue Apr 7 10:59:30 2015 From: Florian.Klingenstein at gigatronik.com (Flo) Date: Tue, 7 Apr 2015 01:59:30 -0700 (MST) Subject: [Scilab-users] Model Name from within interfacing function In-Reply-To: References: Message-ID: <1428397170815-4032043.post@n3.nabble.com> Hi Grzegorz, thanks for your answer. I know that i can use the scs_m-structure but i can't access it from within the interfacing function of the Xcos-Block. Is it possible to compile the scheme in the interfacing function and make scs_m available? Regards Flo -- View this message in context: http://mailinglists.scilab.org/Scilab-users-Model-Name-from-within-interfacing-function-tp4031992p4032043.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From stephane.mottelet at utc.fr Tue Apr 7 15:39:36 2015 From: stephane.mottelet at utc.fr (=?UTF-8?B?U3TDqXBoYW5lIE1vdHRlbGV0?=) Date: Tue, 07 Apr 2015 15:39:36 +0200 Subject: [Scilab-users] bug #13158 /parallel_run on MacOSX Message-ID: <5523DE18.2010400@utc.fr> Hello, Is there any plan to solve bug #13158 ? http://bugzilla.scilab.org/show_bug.cgi?id=13158 There is no assignee since the bug has been signaled (in 2014)... As far as I am concerned, I have access to a Linux machine where parallel_run is completely functional, but my usual machine is a MacPro and I would like to use parallel_run on MacOS also. S. -- D?partement de G?nie Informatique EA 4297 Transformations Int?gr?es de la Mati?re Renouvelable Universit? de Technologie de Compi?gne - CS 60319 60203 Compi?gne cedex From pablo_f_7 at hotmail.com Tue Apr 7 22:47:19 2015 From: pablo_f_7 at hotmail.com (Pablo Fonovich) Date: Tue, 7 Apr 2015 17:47:19 -0300 Subject: [Scilab-users] scilab 5.5.2 Ubuntu 14.10 plot error Message-ID: Hi: When i try to plot something with the function plot(x,y) an error message appears: -->plot(x,y) !--error 999 plot2d: Wrong value for frameflag option. at line 44 of function _update_leaf called by : at line 332 of function _mainPlot called by : at line 28 of function plot called by : plot(x,y) When i use plot2d(x,y) it works perfectly... How con i fix this? -------------- next part -------------- An HTML attachment was scrubbed... URL: From vincent.couvert at scilab-enterprises.com Wed Apr 8 08:51:03 2015 From: vincent.couvert at scilab-enterprises.com (Vincent COUVERT) Date: Wed, 08 Apr 2015 08:51:03 +0200 Subject: [Scilab-users] scilab 5.5.2 Ubuntu 14.10 plot error In-Reply-To: References: Message-ID: <5524CFD7.3080707@scilab-enterprises.com> Hello, What do x and y contain? Regards. Le 07/04/2015 22:47, Pablo Fonovich a ?crit : > Hi: > When i try to plot something with the function plot(x,y) an error > message appears: > > -->plot(x,y) > !--error 999 > plot2d: Wrong value for frameflag option. > at line 44 of function _update_leaf called by : > at line 332 of function _mainPlot called by : > at line 28 of function plot called by : > plot(x,y) > > When i use plot2d(x,y) it works perfectly... > How con i fix this? > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users -------------- next part -------------- An HTML attachment was scrubbed... URL: From vincent.couvert at scilab-enterprises.com Wed Apr 8 08:53:15 2015 From: vincent.couvert at scilab-enterprises.com (Vincent COUVERT) Date: Wed, 08 Apr 2015 08:53:15 +0200 Subject: [Scilab-users] scilab 5.5.2 Ubuntu 14.10 plot error In-Reply-To: <5524CFD7.3080707@scilab-enterprises.com> References: <5524CFD7.3080707@scilab-enterprises.com> Message-ID: <5524D05B.6060908@scilab-enterprises.com> Hello, The plot function you use is not Scilab's one (_update_leaf is not defined in Scilab). Did you install some ATOMS modules? Regards. Le 08/04/2015 08:51, Vincent COUVERT a ?crit : > > Hello, > > What do x and y contain? > > Regards. > > Le 07/04/2015 22:47, Pablo Fonovich a ?crit : >> Hi: >> When i try to plot something with the function plot(x,y) an error >> message appears: >> >> -->plot(x,y) >> !--error 999 >> plot2d: Wrong value for frameflag option. >> at line 44 of function _update_leaf called by : >> at line 332 of function _mainPlot called by : >> at line 28 of function plot called by : >> plot(x,y) >> >> When i use plot2d(x,y) it works perfectly... >> How con i fix this? >> >> >> _______________________________________________ >> users mailing list >> users at lists.scilab.org >> http://lists.scilab.org/mailman/listinfo/users > > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users -------------- next part -------------- An HTML attachment was scrubbed... URL: From stephane.mottelet at utc.fr Wed Apr 8 09:13:25 2015 From: stephane.mottelet at utc.fr (=?windows-1252?Q?St=E9phane_Mottelet?=) Date: Wed, 08 Apr 2015 09:13:25 +0200 Subject: [Scilab-users] scilab 5.5.2 Ubuntu 14.10 plot error In-Reply-To: <5524D05B.6060908@scilab-enterprises.com> References: <5524CFD7.3080707@scilab-enterprises.com> <5524D05B.6060908@scilab-enterprises.com> Message-ID: <5524D515.2020405@utc.fr> Hello, You are using the plotlib, please file a ticket at the plotlib Atoms page: https://atoms.scilab.org/toolboxes/plotlib S. Le 08/04/2015 08:53, Vincent COUVERT a ?crit : > Hello, > > The plot function you use is not Scilab's one (_update_leaf is not > defined in Scilab). Did you install some ATOMS modules? > > Regards. > > Le 08/04/2015 08:51, Vincent COUVERT a ?crit : >> >> Hello, >> >> What do x and y contain? >> >> Regards. >> >> Le 07/04/2015 22:47, Pablo Fonovich a ?crit : >>> Hi: >>> When i try to plot something with the function plot(x,y) an error >>> message appears: >>> >>> -->plot(x,y) >>> !--error 999 >>> plot2d: Wrong value for frameflag option. >>> at line 44 of function _update_leaf called by : >>> at line 332 of function _mainPlot called by : >>> at line 28 of function plot called by : >>> plot(x,y) >>> >>> When i use plot2d(x,y) it works perfectly... >>> How con i fix this? >>> >>> >>> _______________________________________________ >>> users mailing list >>> users at lists.scilab.org >>> http://lists.scilab.org/mailman/listinfo/users >> >> >> >> _______________________________________________ >> users mailing list >> users at lists.scilab.org >> http://lists.scilab.org/mailman/listinfo/users > > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users -- D?partement de G?nie Informatique EA 4297 Transformations Int?gr?es de la Mati?re Renouvelable Universit? de Technologie de Compi?gne - CS 60319 60203 Compi?gne cedex -------------- next part -------------- An HTML attachment was scrubbed... URL: From pablo_f_7 at hotmail.com Wed Apr 8 13:23:54 2015 From: pablo_f_7 at hotmail.com (Pablo Fonovich) Date: Wed, 8 Apr 2015 08:23:54 -0300 Subject: [Scilab-users] scilab 5.5.2 Ubuntu 14.10 plot error In-Reply-To: <5524D515.2020405@utc.fr> References: , <5524CFD7.3080707@scilab-enterprises.com>, <5524D05B.6060908@scilab-enterprises.com>, <5524D515.2020405@utc.fr> Message-ID: Hi: Thanks... sorry for not answering before... it was night here... You are right... i have installed plotlib... i don't even know when i've installed it, cause all i wanted to install was IPD toolbox... I will just uninstall it... i'll wright to them so they fix it anyways Thanks again Date: Wed, 8 Apr 2015 09:13:25 +0200 From: stephane.mottelet at utc.fr To: users at lists.scilab.org Subject: Re: [Scilab-users] scilab 5.5.2 Ubuntu 14.10 plot error Hello, You are using the plotlib, please file a ticket at the plotlib Atoms page: https://atoms.scilab.org/toolboxes/plotlib S. Le 08/04/2015 08:53, Vincent COUVERT a ?crit : Hello, The plot function you use is not Scilab's one (_update_leaf is not defined in Scilab). Did you install some ATOMS modules? Regards. Le 08/04/2015 08:51, Vincent COUVERT a ?crit : Hello, What do x and y contain? Regards. Le 07/04/2015 22:47, Pablo Fonovich a ?crit : Hi: When i try to plot something with the function plot(x,y) an error message appears: -->plot(x,y) !--error 999 plot2d: Wrong value for frameflag option. at line 44 of function _update_leaf called by : at line 332 of function _mainPlot called by : at line 28 of function plot called by : plot(x,y) When i use plot2d(x,y) it works perfectly... How con i fix this? _______________________________________________ users mailing list users at lists.scilab.org http://lists.scilab.org/mailman/listinfo/users _______________________________________________ users mailing list users at lists.scilab.org http://lists.scilab.org/mailman/listinfo/users _______________________________________________ users mailing list users at lists.scilab.org http://lists.scilab.org/mailman/listinfo/users -- D?partement de G?nie Informatique EA 4297 Transformations Int?gr?es de la Mati?re Renouvelable Universit? de Technologie de Compi?gne - CS 60319 60203 Compi?gne cedex _______________________________________________ users mailing list users at lists.scilab.org http://lists.scilab.org/mailman/listinfo/users -------------- next part -------------- An HTML attachment was scrubbed... URL: From clement.david at scilab-enterprises.com Wed Apr 8 16:35:51 2015 From: clement.david at scilab-enterprises.com (=?ISO-8859-1?Q?Cl=E9ment?= David) Date: Wed, 08 Apr 2015 16:35:51 +0200 Subject: [Scilab-users] Model Name from within interfacing function In-Reply-To: <1428397170815-4032043.post@n3.nabble.com> References: <1428397170815-4032043.post@n3.nabble.com> Message-ID: <1428503751.2332.25.camel@scilab-enterprises.com> Hello, Currently there is no way to retrieve the current diagram (eg. the scs_m variable) from a block interface function. For me, block interface function have to be orthogonal to the diagram structure to decouple thing and ease future evolution. What's your need there ? Do you want to perform something at the diagram level from an interface function ? Regards, -- Cl?ment Le mardi 07 avril 2015 ? 01:59 -0700, Flo a ?crit : > Hi Grzegorz, > > thanks for your answer. I know that i can use the scs_m-structure but i > can't access it from within the interfacing function of the Xcos-Block. Is > it possible to compile the scheme in the interfacing function and make scs_m > available? > > Regards > Flo > > > > -- > View this message in context: http://mailinglists.scilab.org/Scilab-users-Model-Name-from-within-interfacing-function-tp4031992p4032043.html > Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users From clement.david at scilab-enterprises.com Wed Apr 8 16:45:25 2015 From: clement.david at scilab-enterprises.com (=?ISO-8859-1?Q?Cl=E9ment?= David) Date: Wed, 08 Apr 2015 16:45:25 +0200 Subject: [Scilab-users] How to unlock scilab console during Xcos simulation ? In-Reply-To: References: Message-ID: <1428504325.2332.33.camel@scilab-enterprises.com> Hi, You have to be aware that launching an Xcos simulation execute Scilab code. As Scilab is not multi-threaded, executing some code lock the interpreters and commands are just pushed on the execution queue for future execution. One way to execute Scilab code while an Xcos simulation is possible though : just implement a Scilab block ! For exemple, take a look at the "TKSCALE" block (with a "tkscaleblk" Scilab simulation function). In my view, implementing a specific GUI for your real plant might be quiet similar to the TKSCALE code. Regards, -- Cl?ment Le mardi 31 mars 2015 ? 12:03 +0200, Grzegorz Skiba a ?crit : > Hi all, > > > > > I use Xcos model to control real plant. While xcos simulation is > running I can use custom Scilab functions to change plant behaviour, > but function call is executed after Xcos simulation ends. > > > Is it possible to ulock scilab console during Xcos simulation and call > function during Xcos simulation ? > > > Regards Grzegorz > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users From clement.david at scilab-enterprises.com Wed Apr 8 16:52:39 2015 From: clement.david at scilab-enterprises.com (=?ISO-8859-1?Q?Cl=E9ment?= David) Date: Wed, 08 Apr 2015 16:52:39 +0200 Subject: [Scilab-users] modelica In-Reply-To: <1427273195383-4031948.post@n3.nabble.com> References: <1427273195383-4031948.post@n3.nabble.com> Message-ID: <1428504759.2332.35.camel@scilab-enterprises.com> Hello, Without more information, I can not help you. Can you post an example diagram please ? Le mercredi 25 mars 2015 ? 01:46 -0700, anil a ?crit : > hello,I am trying to develop a new block for thyristor using M-block , but i > am unable to use already defined classes such as TwoPin in my modelica > code.It is showing error displaying inheritence in not allowed.So how do i > make new block for thyristor. -- Cl?ment From michele.fabbri at inria.fr Tue Apr 7 16:56:23 2015 From: michele.fabbri at inria.fr (mfabbri) Date: Tue, 7 Apr 2015 07:56:23 -0700 (MST) Subject: [Scilab-users] Importing FMU generated by Xcos (Scilab) Message-ID: <1428418583998-4032046.post@n3.nabble.com> I would like to import an FMU generated by Xcos. To generate it, i used Xcos FMU wrapper ( http://forge.scilab.org/index.php/p/fmu-wrapper/ ) When I try to import the FMU with PyFMI, I get the error "Could not load the DLL: /tmp/fmucktmpgutAoV/binaries/linux64/second.so: undefined symbol: convert" where second.fmu is the name of the fmu file. Is what I want to do possible? Thank you -- View this message in context: http://mailinglists.scilab.org/Importing-FMU-generated-by-Xcos-Scilab-tp4032046.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From gcarballo89 at gmail.com Wed Apr 8 14:51:00 2015 From: gcarballo89 at gmail.com (G Carballo) Date: Wed, 8 Apr 2015 09:51:00 -0300 Subject: [Scilab-users] Scilab-quiestion! Message-ID: Hello!, i need build a TS diagram for oceanography in Scilab, anypeople know why do it? I have de salinity for de diferent depth. thank Gonzalo. -------------- next part -------------- An HTML attachment was scrubbed... URL: From nardo85 at gmail.com Thu Apr 9 16:26:04 2015 From: nardo85 at gmail.com (Nukles) Date: Thu, 9 Apr 2015 07:26:04 -0700 (MST) Subject: [Scilab-users] Issue when compiling Scilab: "Cannot allocate this quantity of memory" In-Reply-To: <1425374669.2419.9.camel@scilab-enterprises.com> References: <1425301264061-4031761.post@n3.nabble.com> <1425374669.2419.9.camel@scilab-enterprises.com> Message-ID: Hi all, I think I solved the problem: it had to do with the Endian-ness of the Operating System. I was using RHEL 7.0 Big Endian, not the Little Endian version as it is on any x86 System. I compiled Scilab on RHEL 7.1 Little Endian, on both PowerKVM and PowerVM, and the issue did not show up again. I assume then that if the OS is Big Endian, the memory allocation functions won't get the real memory allocated because the Memory is allocated in another order. Issue is then more or less solved, as long as you use a Little Endian Operating System (like SUSE 12 and Ubuntu 14 on POWER) On 9 March 2015 at 09:43, nardo85 at gmail.com wrote: > Hi all, I would like to "bump" this discussion, as I haven't been able to > move forward after a week, still facing the same problems. Also, I would be > able to provide remote access to this ppc64 machine if needed. > > On 3 March 2015 at 15:02, nardo85 at gmail.com wrote: > >> Hi Clement, >> >> Many thanks for your answer! >> >> I found those macros and in the meantime I found a little more info too. >> Maybe that can help to understand the issue; it seems really puzzling. >> >> A) The value returned for __LONG_MAX___ , after querying the compiler, >> is like that: >> >> >> >> *[root at localhost ~]# gcc -dM -E - < /dev/null |grep __LONG_MAX__#define >> __LONG_MAX__ 9223372036854775807L* >> B) The problem shouldn't be the method >> *get_max_memory_for_scilab_stack(void)*, as I initially thought, because >> I noticed it is called by *sci_stacksize.c* to verify if the value given >> as input is out of bounds. If you do, let's say, *stacksize(1)*, it will >> return: >> >> >> >> >> >> >> *-->stacksize(1) !--error 1504stacksize: Out of bounds value. >> Not in [180000,268435454].-->* >> >> the value given as the lower bound, is explicitly defined in the class. >> The value for the upper bound is instead taken from >> *get_max_memory_for_scilab_stack(void)*, so that method should not be >> the problem as in this case, it returns an apparently good value. >> >> C) The error is generated at compile time when the buildmacros script >> does *stacksize(5000000)*. The system returns it cannot allocate this >> stacksize, as it apparently "thinks" the value 5000000 is bigger than the >> max stacksize, which we have seen from before, it should amount to >> *268435454*. It checks if 5000000 is lower than >> get_max_memory_for_scilab_stack() in stackinfo.c (which should be >> *268435454)*, it understands that it's larger, and prompts out the >> error. I tried to "trick the system" by eliminating this check in the class >> stackinfo.c. The compilation in that case fails as it says the stack size >> has been exceeded: which is another error message. >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> *./bin/scilab-cli -ns -noatomsautoload -f >> modules/functions/scripts/buildmacros/buildmacros.scestacksize(5000000); >> !--error 42A fatal error has been detected by Scilab.Your instance will >> probably quit unexpectedly soon.If a graphic feature has been used, this >> might be caused by the system graphic drivers.Please try to update them and >> run this feature again.You can report a bug on http://bugzilla.scilab.org/ >> with:* a sample code which reproduces the >> issue* the result of [a, b] = getdebuginfo()* the following >> information:[localhost:10797] Signal: Segmentation fault >> (11)[localhost:10797] Signal code: Invalid permissions (2)[localhost:10797] >> Failing at address: 0x10000a096928Call stack: 1: ? >> ? (?) 2: 0x2c381c >> >> (/root/scilab/scilab-5.5.1/modules/.libs/libscilab-cli.so.0) 3: 0x1f4060 >> >> (/root/scilab/scilab-5.5.1/modules/.libs/libscilab-cli.so.0) 4: 0x1805d0 >> < > >> (/root/scilab/scilab-5.5.1/modules/.libs/libscilab-cli.so.0) 5: 0x180de4 >> >> (/root/scilab/scilab-5.5.1/modules/.libs/libscilab-cli.so.0) 6: 0x1ae7ac >> >> (/root/scilab/scilab-5.5.1/modules/.libs/libscilab-cli.so.0) 7: 0x18944c >> >> (/root/scilab/scilab-5.5.1/modules/.libs/libscilab-cli.so.0) 8: 0x1ae8a0 >> >> (/root/scilab/scilab-5.5.1/modules/.libs/libscilab-cli.so.0) 9: 0x1c7d50 >> >> (/root/scilab/scilab-5.5.1/modules/.libs/libscilab-cli.so.0) 10: 0x1c1220 >> >> (/root/scilab/scilab-5.5.1/modules/.libs/libscilab-cli.so.0) 11: 0x18b4 >> < > >> (/root/scilab/scilab-5.5.1/.libs/lt-scilab-cli-bin) 12: 0x4454c < >> > (/lib64/power8/libc.so.6) 13: 0x44774 >> <__libc_start_main> (/lib64/power8/libc.so.6)End of stackat >> line 27 of exec file called by >> :exec('modules/functions/scripts/buildmacros/buildmacros.sce',-1) >> !--error 999Aborting current computation* >> >> D) I also tried to trick the system by eliminating the command *stacksize(5000000) >> *from buildmacros, and the compilation completed successfully. However, >> when starting *scilab-cli*, there is a startup script which apparently >> tests the stacksize and displays the error, although scilab keeps working. >> Wheneven I try however to allocate a stacksize, it displays the error again. >> >> E) I modified the class to explicitly declare a value lower than 180'000 >> as the lower bound. I set 1. I tried to do *stacksize(2)*, and it also >> returned that it cannot allocate this quantity of memory. >> >> >> If you would like to have a closer look, and I would really thank you for >> that, I think I can arrange for a remote access on my VM, so that you can >> see directly. >> >> Thanks! >> >> Andrea >> >> >> >> >> >> >> >> >> >> On 3 March 2015 at 10:25, Cl?ment David-2 [via Scilab / Xcos - Mailing >> Lists Archives] wrote: >> >>> Hello (added dev ML), >>> >>> Le lundi 02 mars 2015 ? 06:01 -0700, Nukles a ?crit : >>> > So my guess is: MAXLONG is not declared, so the function does not >>> return a >>> > value (or it returns 0) and therefore the error message is triggered >>> because >>> > the stacksize given as input is higher than 0 or NULL or N/A. >>> > >>> > My questions are then: >>> > >>> > - Why are all lines commented where MAXLONG is defined? >>> >>> On my system (Fedora 21 x86_64) the MAXLONG macro is defined at : >>> >>> stackinfo.c:35 #define MAXLONG LONG_MAX >>> >>> and LONG_MAX comes from limits.h >>> >>> >>> > - Where does MAXLONG originate from? Is it something passed from the >>> > kernel? >>> > - How can I solve the problem? >>> >>> Well, as we do not have any PPC64 at Scilab I cannot check. Is a VM >>> available for that platform / distro ? >>> >>> >>> -- >>> Cl?ment >>> >>> _______________________________________________ >>> users mailing list >>> [hidden email] >>> http://lists.scilab.org/mailman/listinfo/users >>> >>> >>> ------------------------------ >>> If you reply to this email, your message will be added to the >>> discussion below: >>> >>> http://mailinglists.scilab.org/Issue-when-compiling-Scilab-Cannot-allocate-this-quantity-of-memory-tp4031761p4031774.html >>> To unsubscribe from Issue when compiling Scilab: "Cannot allocate this >>> quantity of memory", click here >>> >>> . >>> NAML >>> >>> >> >> > -- View this message in context: http://mailinglists.scilab.org/Issue-when-compiling-Scilab-Cannot-allocate-this-quantity-of-memory-tp4031761p4032056.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. -------------- next part -------------- An HTML attachment was scrubbed... URL: From prashantfunde91 at gmail.com Fri Apr 10 10:06:36 2015 From: prashantfunde91 at gmail.com (prashantfunde91) Date: Fri, 10 Apr 2015 01:06:36 -0700 (MST) Subject: [Scilab-users] AWGN function Message-ID: <1428653196729-4032057.post@n3.nabble.com> Hello everyone, I want to use AWGN function in my code.. So please tell me, how can i use AWGN function in my code? Please share its syntax with function. -- View this message in context: http://mailinglists.scilab.org/AWGN-function-tp4032057.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From Christophe.Dang at sidel.com Fri Apr 10 15:41:34 2015 From: Christophe.Dang at sidel.com (Dang, Christophe) Date: Fri, 10 Apr 2015 13:41:34 +0000 Subject: [Scilab-users] Scilab-quiestion! In-Reply-To: References: Message-ID: Hello, > De : G Carballo > Envoy? : mercredi 8 avril 2015 14:51 > > i need build a TS diagram for oceanography in Scilab, anypeople know why do it? > I have de salinity for de diferent depth. If you are looking for formulas, you'd better ask an oceanography forum (unless someone here specifically work on this topic). If you are looking for advice about how to perform the calculations, then we need a sample of data and the formulas. Best regards -- Christophe Dang Ngoc Chan Mechanical calculation engineer This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error), please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden. From communication at scilab-enterprises.com Fri Apr 10 15:53:29 2015 From: communication at scilab-enterprises.com (Scilab Communications) Date: Fri, 10 Apr 2015 15:53:29 +0200 Subject: [Scilab-users] 1 month left to register to ScilabTEC Message-ID: <5527D5D9.6030302@scilab-enterprises.com> Open this message in a browser ScilabTEC2015 ------------------------------------------------------------------------ 1 month left to register to ScilabTEC 2015! *ScilabTEC offers you a unique opportunity to discover Scilab innovative applications in:* - Aerospace with CNES presenting the use of Scilab in Philae successful landing, - Automotive with Johnson Electric Gate dealing with Scilab implementation in flow fans design process, - Pharmaceutical Industry with Sanofi saving energy costs with Scilab, - Health with Inria analyzing ECG with Scilab to prevent cardiac diseases, - Hardware Industry with Xilinx, the FPGA inventor, using Scilab for hardware-in-the-loop simulations, - And many others! ScilabTEC is the Scilab Users International Conference. Conference in English. Discover the complete program here The first evening, participants may meet over dinner with Scilab team during a moment of conviviality and exchange. REGISTER NOW (Limited seating) Scilab Enterprises ------------------------------------------------------------------------ Communication Department, Scilab Enterprises | communication at scilab-enterprises.com 143bis rue Yves Le Coz - 78000 Versailles (FR) | www.scilab-enterprises.com - www.scilab.org scilabtec -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Logo-Scilabtec2015-RVB.png Type: image/png Size: 23692 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Scilab_Enterprises_logo_RVB.png Type: image/png Size: 10290 bytes Desc: not available URL: From frederic.jourdin at shom.fr Fri Apr 10 15:54:54 2015 From: frederic.jourdin at shom.fr (Frederic Jourdin) Date: Fri, 10 Apr 2015 15:54:54 +0200 Subject: [Scilab-users] Scilab-quiestion! In-Reply-To: References: Message-ID: <5527D62E.8070800@shom.fr> I am oceanographer and Scilab developer but unfortunately I don't know T/S diagrams already developed in Scilab. For that purpose I use the ODV (Ocean Data View) software. Fred Le 10/04/2015 15:41, Dang, Christophe a ?crit : > Hello, > >> De : G Carballo >> Envoy? : mercredi 8 avril 2015 14:51 >> >> i need build a TS diagram for oceanography in Scilab, anypeople know why do it? >> I have de salinity for de diferent depth. > If you are looking for formulas, you'd better ask an oceanography forum > (unless someone here specifically work on this topic). > > If you are looking for advice about how to perform the calculations, > then we need a sample of data and the formulas. > > Best regards > > -- > Christophe Dang Ngoc Chan > Mechanical calculation engineer > > This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error), please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden. > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users From pablo_f_7 at hotmail.com Fri Apr 10 17:21:10 2015 From: pablo_f_7 at hotmail.com (Pablo Fonovich) Date: Fri, 10 Apr 2015 12:21:10 -0300 Subject: [Scilab-users] Custom function takes arguments from workspace Message-ID: Hi: I've noticed that if i make a function with for example 3 inputs arguments, and in the call i forget to give one input argument, the function uses (if it exist) a variable from the console with the same name of the missing argument. For example... i have this function: function y=circconv(x,h,N) x=x(:)';h=h(:)'; hzp=zeros(1,N);xzp=zeros(1,N) if length(x) From sdr at durietz.se Fri Apr 10 17:38:57 2015 From: sdr at durietz.se (Stefan Du Rietz) Date: Fri, 10 Apr 2015 17:38:57 +0200 Subject: [Scilab-users] Custom function takes arguments from workspace In-Reply-To: References: Message-ID: <5527EE91.3020201@durietz.se> Hello, I also once had that problem. But you can check if it is a local variable: if exists("my_last_argument", "l") then Regards Stefan On 2015-04-10 17:21, Pablo Fonovich wrote: > Hi: > I've noticed that if i make a function with for example 3 inputs > arguments, and in the call i forget to give one input argument, the > function uses (if it exist) a variable from the console with the same > name of the missing argument. For example... i have this function: > > function y=circconv(x,h,N) > x=x(:)';h=h(:)'; > hzp=zeros(1,N);xzp=zeros(1,N) > if length(x) xzp=[x zeros(1,N-length(x))] > else > xzp=x(1:N); > end > if length(h) hzp=[h zeros(1,N-length(h))] > else > hzp=h(1:N); > end > y=ifft(fft(xzp).*fft(hzp)) > endfunction > > If i call the function without giving the argument N, but there is a > variable called N in the workspace, it uses that N... > Is this intentional? So, if i want the user to give exactly the 3 > arguments... the only solution would be using argn? > > because this was causing me some bugs > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > From sgougeon at free.fr Fri Apr 10 20:47:45 2015 From: sgougeon at free.fr (Samuel Gougeon) Date: Fri, 10 Apr 2015 20:47:45 +0200 Subject: [Scilab-users] AWGN function In-Reply-To: <1428653196729-4032057.post@n3.nabble.com> References: <1428653196729-4032057.post@n3.nabble.com> Message-ID: <55281AD1.8040607@free.fr> Hello, Le 10/04/2015 10:06, prashantfunde91 a ?crit : > Hello everyone, > I want to use AWGN function in my code.. So please tell me, how can i use > AWGN function in my code? Please share its syntax with function. You may have a look at the grand(.,.,"nor",..) function : http://help.scilab.org/docs/5.5.2/en_US/grand.html Regards Samuel From sgougeon at free.fr Fri Apr 10 21:37:14 2015 From: sgougeon at free.fr (Samuel Gougeon) Date: Fri, 10 Apr 2015 21:37:14 +0200 Subject: [Scilab-users] Custom function takes arguments from workspace In-Reply-To: References: Message-ID: <5528266A.9040407@free.fr> Hello, Le 10/04/2015 17:21, Pablo Fonovich a ?crit : > .../... If i call the function without giving the argument N, but > there is a variable called N in the workspace, it uses that N... > Is this intentional? Yes it is. > So, if i want the user to give exactly the 3 arguments... the only > solution would be using argn? Yes, indeed. > > because this was causing me some bugs For variables scope, you may have a look at http://wiki.scilab.org/howto/global%20and%20local%20variables Regards Samuel -------------- next part -------------- An HTML attachment was scrubbed... URL: From michele.fabbri at inria.fr Mon Apr 13 11:14:33 2015 From: michele.fabbri at inria.fr (mfabbri) Date: Mon, 13 Apr 2015 02:14:33 -0700 (MST) Subject: [Scilab-users] Importing FMU generated by Xcos (Scilab) In-Reply-To: <1428418583998-4032046.post@n3.nabble.com> References: <1428418583998-4032046.post@n3.nabble.com> Message-ID: <1428916473279-4032075.post@n3.nabble.com> I haven't found a solution yet, but I got some progress. I tried to re-generate the .so file inside the FMU (using the source inside the FMU). The error changed at every time that I added a new library to the linker, and so I added all the libraries of SciLab (/usr/lib/scilab/*). The error depends also on how I generate the .so file. gcc -Wl,--no-as-needed -fPIC -shared -o prova.so prova_Scilab_FMU.c /usr/lib/scilab/* -I/usr/include/scilab/ -I/home/mfabbri/.Scilab/fmu-wrapper-0.6/src/c/ You can check the output of the FMUChecker and of the command ldd -d here: http://pastebin.com/qBLiDRgd As you can see, I have a problem with JAVA library (Java is installed in my OS). I tried to linked that library but without success. while using this same commmand without the "Wl,--no-as-needed" flag: gcc -fPIC -shared -o prova.so prova_Scilab_FMU.c /usr/lib/scilab/* -I/usr/include/scilab/ -I/home/mfabbri/.Scilab/fmu-wrapper-0.6/src/c/ You can check the output of the FMUChecker and of the command ldd -d here: http://pastebin.com/MaV2pdHT I know that the "undefined symbol: pvApiCtx" is in api_common.h (/usr/include/scilab) file but I didn't find the library to link. More, in both solutions there is this string in the FMUChecker output: [INFO][FMILIB] Loading 'linux64' binary with 'standard32' platform types Is normal this info? I'm using Linux Mint 17.1 Rebecca - 64bit For now I'm stuck for both the solutions but what I want to try is to link all the libraries in the OS. Thank you to everybody that wants to help me -- View this message in context: http://mailinglists.scilab.org/Importing-FMU-generated-by-Xcos-Scilab-tp4032046p4032075.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From clement.david at scilab-enterprises.com Mon Apr 13 11:16:36 2015 From: clement.david at scilab-enterprises.com (=?ISO-8859-1?Q?Cl=E9ment?= David) Date: Mon, 13 Apr 2015 11:16:36 +0200 Subject: [Scilab-users] Issue when compiling Scilab: "Cannot allocate this quantity of memory" In-Reply-To: References: <1425301264061-4031761.post@n3.nabble.com> <1425374669.2419.9.camel@scilab-enterprises.com> Message-ID: <1428916596.2602.13.camel@scilab-enterprises.com> Hello Andrea, Thanks for this workaround. However note that any Scilab endianess issue is a bug. Do not hesitate to report on bugzilla.scilab.org . Regards, -- Cl?ment Le jeudi 09 avril 2015 ? 07:26 -0700, Nukles a ?crit : > Hi all, > > > I think I solved the problem: it had to do with the Endian-ness of the > Operating System. I was using RHEL 7.0 Big Endian, not the Little > Endian version as it is on any x86 System. > > > I compiled Scilab on RHEL 7.1 Little Endian, on both PowerKVM and > PowerVM, and the issue did not show up again. > > > I assume then that if the OS is Big Endian, the memory allocation > functions won't get the real memory allocated because the Memory is > allocated in another order. > > > Issue is then more or less solved, as long as you use a Little Endian > Operating System (like SUSE 12 and Ubuntu 14 on POWER) > > > On 9 March 2015 at 09:43, [hidden email] <[hidden email]> wrote: > Hi all, I would like to "bump" this discussion, as I haven't > been able to move forward after a week, still facing the same > problems. Also, I would be able to provide remote access to > this ppc64 machine if needed. > > On 3 March 2015 at 15:02, [hidden email] <[hidden email]> > wrote: > Hi Clement, > > > Many thanks for your answer! > > > I found those macros and in the meantime I found a > little more info too. Maybe that can help to > understand the issue; it seems really puzzling. > > > A) The value returned for __LONG_MAX___ , after > querying the compiler, is like that: > > [root at localhost ~]# gcc -dM -E - < /dev/null |grep > __LONG_MAX__ > #define __LONG_MAX__ 9223372036854775807L > > > B) The problem shouldn't be the method > get_max_memory_for_scilab_stack(void), as I initially > thought, because I noticed it is called by > sci_stacksize.c to verify if the value given as input > is out of bounds. If you do, let's say, stacksize(1), > it will return: > > -->stacksize(1) > !--error 1504 > stacksize: Out of bounds value. Not in > [180000,268435454]. > > > --> > > > the value given as the lower bound, is explicitly > defined in the class. The value for the upper bound is > instead taken from > get_max_memory_for_scilab_stack(void), so that method > should not be the problem as in this case, it returns > an apparently good value. > > > > C) The error is generated at compile time when the > buildmacros script does stacksize(5000000). The system > returns it cannot allocate this stacksize, as it > apparently "thinks" the value 5000000 is bigger than > the max stacksize, which we have seen from before, it > should amount to 268435454. It checks if 5000000 is > lower than get_max_memory_for_scilab_stack() in > stackinfo.c (which should be 268435454), it > understands that it's larger, and prompts out the > error. I tried to "trick the system" by eliminating > this check in the class stackinfo.c. The compilation > in that case fails as it says the stack size has been > exceeded: which is another error message. > > ./bin/scilab-cli -ns -noatomsautoload -f > modules/functions/scripts/buildmacros/buildmacros.sce > stacksize(5000000); > !--error 42 > A fatal error has been detected by Scilab. > Your instance will probably quit unexpectedly soon. > If a graphic feature has been used, this might be > caused by the system graphic drivers. > Please try to update them and run this feature again. > You can report a bug on http://bugzilla.scilab.org/ > with: > * a sample code which reproduces the issue > * the result of [a, b] = getdebuginfo() > * the following information: > [localhost:10797] Signal: Segmentation fault (11) > [localhost:10797] Signal code: Invalid permissions (2) > [localhost:10797] Failing at address: 0x10000a096928 > > Call stack: > 1: ? ? (?) > 2: 0x2c381c > (/root/scilab/scilab-5.5.1/modules/.libs/libscilab-cli.so.0) > 3: 0x1f4060 > (/root/scilab/scilab-5.5.1/modules/.libs/libscilab-cli.so.0) > 4: 0x1805d0 < > > (/root/scilab/scilab-5.5.1/modules/.libs/libscilab-cli.so.0) > 5: 0x180de4 > (/root/scilab/scilab-5.5.1/modules/.libs/libscilab-cli.so.0) > 6: 0x1ae7ac > (/root/scilab/scilab-5.5.1/modules/.libs/libscilab-cli.so.0) > 7: 0x18944c > (/root/scilab/scilab-5.5.1/modules/.libs/libscilab-cli.so.0) > 8: 0x1ae8a0 > (/root/scilab/scilab-5.5.1/modules/.libs/libscilab-cli.so.0) > 9: 0x1c7d50 > (/root/scilab/scilab-5.5.1/modules/.libs/libscilab-cli.so.0) > 10: 0x1c1220 > (/root/scilab/scilab-5.5.1/modules/.libs/libscilab-cli.so.0) > 11: 0x18b4 < > > (/root/scilab/scilab-5.5.1/.libs/lt-scilab-cli-bin) > 12: 0x4454c < > > (/lib64/power8/libc.so.6) > 13: 0x44774 <__libc_start_main> > (/lib64/power8/libc.so.6) > End of stack > > > at line 27 of exec file called by : > exec('modules/functions/scripts/buildmacros/buildmacros.sce',-1) > > !--error 999 > Aborting current computation > > > > > > D) I also tried to trick the system by eliminating > the command stacksize(5000000) from buildmacros, and > the compilation completed successfully. However, when > starting scilab-cli, there is a startup script which > apparently tests the stacksize and displays the error, > although scilab keeps working. Wheneven I try however > to allocate a stacksize, it displays the error again. > > > E) I modified the class to explicitly declare a value > lower than 180'000 as the lower bound. I set 1. I > tried to do stacksize(2), and it also returned that it > cannot allocate this quantity of memory. > > > > > If you would like to have a closer look, and I would > really thank you for that, I think I can arrange for a > remote access on my VM, so that you can see directly. > > > Thanks! > > > Andrea > > > > > > > > > > > > > > > > > > > On 3 March 2015 at 10:25, Cl?ment David-2 [via > Scilab / Xcos - Mailing Lists Archives] <[hidden > email]> wrote: > Hello (added dev ML), > > Le lundi 02 mars 2015 ? 06:01 -0700, Nukles a > ?crit : > > So my guess is: MAXLONG is not declared, so > the function does not return a > > value (or it returns 0) and therefore the > error message is triggered because > > the stacksize given as input is higher than > 0 or NULL or N/A. > > > > My questions are then: > > > > - Why are all lines commented where MAXLONG > is defined? > > On my system (Fedora 21 x86_64) the MAXLONG > macro is defined at : > > stackinfo.c:35 #define MAXLONG LONG_MAX > > and LONG_MAX comes from limits.h > > > > - Where does MAXLONG originate from? Is it > something passed from the > > kernel? > > - How can I solve the problem? > > Well, as we do not have any PPC64 at Scilab I > cannot check. Is a VM > available for that platform / distro ? > > > -- > Cl?ment > > _______________________________________________ > users mailing list > [hidden email] > http://lists.scilab.org/mailman/listinfo/users > > > > ______________________________________________ > If you reply to this email, your message will > be added to the discussion below: > http://mailinglists.scilab.org/Issue-when-compiling-Scilab-Cannot-allocate-this-quantity-of-memory-tp4031761p4031774.html > To unsubscribe from Issue when compiling > Scilab: "Cannot allocate this quantity of > memory", click here. > NAML > > > > > > > > > ______________________________________________________________________ > View this message in context: Re: Issue when compiling Scilab: "Cannot > allocate this quantity of memory" > Sent from the Scilab users - Mailing Lists Archives mailing list > archive at Nabble.com. > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users From michele.fabbri at inria.fr Mon Apr 13 11:35:52 2015 From: michele.fabbri at inria.fr (mfabbri) Date: Mon, 13 Apr 2015 02:35:52 -0700 (MST) Subject: [Scilab-users] Importing FMU generated by Xcos (Scilab) In-Reply-To: <1428418583998-4032046.post@n3.nabble.com> References: <1428418583998-4032046.post@n3.nabble.com> Message-ID: <1428917752481-4032078.post@n3.nabble.com> I haven't found a solution yet, but I got some progress. I tried to re-generate the .so file inside the FMU (using the source inside the FMU). The error changed at every time that I added a new library to the linker, and so I added all the libraries of SciLab (/usr/lib/scilab/*). The error depends also on how I generate the .so file. gcc -Wl,--no-as-needed -fPIC -shared -o prova.so prova_Scilab_FMU.c /usr/lib/scilab/* -I/usr/include/scilab/ -I/home/mfabbri/.Scilab/fmu-wrapper-0.6/src/c/ You can check the output of the FMUChecker and of the command ldd -d here: http://pastebin.com/qBLiDRgd As you can see, I have a problem with JAVA library (Java is installed in my OS). I tried to linked that library but without success. while using this same commmand without the "Wl,--no-as-needed" flag: gcc -fPIC -shared -o prova.so prova_Scilab_FMU.c /usr/lib/scilab/* -I/usr/include/scilab/ -I/home/mfabbri/.Scilab/fmu-wrapper-0.6/src/c/ You can check the output of the FMUChecker and of the command ldd -d here: http://pastebin.com/MaV2pdHT I know that the "undefined symbol: pvApiCtx" is in api_common.h (/usr/include/scilab) file but I didn't find the library to link. More, in both solutions there is this string in the FMUChecker output: [INFO][FMILIB] Loading 'linux64' binary with 'standard32' platform types Is normal this info? I'm using Linux Mint 17.1 Rebecca - 64bit For now I'm stuck for both the solutions but what I want to try is to link all the libraries in the OS. Thank you to everybody that wants to help me -- View this message in context: http://mailinglists.scilab.org/Importing-FMU-generated-by-Xcos-Scilab-tp4032046p4032078.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From clement.david at scilab-enterprises.com Mon Apr 13 15:00:12 2015 From: clement.david at scilab-enterprises.com (=?ISO-8859-1?Q?Cl=E9ment?= David) Date: Mon, 13 Apr 2015 15:00:12 +0200 Subject: [Scilab-users] Importing FMU generated by Xcos (Scilab) In-Reply-To: <1428916473279-4032075.post@n3.nabble.com> References: <1428418583998-4032046.post@n3.nabble.com> <1428916473279-4032075.post@n3.nabble.com> Message-ID: <1428930012.2602.25.camel@scilab-enterprises.com> Hello Michele, As you already write, the FMU generated by the module depends on the simulation functions shipped with Scilab. Xcos simulation functions are shipped in two flavor : * libsciscicos_blocks.so depends on a full Scilab you have to link with blas / lapack, the whole Scilab binaries, the JVM libs and so on * libsciscicos_blocks-cli.so only depends on Scilab non-GUI just link with blas / lapack and the some of the scilab internal libs I suggest you to only link against libsciscicos_blocks-cli as this is will ship an FMU with minimal dependency (only minimal Scilab). A third approach (and the most independent one) is to retrieve and compile the scicos_blocks C / Fortran sources directly from Scilab source code without linking against Scilab libs. However you have to take care by yourself of any licensing issue. Regards, -- Cl?ment Le lundi 13 avril 2015 ? 02:14 -0700, mfabbri a ?crit : > I haven't found a solution yet, but I got some progress. > > I tried to re-generate the .so file inside the FMU (using the source inside > the FMU). The error changed at every time that I added a new library to the > linker, and so I added all the libraries of SciLab (/usr/lib/scilab/*). > > The error depends also on how I generate the .so file. > > gcc -Wl,--no-as-needed -fPIC -shared -o prova.so prova_Scilab_FMU.c > /usr/lib/scilab/* -I/usr/include/scilab/ > -I/home/mfabbri/.Scilab/fmu-wrapper-0.6/src/c/ > You can check the output of the FMUChecker and of the command ldd -d > here: http://pastebin.com/qBLiDRgd > As you can see, I have a problem with JAVA library (Java is installed in > my OS). I tried to linked that library but without success. > > while using this same commmand without the "Wl,--no-as-needed" flag: gcc > -fPIC -shared -o prova.so prova_Scilab_FMU.c /usr/lib/scilab/* > -I/usr/include/scilab/ -I/home/mfabbri/.Scilab/fmu-wrapper-0.6/src/c/ > You can check the output of the FMUChecker and of the command ldd -d > here: http://pastebin.com/MaV2pdHT > I know that the "undefined symbol: pvApiCtx" is in api_common.h > (/usr/include/scilab) file but I didn't find the library to link. > > More, in both solutions there is this string in the FMUChecker output: > [INFO][FMILIB] Loading 'linux64' binary with 'standard32' platform types > Is normal this info? I'm using Linux Mint 17.1 Rebecca - 64bit > > For now I'm stuck for both the solutions but what I want to try is to link > all the libraries in the OS. > > Thank you to everybody that wants to help me > > > > -- > View this message in context: http://mailinglists.scilab.org/Importing-FMU-generated-by-Xcos-Scilab-tp4032046p4032075.html > Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users From michele.fabbri at inria.fr Mon Apr 13 18:01:36 2015 From: michele.fabbri at inria.fr (mfabbri) Date: Mon, 13 Apr 2015 09:01:36 -0700 (MST) Subject: [Scilab-users] Importing FMU generated by Xcos (Scilab) In-Reply-To: <1428930012.2602.25.camel@scilab-enterprises.com> References: <1428418583998-4032046.post@n3.nabble.com> <1428930012.2602.25.camel@scilab-enterprises.com> Message-ID: <1428940896271-4032081.post@n3.nabble.com> Dear Clement, Thank you a lot for your answer. First of all I want to try what you suggested, so I want to link the /libsciscicos_blocks-cli.so/ Maybe in future I will try to link all the libraries. For now, I linked this three libraries libsciscicos_blocks-cli.so /usr/lib/libblas.so /usr/lib/liblapack.so But I got this error from the FMUChecker: /[FATAL][FMICAPI] Could not load the DLL: /usr/lib/scilab/libsciscicos_blocks-cli.so.5: undefined symbol: mopen_/ Do you know which other libraries should I link? Or there is a method to know them? Use the command /ldd -d/ didn't help me Thank you again! Fabbri Michele -- View this message in context: http://mailinglists.scilab.org/Importing-FMU-generated-by-Xcos-Scilab-tp4032046p4032081.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From Florian.Klingenstein at gigatronik.com Tue Apr 14 17:48:50 2015 From: Florian.Klingenstein at gigatronik.com (Flo) Date: Tue, 14 Apr 2015 08:48:50 -0700 (MST) Subject: [Scilab-users] Model Name from within interfacing function In-Reply-To: <1428503751.2332.25.camel@scilab-enterprises.com> References: <1428397170815-4032043.post@n3.nabble.com> <1428503751.2332.25.camel@scilab-enterprises.com> Message-ID: <1429026530444-4032089.post@n3.nabble.com> Hi Cl?ment, I have to open a file and the filename contains the name of the diagram :( Regards Flo -- View this message in context: http://mailinglists.scilab.org/Scilab-users-Model-Name-from-within-interfacing-function-tp4031992p4032089.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From stephane.mottelet at utc.fr Tue Apr 14 18:11:54 2015 From: stephane.mottelet at utc.fr (=?UTF-8?B?U3TDqXBoYW5lIE1vdHRlbGV0?=) Date: Tue, 14 Apr 2015 18:11:54 +0200 Subject: [Scilab-users] bug #13158 /parallel_run on MacOSX In-Reply-To: <5523DE18.2010400@utc.fr> References: <5523DE18.2010400@utc.fr> Message-ID: <552D3C4A.9040004@utc.fr> Le 07/04/2015 15:39, St?phane Mottelet a ?crit : > Hello, > > Is there any plan to solve bug #13158 ? > > http://bugzilla.scilab.org/show_bug.cgi?id=13158 > > There is no assignee since the bug has been signaled (in 2014)... As > far as I am concerned, I have access to a Linux machine where > parallel_run is completely functional, but my usual machine is a > MacPro and I would like to use parallel_run on MacOS also. > > S. > Hello all, I have proposed a workaround which seems to work seamlessly. OSX users can proceed to the bug page to see the "nop" unix trick: http://bugzilla.scilab.org/show_bug.cgi?id=13158 S. -- D?partement de G?nie Informatique EA 4297 Transformations Int?gr?es de la Mati?re Renouvelable Universit? de Technologie de Compi?gne - CS 60319 60203 Compi?gne cedex From quantparis at numericable.fr Tue Apr 14 18:53:01 2015 From: quantparis at numericable.fr (quantparis at numericable.fr) Date: Tue, 14 Apr 2015 18:53:01 +0200 (CEST) Subject: [Scilab-users] Pb to launch DotNetScilab C# example project Message-ID: Hello I am on windows 8.1 and visual studio 2010, I am interested in using DotNetScilab with C#, but when I want to run the project given as example it stops at // start Scilab engine Scilab_cs_wrapper.StartScilab(null, null, null); with the message Attempt to load a program with uncorrect format on the same machine, I run a win32 call_scilab program with no problem Thanks in advance for any suggestion/help pascal -------------- next part -------------- An HTML attachment was scrubbed... URL: From mike.pageone at googlemail.com Wed Apr 15 15:19:35 2015 From: mike.pageone at googlemail.com (Mike Page) Date: Wed, 15 Apr 2015 14:19:35 +0100 Subject: [Scilab-users] Pb to launch DotNetScilab C# example project In-Reply-To: References: Message-ID: Hi Pascal, Not sure about DotNet, but some time ago I reported a problem with this API for C (not c#) because the third parameter is specified as int*, but is in fact int. If your compiler is fussy, this could be the problem. Try (NULL, NULL, 0). I found that fixed it for me. Hope that helps, Mike. On 14 April 2015 at 17:53, wrote: > Hello > > I am on windows 8.1 and visual studio 2010, I am interested in using > DotNetScilab with C#, but when I want to run the project given as example > > it stops at > // start Scilab engine > Scilab_cs_wrapper.StartScilab(null, null, null); > > with the message > Attempt to load a program with uncorrect format > > on the same machine, I run a win32 call_scilab program with no problem > > Thanks in advance for any suggestion/help > pascal > > > > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From quantparis at numericable.fr Thu Apr 16 09:43:47 2015 From: quantparis at numericable.fr (quantparis at numericable.fr) Date: Thu, 16 Apr 2015 09:43:47 +0200 (CEST) Subject: [Scilab-users] Pb to launch DotNetScilab C# example project Message-ID: Hi Mike, thank you very much, it helps that it confirms my own results: you're right on my program in c++ with call_scilab effectively I had to use (null,null,0) for initialisation, but when I tried that in the c# it created an error in compiling I have a temporary solution, making myself the link between c# and the c++ win32 lib, it works but I would like to use the "official" implementation. I am going to investigate the c# code deeper, I will let you know the result by the way have you notice the following behavior? windows: when we launch the first call_scilab "request" it's very slow to react, but in the second "request" it's 10 times faster ubuntu: it's immediatly very fast, faster than the second request in windows Have nice day Pascal ---- Message d'origine ---- De : "Mike Page" ? : "International users mailing list for Scilab." Objet : Re: [Scilab-users] Pb to launch DotNetScilab C# example project Date : 15/04/2015 15:19:35 CEST Hi Pascal, Not sure about DotNet, but some time ago I reported a problem with this API for C (not c#) because the third parameter is specified as int*, but is in fact int.? If your compiler is fussy, this could be the problem.? Try (NULL, NULL, 0).? I found that fixed it for me. Hope that helps, Mike. On 14 April 2015 at 17:53, wrote: Hello I am on windows 8.1 and visual studio 2010, I am interested in using DotNetScilab with C#, but when I want to run the project given as example it stops at // start Scilab engine Scilab_cs_wrapper.StartScilab(null, null, null); with the message Attempt to load a program with uncorrect format on the same machine, I run a win32 call_scilab program with no problem Thanks in advance for any suggestion/help pascal _______________________________________________ users mailing list users at lists.scilab.org http://lists.scilab.org/mailman/listinfo/users _______________________________________________ users mailing list users at lists.scilab.org http://lists.scilab.org/mailman/listinfo/users -------------- next part -------------- An HTML attachment was scrubbed... URL: From hugo.gutierrez at ieee.org Fri Apr 17 05:54:30 2015 From: hugo.gutierrez at ieee.org (Hugo Gutierrez) Date: Thu, 16 Apr 2015 22:54:30 -0500 Subject: [Scilab-users] Saving Struct issue in Scilab Message-ID: Dear all, Good evening. This is Hugo Guti?rrez from Colombia and I would like to receive your kind helping about this issue... In Scilab 5.5.1, I cannot save data when its type is a: *struct (Mlist). *Is there any method to save this kind of data in a PC local disk? This need is because I will use this struct in a future exercise. Thank you in advance. *PD. You can see into the attachment some print screens about this issue in my Scilab 5.5.1* Yours faithfully, *Hugo Guti?rrez V.* E-mail: hugo.gutierrez at ieee.org Skype user: hugo_ieee -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: saving struct issue in Scilab.pdf Type: application/pdf Size: 645290 bytes Desc: not available URL: From fujimoto2005 at gmail.com Sun Apr 19 17:57:26 2015 From: fujimoto2005 at gmail.com (fujimoto2005) Date: Sun, 19 Apr 2015 08:57:26 -0700 (MST) Subject: [Scilab-users] qustion on functional argument Message-ID: <1429459046216-4032100.post@n3.nabble.com> I define a function with a scalar argument and use it with a matrix argument. I want to get the matrix whose entry is the functional value for each entry of a matrix argument. When the function contains no "if then" close, I get the desired result as the following function "f". However when the function contains "if then "close, the function returns the inverse matrix as the following function "g". It is because "x>1" is false as a matrix and ?else part? is executed as inverse matrix calculation. I want to get the code that "if then" is applied for each entry of matrix. Please teach how to get such a code. **code**** function a=f(x) a=x+1 endfunction X=[1,2;3,4] f(X) function b=g(x) if x>1 then b=x+1 else b=1/x end endfunction X=[1,2;0.1,-0.1] g(X)//returns inverse(X) -- View this message in context: http://mailinglists.scilab.org/qustion-on-functional-argument-tp4032100.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From frederic.jourdin at shom.fr Mon Apr 20 12:09:16 2015 From: frederic.jourdin at shom.fr (Frederic Jourdin) Date: Mon, 20 Apr 2015 12:09:16 +0200 Subject: [Scilab-users] qustion on functional argument In-Reply-To: <1429459046216-4032100.post@n3.nabble.com> References: <1429459046216-4032100.post@n3.nabble.com> Message-ID: <5534D04C.4060901@shom.fr> I suggest something like this: function b=g(x) b = 1/x k = find( x>1) b( k)= x( k) + 1 endfunction Fred Le 19/04/2015 17:57, fujimoto2005 a ?crit : > function b=g(x) if x>1 then > b=x+1 > else > b=1/x > end From sgougeon at free.fr Mon Apr 20 12:16:42 2015 From: sgougeon at free.fr (Samuel Gougeon) Date: Mon, 20 Apr 2015 12:16:42 +0200 Subject: [Scilab-users] qustion on functional argument In-Reply-To: <1429459046216-4032100.post@n3.nabble.com> References: <1429459046216-4032100.post@n3.nabble.com> Message-ID: <5534D20A.3090400@free.fr> Hello fugimoto2005, You may use find(): b = x k = find(x>1) b(k) = x(k)+1 Just do the same to process the second case. Regards samuelgougeon2015 Le 19/04/2015 17:57, fujimoto2005 a ?crit : > I define a function with a scalar argument and use it with a matrix argument. > I want to get the matrix whose entry is the functional value for each entry > of a matrix argument. > When the function contains no "if then" close, I get the desired result as > the following function "f". > However when the function contains "if then "close, the function returns the > inverse matrix as the following function "g". > It is because "x>1" is false as a matrix and ?else part? is executed as > inverse matrix calculation. > I want to get the code that "if then" is applied for each entry of matrix. > Please teach how to get such a code. > > **code**** > function a=f(x) > a=x+1 > endfunction > X=[1,2;3,4] > f(X) > > function b=g(x) if x>1 then > b=x+1 > else > b=1/x > end > endfunction > X=[1,2;0.1,-0.1] > g(X)//returns inverse(X) > > > > > -- > View this message in context: http://mailinglists.scilab.org/qustion-on-functional-argument-tp4032100.html > Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users From sdr at durietz.se Mon Apr 20 12:19:31 2015 From: sdr at durietz.se (Stefan Du Rietz) Date: Mon, 20 Apr 2015 12:19:31 +0200 Subject: [Scilab-users] qustion on functional argument In-Reply-To: <5534D04C.4060901@shom.fr> References: <1429459046216-4032100.post@n3.nabble.com> <5534D04C.4060901@shom.fr> Message-ID: <5534D2B3.7070005@durietz.se> You don't need find(). k = x>1; Stefan On 2015-04-20 12:09, Frederic Jourdin wrote: > I suggest something like this: > > function b=g(x) > b = 1/x > k = find( x>1) > b( k)= x( k) + 1 > endfunction > > Fred > > Le 19/04/2015 17:57, fujimoto2005 a ?crit : >> function b=g(x) if x>1 then >> b=x+1 >> else >> b=1/x >> end > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users From sgougeon at free.fr Mon Apr 20 12:23:47 2015 From: sgougeon at free.fr (Samuel Gougeon) Date: Mon, 20 Apr 2015 12:23:47 +0200 Subject: [Scilab-users] qustion on functional argument In-Reply-To: <5534D04C.4060901@shom.fr> References: <1429459046216-4032100.post@n3.nabble.com> <5534D04C.4060901@shom.fr> Message-ID: <5534D3B3.7060400@free.fr> Le 20/04/2015 12:09, Frederic Jourdin a ?crit : > I suggest something like this: > > function b=g(x) > b = 1/x Almost. Just 2 chars missing. Let's fujimoto2005 find() which ones ;) From sgougeon at free.fr Mon Apr 20 12:40:02 2015 From: sgougeon at free.fr (Samuel Gougeon) Date: Mon, 20 Apr 2015 12:40:02 +0200 Subject: [Scilab-users] Saving Struct issue in Scilab In-Reply-To: References: Message-ID: <5534D782.7030400@free.fr> Hello Hugo, you may use save("model3in2.sod", "model3in2") and load("model3in2.sod", "model3in2") to retrieve the data from its saved archive. http://help.scilab.org/docs/5.5.2/en_US/save.html Samuel From roger.cormier at ncf.ca Tue Apr 21 01:09:22 2015 From: roger.cormier at ncf.ca (roger.cormier at ncf.ca) Date: Mon, 20 Apr 2015 19:09:22 -0400 Subject: [Scilab-users] qustion on functional argument In-Reply-To: <1429459046216-4032100.post@n3.nabble.com> References: <1429459046216-4032100.post@n3.nabble.com> Message-ID: <030A1980-E174-454A-AE9E-2FFE5508E307@ncf.ca> Let me understand correctly. You have two conditions, namely when x>1, and when x<=1. For x1, you want an element-by-element 1/x, not a matrix inversion of x. For element-by-element division, I would use: b=1 ./x Note the space between "1" and the period "." because "1" is a number not a variable. Look in the help section under "division". It will explain the "/" and how to manipulate it to get what you want to achieve. Regards, ___________________________ Dr. Roger Cormier, P.Eng. Home Tel. & Fax: 613-823-7299 Le dim. 19 avr. 2015 ? 11:57, fujimoto2005 a ?crit : > I define a function with a scalar argument and use it with a matrix argument. > I want to get the matrix whose entry is the functional value for each entry > of a matrix argument. > When the function contains no "if then" close, I get the desired result as > the following function "f". > However when the function contains "if then "close, the function returns the > inverse matrix as the following function "g". > It is because "x>1" is false as a matrix and ?else part? is executed as > inverse matrix calculation. > I want to get the code that "if then" is applied for each entry of matrix. > Please teach how to get such a code. > > **code**** > function a=f(x) > a=x+1 > endfunction > X=[1,2;3,4] > f(X) > > function b=g(x) if x>1 then > b=x+1 > else > b=1/x > end > endfunction > X=[1,2;0.1,-0.1] > g(X)//returns inverse(X) > > > > > -- > View this message in context: http://mailinglists.scilab.org/qustion-on-functional-argument-tp4032100.html > Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users From jrafaelbguerra at hotmail.com Tue Apr 21 01:10:08 2015 From: jrafaelbguerra at hotmail.com (Rafael Guera) Date: Tue, 21 Apr 2015 00:10:08 +0100 Subject: [Scilab-users] Saving Struct issue in Scilab In-Reply-To: <5534D782.7030400@free.fr> References: <5534D782.7030400@free.fr> Message-ID: Hi, I have never managed to save all the variables in Scilab sessions containing several structures, lists, etc, with the save command. In Win7 Scilab 5.5.2 the error messages are as per below: --> sessionfile = " D:\Temp\test.sod" --> save(sessionfile) !--error 21 Invalid index. at line 29 of function inspectList called by : at line 1007 of function %_save called by : save(file) Has anyone experienced similar problems? Thanks and regards, Rafael -----Original Message----- From: users [mailto:users-bounces at lists.scilab.org] On Behalf Of Samuel Gougeon Sent: Monday, April 20, 2015 11:40 AM To: International users mailing list for Scilab. Subject: Re: [Scilab-users] Saving Struct issue in Scilab Hello Hugo, you may use save("model3in2.sod", "model3in2") and load("model3in2.sod", "model3in2") to retrieve the data from its saved archive. http://help.scilab.org/docs/5.5.2/en_US/save.html Samuel _______________________________________________ users mailing list users at lists.scilab.org http://lists.scilab.org/mailman/listinfo/users -------------- next part -------------- An HTML attachment was scrubbed... URL: From tim at wescottdesign.com Tue Apr 21 18:05:42 2015 From: tim at wescottdesign.com (Tim Wescott) Date: Tue, 21 Apr 2015 09:05:42 -0700 Subject: [Scilab-users] qustion on functional argument In-Reply-To: <030A1980-E174-454A-AE9E-2FFE5508E307@ncf.ca> References: <1429459046216-4032100.post@n3.nabble.com> <030A1980-E174-454A-AE9E-2FFE5508E307@ncf.ca> Message-ID: <1429632342.2192.148.camel@servo> This is mostly just stylistic nit-picking, but the best practice to use for the least confusion across many languages is to put spaces between operators and operands -- I feel that it makes the code more readable, and in most languages that I've used it's perfectly acceptable. In a few languages it prevents subtle errors. So, b = 1 ./ x On Mon, 2015-04-20 at 19:09 -0400, roger.cormier at ncf.ca wrote: > Let me understand correctly. You have two conditions, namely when x>1, and when x<=1. For x1, you want an element-by-element 1/x, not a matrix inversion of x. > > For element-by-element division, I would use: > > b=1 ./x > > Note the space between "1" and the period "." because "1" is a number not a variable. Look in the help section under "division". It will explain the "/" and how to manipulate it to get what you want to achieve. > > Regards, > > > > > ___________________________ > Dr. Roger Cormier, P.Eng. > Home Tel. & Fax: 613-823-7299 > > > Le dim. 19 avr. 2015 ? 11:57, fujimoto2005 a ?crit : > > > I define a function with a scalar argument and use it with a matrix argument. > > I want to get the matrix whose entry is the functional value for each entry > > of a matrix argument. > > When the function contains no "if then" close, I get the desired result as > > the following function "f". > > However when the function contains "if then "close, the function returns the > > inverse matrix as the following function "g". > > It is because "x>1" is false as a matrix and ?else part? is executed as > > inverse matrix calculation. > > I want to get the code that "if then" is applied for each entry of matrix. > > Please teach how to get such a code. > > > > **code**** > > function a=f(x) > > a=x+1 > > endfunction > > X=[1,2;3,4] > > f(X) > > > > function b=g(x) if x>1 then > > b=x+1 > > else > > b=1/x > > end > > endfunction > > X=[1,2;0.1,-0.1] > > g(X)//returns inverse(X) > > > > > > > > > > -- > > View this message in context: http://mailinglists.scilab.org/qustion-on-functional-argument-tp4032100.html > > Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. > > _______________________________________________ > > users mailing list > > users at lists.scilab.org > > http://lists.scilab.org/mailman/listinfo/users > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > -- Tim Wescott www.wescottdesign.com Control & Communications systems, circuit & software design. Phone: 503.631.7815 Cell: 503.349.8432 From W.Schulz at ove.at Wed Apr 22 08:07:57 2015 From: W.Schulz at ove.at (SCHULZ Wolfgang) Date: Wed, 22 Apr 2015 06:07:57 +0000 Subject: [Scilab-users] Display problem Message-ID: <07A8AF089844A549B0F0CCC727AF31AA5782F156@OVEKBG.ove.at> Hello, I would like to display 10e6 points but it seems that Scilab (5.2.2 x64 on Win7) works only till 8e6 points. I tried increasing the Java Heap memory (and restarted Scilab afterwards) but there was no effect. Here is a test program what works till 8e6 but doesn't work for 9e6. stacksize('max') Maximum=8e6 dt=1/Maximum; t=0:dt:1; y=sin(2*%pi*50*t); plot(t,y); Any idea what could be wrong? Thanks for your help. Wolfgang From antoine.monmayrant at laas.fr Wed Apr 22 08:28:38 2015 From: antoine.monmayrant at laas.fr (Antoine Monmayrant) Date: Wed, 22 Apr 2015 08:28:38 +0200 Subject: [Scilab-users] Display problem In-Reply-To: <07A8AF089844A549B0F0CCC727AF31AA5782F156@OVEKBG.ove.at> References: <07A8AF089844A549B0F0CCC727AF31AA5782F156@OVEKBG.ove.at> Message-ID: <55373F96.3050001@laas.fr> On 04/22/2015 08:07 AM, SCHULZ Wolfgang wrote: > stacksize('max') > Maximum=8e6 > dt=1/Maximum; > t=0:dt:1; > y=sin(2*%pi*50*t); > plot(t,y); Hi, I just tried it under Linux (ubuntu 14.04 64bits) and got no problem. I have a 1024MB Java heap. Cheers, Antoine From W.Schulz at ove.at Wed Apr 22 08:50:30 2015 From: W.Schulz at ove.at (SCHULZ Wolfgang) Date: Wed, 22 Apr 2015 06:50:30 +0000 Subject: [Scilab-users] Display problem In-Reply-To: <55373F96.3050001@laas.fr> References: <07A8AF089844A549B0F0CCC727AF31AA5782F156@OVEKBG.ove.at> <55373F96.3050001@laas.fr> Message-ID: <07A8AF089844A549B0F0CCC727AF31AA5782F1CC@OVEKBG.ove.at> Thanks Antoine, could someone test it under Windows? Maybe a Windows specific bug? Should I open a bug report? Wolfgang > -----Urspr?ngliche Nachricht----- > Von: users [mailto:users-bounces at lists.scilab.org] Im Auftrag von Antoine > Monmayrant > Gesendet: Mittwoch, 22. April 2015 08:29 > An: International users mailing list for Scilab. > Betreff: Re: [Scilab-users] Display problem > > On 04/22/2015 08:07 AM, SCHULZ Wolfgang wrote: > > stacksize('max') > > Maximum=8e6 > > dt=1/Maximum; > > t=0:dt:1; > > y=sin(2*%pi*50*t); > > plot(t,y); > Hi, > > I just tried it under Linux (ubuntu 14.04 64bits) and got no problem. > I have a 1024MB Java heap. > > Cheers, > > Antoine > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users From jrafaelbguerra at hotmail.com Wed Apr 22 17:08:50 2015 From: jrafaelbguerra at hotmail.com (Rafael Guerra) Date: Wed, 22 Apr 2015 17:08:50 +0200 Subject: [Scilab-users] Display problem In-Reply-To: <07A8AF089844A549B0F0CCC727AF31AA5782F1CC@OVEKBG.ove.at> References: <07A8AF089844A549B0F0CCC727AF31AA5782F156@OVEKBG.ove.at>, <55373F96.3050001@laas.fr>, <07A8AF089844A549B0F0CCC727AF31AA5782F1CC@OVEKBG.ove.at> Message-ID: Hi Wolfgang, Using Win7 64bit laptop and ran your code Ok for max=9e6 and plotted series fine but not for 10e6 (Scilab crashed and exited). Regards, Rafael > From: W.Schulz at ove.at > To: antoine.monmayrant at laas.fr; users at lists.scilab.org > Date: Wed, 22 Apr 2015 06:50:30 +0000 > Subject: Re: [Scilab-users] Display problem > > Thanks Antoine, > could someone test it under Windows? Maybe a Windows specific bug? Should I open a bug report? > Wolfgang > > > -----Urspr?ngliche Nachricht----- > > Von: users [mailto:users-bounces at lists.scilab.org] Im Auftrag von Antoine > > Monmayrant > > Gesendet: Mittwoch, 22. April 2015 08:29 > > An: International users mailing list for Scilab. > > Betreff: Re: [Scilab-users] Display problem > > > > On 04/22/2015 08:07 AM, SCHULZ Wolfgang wrote: > > > stacksize('max') > > > Maximum=8e6 > > > dt=1/Maximum; > > > t=0:dt:1; > > > y=sin(2*%pi*50*t); > > > plot(t,y); > > Hi, > > > > I just tried it under Linux (ubuntu 14.04 64bits) and got no problem. > > I have a 1024MB Java heap. > > > > Cheers, > > > > Antoine > > _______________________________________________ > > users mailing list > > users at lists.scilab.org > > http://lists.scilab.org/mailman/listinfo/users > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users -------------- next part -------------- An HTML attachment was scrubbed... URL: From tim at wescottdesign.com Wed Apr 22 18:04:01 2015 From: tim at wescottdesign.com (Tim Wescott) Date: Wed, 22 Apr 2015 09:04:01 -0700 Subject: [Scilab-users] Display problem In-Reply-To: <07A8AF089844A549B0F0CCC727AF31AA5782F156@OVEKBG.ove.at> References: <07A8AF089844A549B0F0CCC727AF31AA5782F156@OVEKBG.ove.at> Message-ID: <1429718641.2192.197.camel@servo> On Wed, 2015-04-22 at 06:07 +0000, SCHULZ Wolfgang wrote: > Hello, > I would like to display 10e6 points but it seems that Scilab (5.2.2 x64 on Win7) works only till 8e6 points. > > I tried increasing the Java Heap memory (and restarted Scilab afterwards) but there was no effect. > > Here is a test program what works till 8e6 but doesn't work for 9e6. > > stacksize('max') > Maximum=8e6 > dt=1/Maximum; > t=0:dt:1; > y=sin(2*%pi*50*t); > plot(t,y); > > Any idea what could be wrong? While you're waiting to get the bug fixed, have you pondered the impossibility of displaying X values in Y spaces when X >> Y? Unless you've got something astonishing, your display has, at most, only a few thousand pixels across, so there's no way you can display 10e6 points anyway. The same holds for any normal page-sized sheet and printer (although I suppose you could manage this with a 300mm silicon blank and some state-of-the-art lithography). If your function is continuous, then doing plot(t(1:100:$), y(1:100:$)) will give you a pretty close approximation, and still use way more points than your display can handle. If you're looking for glitches then you'll have to do something fancier (and more challenging as far as memory usage). -- Tim Wescott www.wescottdesign.com Control & Communications systems, circuit & software design. Phone: 503.631.7815 Cell: 503.349.8432 From jrafaelbguerra at hotmail.com Wed Apr 22 19:00:58 2015 From: jrafaelbguerra at hotmail.com (Rafael Guerra) Date: Wed, 22 Apr 2015 19:00:58 +0200 Subject: [Scilab-users] Display problem In-Reply-To: <1429718641.2192.197.camel@servo> References: <07A8AF089844A549B0F0CCC727AF31AA5782F156@OVEKBG.ove.at>, <1429718641.2192.197.camel@servo> Message-ID: Hi Tim, There are situations where one may want to arbitrarily zoom a plot interactively. This leads me to a past email thread "Scaled plot displays in Scilab?" where there was a possible Java heap limitation. This has important industrial applications. I copy below acode sample from that thread, fyi, which explodes Scilab for a plot scale= 1 / 20: // Code adapted from Serge Steer's script: clf; plot(linspace(0,100,10),linspace(0,150,10)) fig= gcf(); ax= gca(); ax.tight_limits= "on"; //Dimensions of the axis in user coordinates ax_xu= ax.data_bounds(2,1)-ax.data_bounds(1,1); ax_yu= ax.data_bounds(2,2)-ax.data_bounds(1,2); //pixel size in mm to be determined according to screen size and resolution (dpi) dpi= 90; // dots per inch (depending on screen resolution) px= 2.54e-2/dpi;//conversion from pixel to meter //py= 2.54e-2/dpi;//conversion from pixel to meter printf("\nSetting scale=1/500 is fine but scale=1/20 crashes Scilab 5.4.1 in Win 7\n"); scale= input("ENTER scale = "); // scale= 1/200; // OK // scale= 1/20; // Scilab aborts (Win 7) as window is larger than screen! //Dimension of the axis in pixels ax_xp= ax_xu/px*scale; //ax_yp= ax_yu/py; //Dimension of the current portion of the canvas in pixels ax_Wp= ax_xp/(1-sum(ax.margins(1:2))); //ax_Hp= ax_yp/(1-sum(ax.margins(3:4))); //Canvas dimensions in pixels fig_Wp= ax_Wp/ax.axes_bounds(3); //fig_Hp=ax_Hp/ax.axes_bounds(4); fig_Hp=ax_yu; // Samuel Gougeon's tip: fig.auto_resize = "off"; //Set fig.axes_size property to have fig.axes_size=[fig_Wp,fig_Hp]; Regards, Rafael > From: tim at wescottdesign.com > To: users at lists.scilab.org > Date: Wed, 22 Apr 2015 09:04:01 -0700 > Subject: Re: [Scilab-users] Display problem > > On Wed, 2015-04-22 at 06:07 +0000, SCHULZ Wolfgang wrote: > > Hello, > > I would like to display 10e6 points but it seems that Scilab (5.2.2 x64 on Win7) works only till 8e6 points. > > > > I tried increasing the Java Heap memory (and restarted Scilab afterwards) but there was no effect. > > > > Here is a test program what works till 8e6 but doesn't work for 9e6. > > > > stacksize('max') > > Maximum=8e6 > > dt=1/Maximum; > > t=0:dt:1; > > y=sin(2*%pi*50*t); > > plot(t,y); > > > > Any idea what could be wrong? > > While you're waiting to get the bug fixed, have you pondered the > impossibility of displaying X values in Y spaces when X >> Y? Unless > you've got something astonishing, your display has, at most, only a few > thousand pixels across, so there's no way you can display 10e6 points > anyway. The same holds for any normal page-sized sheet and printer > (although I suppose you could manage this with a 300mm silicon blank and > some state-of-the-art lithography). > > If your function is continuous, then doing > > plot(t(1:100:$), y(1:100:$)) > > will give you a pretty close approximation, and still use way more > points than your display can handle. If you're looking for glitches > then you'll have to do something fancier (and more challenging as far as > memory usage). > > -- > > Tim Wescott > www.wescottdesign.com > Control & Communications systems, circuit & software design. > Phone: 503.631.7815 > Cell: 503.349.8432 > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users -------------- next part -------------- An HTML attachment was scrubbed... URL: From W.Schulz at ove.at Thu Apr 23 08:46:42 2015 From: W.Schulz at ove.at (SCHULZ Wolfgang) Date: Thu, 23 Apr 2015 06:46:42 +0000 Subject: [Scilab-users] Display problem In-Reply-To: References: <07A8AF089844A549B0F0CCC727AF31AA5782F156@OVEKBG.ove.at>, <1429718641.2192.197.camel@servo> Message-ID: <07A8AF089844A549B0F0CCC727AF31AA5783318A@OVEKBG.ove.at> Thanks to all for the help. I have reopened a bug (4176). Wolfgang Von: users [mailto:users-bounces at lists.scilab.org] Im Auftrag von Rafael Guerra Gesendet: Mittwoch, 22. April 2015 19:01 An: tim at wescottdesign.com; International users mailing list for Scilab. Betreff: Re: [Scilab-users] Display problem Hi Tim, There are situations where one may want to arbitrarily zoom a plot interactively. This leads me to a past email thread "Scaled plot displays in Scilab?" where there was a possible Java heap limitation. This has important industrial applications. I copy below acode sample from that thread, fyi, which explodes Scilab for a plot scale= 1 / 20: // Code adapted from Serge Steer's script: clf; plot(linspace(0,100,10),linspace(0,150,10)) fig= gcf(); ax= gca(); ax.tight_limits= "on"; //Dimensions of the axis in user coordinates ax_xu= ax.data_bounds(2,1)-ax.data_bounds(1,1); ax_yu= ax.data_bounds(2,2)-ax.data_bounds(1,2); //pixel size in mm to be determined according to screen size and resolution (dpi) dpi= 90; // dots per inch (depending on screen resolution) px= 2.54e-2/dpi;//conversion from pixel to meter //py= 2.54e-2/dpi;//conversion from pixel to meter printf("\nSetting scale=1/500 is fine but scale=1/20 crashes Scilab 5.4.1 in Win 7\n"); scale= input("ENTER scale = "); // scale= 1/200; // OK // scale= 1/20; // Scilab aborts (Win 7) as window is larger than screen! //Dimension of the axis in pixels ax_xp= ax_xu/px*scale; //ax_yp= ax_yu/py; //Dimension of the current portion of the canvas in pixels ax_Wp= ax_xp/(1-sum(ax.margins(1:2))); //ax_Hp= ax_yp/(1-sum(ax.margins(3:4))); //Canvas dimensions in pixels fig_Wp= ax_Wp/ax.axes_bounds(3); //fig_Hp=ax_Hp/ax.axes_bounds(4); fig_Hp=ax_yu; // Samuel Gougeon's tip: fig.auto_resize = "off"; //Set fig.axes_size property to have fig.axes_size=[fig_Wp,fig_Hp]; Regards, Rafael > From: tim at wescottdesign.com > To: users at lists.scilab.org > Date: Wed, 22 Apr 2015 09:04:01 -0700 > Subject: Re: [Scilab-users] Display problem > > On Wed, 2015-04-22 at 06:07 +0000, SCHULZ Wolfgang wrote: > > Hello, > > I would like to display 10e6 points but it seems that Scilab (5.2.2 x64 on Win7) works only till 8e6 points. > > > > I tried increasing the Java Heap memory (and restarted Scilab afterwards) but there was no effect. > > > > Here is a test program what works till 8e6 but doesn't work for 9e6. > > > > stacksize('max') > > Maximum=8e6 > > dt=1/Maximum; > > t=0:dt:1; > > y=sin(2*%pi*50*t); > > plot(t,y); > > > > Any idea what could be wrong? > > While you're waiting to get the bug fixed, have you pondered the > impossibility of displaying X values in Y spaces when X >> Y? Unless > you've got something astonishing, your display has, at most, only a few > thousand pixels across, so there's no way you can display 10e6 points > anyway. The same holds for any normal page-sized sheet and printer > (although I suppose you could manage this with a 300mm silicon blank and > some state-of-the-art lithography). > > If your function is continuous, then doing > > plot(t(1:100:$), y(1:100:$)) > > will give you a pretty close approximation, and still use way more > points than your display can handle. If you're looking for glitches > then you'll have to do something fancier (and more challenging as far as > memory usage). > > -- > > Tim Wescott > www.wescottdesign.com > Control & Communications systems, circuit & software design. > Phone: 503.631.7815 > Cell: 503.349.8432 > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users -------------- next part -------------- An HTML attachment was scrubbed... URL: From stephane.mottelet at utc.fr Thu Apr 23 23:51:32 2015 From: stephane.mottelet at utc.fr (=?ISO-8859-1?Q?St=E9phane_Mottelet?=) Date: Thu, 23 Apr 2015 23:51:32 +0200 Subject: [Scilab-users] Ways to speed up simple things in Scilab ? Message-ID: <55396964.7030103@utc.fr> Hello, I am currently working on a project where Scilab code is automatically generated, and after many code optimization, the remaining bottleneck is the time that Scilab spends to execute simple code like this (full script (where the vector has 839 lines) with timings is attached) : M1_v=[v(17) v(104) v(149) -(v(18)+v(63)+v(103)) -(v(18)+v(63)+v(103)) v(17) ... v(104) v(149) ] This kind of large vectors are the used to build a sparse matrix each time the vector v changes, but with a constant sparsity pattern. Actually, the time spent by Scilab in the statement M1=sparse(M1_ij,M1_v,[n1,n2]) is negligible compared to the time spent to build f M1_v... I have also noticed that if you need to define such a matrix with more that one column, the time elapsed is not linear with respect to the number of columns: typically 4 times slower for 2 columns. In fact the statement v=[1 1 ... 1000 1000] is even two times slower than v1=[1 ... 1000]; v2=[1 .... 1000]; v=[v1 v2]; So my question to users who have the experience of dynamic link of user code : do you think that using dynamic link of compiled generated C code could improve the timings ? In advance, thanks for your help ! S. -------------- next part -------------- function test() timer(); v=rand(172,1); for i=1:1000 M1_v=[v(17) v(104) v(149) -(v(18)+v(63)+v(103)) v(17) v(104) v(149) -(v(18)+v(63)+v(103)) v(17) v(104) v(149) -(v(18)+v(63)+v(103)) v(17) v(104) v(149) -(v(18)+v(63)+v(103)) v(17) v(104) v(149) -(v(18)+v(63)+v(103)) v(38) v(125) v(127) -(v(39)+v(41)+v(124)) v(38) v(125) v(127) -(v(39)+v(41)+v(124)) v(38) v(125) v(127) -(v(39)+v(41)+v(124)) v(38) v(125) v(127) -(v(39)+v(41)+v(124)) v(38) v(125) v(127) -(v(39)+v(41)+v(124)) v(15) v(102) v(147) -(v(16)+v(61)+v(85)+v(101)) v(15) v(102) v(147) -(v(16)+v(61)+v(85)+v(101)) v(36) -(v(37)+v(122)) v(36) -(v(37)+v(122)) v(36) -(v(37)+v(122)) v(67) -(v(68)+v(153)) v(67) -(v(68)+v(153)) v(67) -(v(68)+v(153)) v(67) -(v(68)+v(153)) v(67) -(v(68)+v(153)) v(67) -(v(68)+v(153)) v(82) -(v(83)+v(168)) v(82) -(v(83)+v(168)) v(82) -(v(83)+v(168)) v(82) -(v(83)+v(168)) v(70) -(v(71)+v(156)) v(70) -(v(71)+v(156)) v(70) -(v(71)+v(156)) v(70) -(v(71)+v(156)) v(63) v(150) -(v(64)+v(149)) v(63) v(150) -(v(64)+v(149)) v(63) v(150) -(v(64)+v(149)) v(63) v(150) -(v(64)+v(149)) v(63) v(150) -(v(64)+v(149)) v(61) v(127) -(v(41)+v(62)+v(147)) v(61) v(127) -(v(41)+v(62)+v(147)) v(43) v(135) -(v(49)+v(129)) v(43) v(135) -(v(49)+v(129)) v(43) v(135) -(v(49)+v(129)) v(43) v(135) -(v(49)+v(129)) v(69) v(156) v(160) v(161) v(164) v(166) v(168) -(v(70)+v(74)+v(75)+v(77)+v(78)+v(80)+v(82)+v(155)) v(69) v(156) v(160) v(161) v(164) v(166) v(168) -(v(70)+v(74)+v(75)+v(77)+v(78)+v(80)+v(82)+v(155)) v(69) v(156) v(160) v(161) v(164) v(166) v(168) -(v(70)+v(74)+v(75)+v(77)+v(78)+v(80)+v(82)+v(155)) v(69) v(156) v(160) v(161) v(164) v(166) v(168) -(v(70)+v(74)+v(75)+v(77)+v(78)+v(80)+v(82)+v(155)) v(48) v(135) v(136) -(v(49)+v(50)+v(57)+v(134)) v(48) v(135) v(136) -(v(49)+v(50)+v(57)+v(134)) v(48) v(135) v(136) -(v(49)+v(50)+v(57)+v(134)) v(26) v(114) -(v(27)+v(28)+v(112)) v(26) v(114) -(v(27)+v(28)+v(112)) v(26) v(114) -(v(27)+v(28)+v(112)) v(35) v(122) v(124) v(124) v(158) v(160) v(161) -(v(36)+v(38)+v(38)+v(72)+v(74)+v(75)+v(121)) v(35) v(122) v(124) v(124) v(158) v(160) v(161) -(v(36)+v(38)+v(38)+v(72)+v(74)+v(75)+v(121)) v(35) v(122) v(124) v(124) v(158) v(160) v(161) -(v(36)+v(38)+v(38)+v(72)+v(74)+v(75)+v(121)) v(44) v(131) v(144) -(v(45)+v(47)+v(58)+v(130)) v(44) v(131) v(144) -(v(45)+v(47)+v(58)+v(130)) v(44) v(131) v(144) -(v(45)+v(47)+v(58)+v(130)) v(44) v(131) v(144) -(v(45)+v(47)+v(58)+v(130)) v(44) v(131) v(144) -(v(45)+v(47)+v(58)+v(130)) v(10) v(15) v(17) v(18) v(23) v(38) v(41) v(51) v(52) v(54) v(55) v(60) v(72) v(74) v(75) v(108) v(153) -(v(22)+v(67)+v(84)+v(96)+v(101)+v(103)+v(104)+v(109)+v(124)+v(127)+v(137)+v(138)+v(140)+v(141)+v(146)+v(158)+v(160)+v(161)) v(50) v(137) v(138) v(140) v(141) v(144) -(v(51)+v(52)+v(54)+v(55)+v(58)+v(136)) v(50) v(137) v(138) v(140) v(141) v(144) -(v(51)+v(52)+v(54)+v(55)+v(58)+v(136)) v(50) v(137) v(138) v(140) v(141) v(144) -(v(51)+v(52)+v(54)+v(55)+v(58)+v(136)) v(50) v(137) v(138) v(140) v(141) v(144) -(v(51)+v(52)+v(54)+v(55)+v(58)+v(136)) v(50) v(137) v(138) v(140) v(141) v(144) -(v(51)+v(52)+v(54)+v(55)+v(58)+v(136)) v(50) v(137) v(138) v(140) v(141) v(144) -(v(51)+v(52)+v(54)+v(55)+v(58)+v(136)) v(50) v(137) v(138) v(140) v(141) v(144) -(v(51)+v(52)+v(54)+v(55)+v(58)+v(136)) v(50) v(137) v(138) v(140) v(141) v(144) -(v(51)+v(52)+v(54)+v(55)+v(58)+v(136)) v(50) v(137) v(138) v(140) v(141) v(144) -(v(51)+v(52)+v(54)+v(55)+v(58)+v(136)) v(50) v(137) v(138) v(140) v(141) v(144) -(v(51)+v(52)+v(54)+v(55)+v(58)+v(136)) v(30) -(v(31)+v(116)) v(30) -(v(31)+v(116)) v(30) -(v(31)+v(116)) v(49) v(136) -(v(50)+v(135)) v(49) v(136) -(v(50)+v(135)) v(49) v(136) -(v(50)+v(135)) v(49) v(136) -(v(50)+v(135)) v(49) v(136) -(v(50)+v(135)) v(49) v(136) -(v(50)+v(135)) v(49) v(136) -(v(50)+v(135)) v(12) v(100) v(129) -(v(14)+v(43)+v(98)) v(12) v(100) v(129) -(v(14)+v(43)+v(98)) v(12) v(100) v(129) -(v(14)+v(43)+v(98)) v(12) v(100) v(129) -(v(14)+v(43)+v(98)) v(32) v(131) v(166) -(v(45)+v(80)+v(86)+v(118)) v(3) v(12) v(14) v(90) -(v(4)+v(25)+v(89)+v(98)+v(100)) v(3) v(12) v(14) v(90) -(v(4)+v(25)+v(89)+v(98)+v(100)) v(3) v(12) v(14) v(90) -(v(4)+v(25)+v(89)+v(98)+v(100)) v(3) v(12) v(14) v(90) -(v(4)+v(25)+v(89)+v(98)+v(100)) v(3) v(12) v(14) v(90) -(v(4)+v(25)+v(89)+v(98)+v(100)) v(3) v(12) v(14) v(90) -(v(4)+v(25)+v(89)+v(98)+v(100)) v(4) v(91) -(v(5)+v(90)) v(4) v(91) -(v(5)+v(90)) v(4) v(91) -(v(5)+v(90)) v(4) v(91) -(v(5)+v(90)) v(4) v(91) -(v(5)+v(90)) v(4) v(91) -(v(5)+v(90)) v(5) v(5) v(11) v(13) v(14) v(92) v(98) -(v(6)+v(12)+v(34)+v(91)+v(91)+v(97)+v(99)+v(100)) v(5) v(5) v(11) v(13) v(14) v(92) v(98) -(v(6)+v(12)+v(34)+v(91)+v(91)+v(97)+v(99)+v(100)) v(5) v(5) v(11) v(13) v(14) v(92) v(98) -(v(6)+v(12)+v(34)+v(91)+v(91)+v(97)+v(99)+v(100)) v(89) v(95) -(v(3)+v(9)+v(24)+v(87)+v(88)) v(89) v(95) -(v(3)+v(9)+v(24)+v(87)+v(88)) v(89) v(95) -(v(3)+v(9)+v(24)+v(87)+v(88)) v(89) v(95) -(v(3)+v(9)+v(24)+v(87)+v(88)) v(89) v(95) -(v(3)+v(9)+v(24)+v(87)+v(88)) v(89) v(95) -(v(3)+v(9)+v(24)+v(87)+v(88)) v(64) v(153) -(v(65)+v(66)+v(67)+v(150)) v(64) v(153) -(v(65)+v(66)+v(67)+v(150)) v(64) v(153) -(v(65)+v(66)+v(67)+v(150)) v(64) v(153) -(v(65)+v(66)+v(67)+v(150)) v(64) v(153) -(v(65)+v(66)+v(67)+v(150)) v(32) -(v(33)+v(118)) v(32) -(v(33)+v(118)) v(9) v(96) v(97) -(v(10)+v(11)+v(95)) v(9) v(96) v(97) -(v(10)+v(11)+v(95)) v(9) v(96) v(97) -(v(10)+v(11)+v(95)) v(9) v(96) v(97) -(v(10)+v(11)+v(95)) v(9) v(96) v(97) -(v(10)+v(11)+v(95)) v(9) v(96) v(97) -(v(10)+v(11)+v(95)) v(45) -(v(46)+v(131)) v(45) -(v(46)+v(131)) v(45) -(v(46)+v(131)) v(45) -(v(46)+v(131)) v(45) -(v(46)+v(131)) v(45) -(v(46)+v(131)) v(16) v(103) -(v(17)+v(102)) v(16) v(103) -(v(17)+v(102)) v(16) v(103) -(v(17)+v(102)) v(16) v(103) -(v(17)+v(102)) v(16) v(103) -(v(17)+v(102)) v(16) v(103) -(v(17)+v(102)) v(72) -(v(73)+v(158)) v(72) -(v(73)+v(158)) v(72) -(v(73)+v(158)) v(72) -(v(73)+v(158)) v(72) -(v(73)+v(158)) v(72) -(v(73)+v(158)) v(41) -(v(42)+v(127)) v(41) -(v(42)+v(127)) v(41) -(v(42)+v(127)) v(41) -(v(42)+v(127)) v(41) -(v(42)+v(127)) v(41) -(v(42)+v(127)) v(74) v(75) -(v(76)+v(160)+v(161)) v(74) v(75) -(v(76)+v(160)+v(161)) v(74) v(75) -(v(76)+v(160)+v(161)) v(74) v(75) -(v(76)+v(160)+v(161)) v(74) v(75) -(v(76)+v(160)+v(161)) v(74) v(75) -(v(76)+v(160)+v(161)) v(19) v(20) v(107) v(109) -(v(21)+v(23)+v(105)+v(106)) v(19) v(20) v(107) v(109) -(v(21)+v(23)+v(105)+v(106)) v(19) v(20) v(107) v(109) -(v(21)+v(23)+v(105)+v(106)) v(19) v(20) v(107) v(109) -(v(21)+v(23)+v(105)+v(106)) v(80) -(v(81)+v(166)) v(80) -(v(81)+v(166)) v(80) -(v(81)+v(166)) v(80) -(v(81)+v(166)) v(80) -(v(81)+v(166)) v(21) v(22) v(102) v(155) -(v(16)+v(69)+v(107)+v(108)) v(21) v(22) v(102) v(155) -(v(16)+v(69)+v(107)+v(108)) v(21) v(22) v(102) v(155) -(v(16)+v(69)+v(107)+v(108)) v(21) v(22) v(102) v(155) -(v(16)+v(69)+v(107)+v(108)) v(7) v(94) v(108) v(134) -(v(8)+v(22)+v(48)+v(93)) v(7) v(94) v(108) v(134) -(v(8)+v(22)+v(48)+v(93)) v(7) v(94) v(108) v(134) -(v(8)+v(22)+v(48)+v(93)) v(6) v(93) v(112) -(v(7)+v(26)+v(92)) v(6) v(93) v(112) -(v(7)+v(26)+v(92)) v(6) v(93) v(112) -(v(7)+v(26)+v(92)) v(51) v(52) -(v(53)+v(137)+v(138)) v(51) v(52) -(v(53)+v(137)+v(138)) v(51) v(52) -(v(53)+v(137)+v(138)) v(51) v(52) -(v(53)+v(137)+v(138)) v(51) v(52) -(v(53)+v(137)+v(138)) v(51) v(52) -(v(53)+v(137)+v(138)) v(51) v(52) -(v(53)+v(137)+v(138)) v(51) v(52) -(v(53)+v(137)+v(138)) v(51) v(52) -(v(53)+v(137)+v(138)) v(8) v(11) v(23) v(60) v(101) v(121) -(v(15)+v(35)+v(94)+v(97)+v(109)+v(146)) v(8) v(11) v(23) v(60) v(101) v(121) -(v(15)+v(35)+v(94)+v(97)+v(109)+v(146)) v(8) v(11) v(23) v(60) v(101) v(121) -(v(15)+v(35)+v(94)+v(97)+v(109)+v(146)) v(58) v(146) -(v(60)+v(144)) v(58) v(146) -(v(60)+v(144)) v(58) v(146) -(v(60)+v(144)) v(58) v(146) -(v(60)+v(144)) v(10) v(99) v(99) v(100) v(130) -(v(13)+v(13)+v(14)+v(44)+v(96)) v(10) v(99) v(99) v(100) v(130) -(v(13)+v(13)+v(14)+v(44)+v(96)) v(10) v(99) v(99) v(100) v(130) -(v(13)+v(13)+v(14)+v(44)+v(96)) v(10) v(99) v(99) v(100) v(130) -(v(13)+v(13)+v(14)+v(44)+v(96)) v(10) v(99) v(99) v(100) v(130) -(v(13)+v(13)+v(14)+v(44)+v(96)) v(13) v(98) -(v(12)+v(99)) v(13) v(98) -(v(12)+v(99)) v(13) v(98) -(v(12)+v(99)) v(13) v(98) -(v(12)+v(99)) v(13) v(98) -(v(12)+v(99)) v(13) v(98) -(v(12)+v(99)) v(13) v(98) -(v(12)+v(99)) v(28) v(116) v(118) -(v(29)+v(30)+v(32)+v(114)) v(28) v(116) v(118) -(v(29)+v(30)+v(32)+v(114)) v(28) v(116) v(118) -(v(29)+v(30)+v(32)+v(114)) v(18) v(105) v(106) -(v(19)+v(20)+v(104)) v(18) v(105) v(106) -(v(19)+v(20)+v(104)) v(18) v(105) v(106) -(v(19)+v(20)+v(104)) v(18) v(105) v(106) -(v(19)+v(20)+v(104)) v(78) v(158) -(v(72)+v(79)+v(164)) v(78) v(158) -(v(72)+v(79)+v(164)) v(78) v(158) -(v(72)+v(79)+v(164)) v(78) v(158) -(v(72)+v(79)+v(164)) v(58) -(v(59)+v(144)) v(58) -(v(59)+v(144)) v(58) -(v(59)+v(144)) v(58) -(v(59)+v(144)) v(58) -(v(59)+v(144)) v(58) -(v(59)+v(144)) v(58) -(v(59)+v(144)) v(58) -(v(59)+v(144)) v(58) -(v(59)+v(144)) v(58) -(v(59)+v(144)) v(58) -(v(59)+v(144)) v(54) v(55) -(v(56)+v(140)+v(141)) v(54) v(55) -(v(56)+v(140)+v(141)) v(54) v(55) -(v(56)+v(140)+v(141)) v(54) v(55) -(v(56)+v(140)+v(141)) v(54) v(55) -(v(56)+v(140)+v(141)) v(54) v(55) -(v(56)+v(140)+v(141)) v(54) v(55) -(v(56)+v(140)+v(141)) v(54) v(55) -(v(56)+v(140)+v(141)) v(54) v(55) -(v(56)+v(140)+v(141)) v(39) -(v(40)+v(125)) v(39) -(v(40)+v(125)) v(39) -(v(40)+v(125)) v(39) -(v(40)+v(125)) v(39) -(v(40)+v(125))]; end disp(timer()) endfunction test From fujimoto2005 at gmail.com Fri Apr 24 01:56:03 2015 From: fujimoto2005 at gmail.com (fujimoto2005) Date: Thu, 23 Apr 2015 16:56:03 -0700 (MST) Subject: [Scilab-users] lsqrsolve Message-ID: <1429833363709-4032132.post@n3.nabble.com> I want to use "lsqrsolve" for a non-liner least squares problem. I run the following program. In this program, "argVector1" and "argVector2" are only dummy parameters in order to confirm the ways to deliver the values of arguments other than the control variables for error function. But I got a error message. What is cause the error and how to fix it? ******************** function ret=err_test(param,argVector1,argVector2) err(1)=param(1)^2; err(2)=param(2)^2; err(3)=param(3)^2; err(4)=param(1)*param(2); ret=err; endfunction para=[1,2,3]; argVector1=zeros(1,5); argVector2=zeros(1,3) lsqrsolve(para,list(err_test,argVector1,argVector2),4) -- View this message in context: http://mailinglists.scilab.org/lsqrsolve-tp4032132.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From stephane.mottelet at utc.fr Fri Apr 24 08:29:11 2015 From: stephane.mottelet at utc.fr (=?ISO-8859-1?Q?St=E9phane_Mottelet?=) Date: Fri, 24 Apr 2015 08:29:11 +0200 Subject: [Scilab-users] lsqrsolve In-Reply-To: <1429833363709-4032132.post@n3.nabble.com> References: <1429833363709-4032132.post@n3.nabble.com> Message-ID: <5539E2B7.20302@utc.fr> Le 24/04/2015 01:56, fujimoto2005 a ?crit : > function ret=err_test(param,argVector1,argVector2) > err(1)=param(1)^2; > err(2)=param(2)^2; > err(3)=param(3)^2; > err(4)=param(1)*param(2); > ret=err; > endfunction > > para=[1,2,3]; > argVector1=zeros(1,5); > argVector2=zeros(1,3) > lsqrsolve(para,list(err_test,argVector1,argVector2),4) Hello, you are missing the size parameter (here I called it "n") in the residual function : function ret=err_test(param,n,argVector1,argVector2) err(1)=param(1)^2; err(2)=param(2)^2; err(3)=param(3)^2; err(4)=param(1)*param(2); ret=err; endfunction S. -------------- next part -------------- An HTML attachment was scrubbed... URL: From aweeks at hidglobal.com Fri Apr 24 09:30:06 2015 From: aweeks at hidglobal.com (aweeks at hidglobal.com) Date: Fri, 24 Apr 2015 08:30:06 +0100 Subject: [Scilab-users] Ways to speed up simple things in Scilab ? In-Reply-To: <55396964.7030103@utc.fr> References: <55396964.7030103@utc.fr> Message-ID: Hello Stephane, We have a Scilab program which performs a numerical integration on data points in 3-dimensions - it has two nested loops. When the number of data points was large this was slow so we implemented the calculation function in C and got a speed improvement of about 24 times ! We also found three other improvements: using pointer arithmetic was faster than 'for' loops, 'pow(x, 2)' was faster than x*x, handling the data as 3 (N x 1) vectors was faster than using 1 (N x 3) matrix. each of these giving something like a 3-4% improvement - small compared to x24 but still worth having. If you don't mind tackling the dynamic linking it's probably worth the effort if you'll use this program a few times - good luck. Adrian. Adrian Weeks Development Engineer, Hardware Engineering EMEA Office: +44 (0)2920 528500 | Desk: +44 (0)2920 528523 | Fax: +44 (0)2920 520178 aweeks at hidglobal.com Unit 3, Cae Gwyrdd, Green meadow Springs, Cardiff, UK, CF15 7AB. www.hidglobal.com From: St?phane Mottelet To: "International users mailing list for Scilab." Date: 23/04/2015 22:52 Subject: [Scilab-users] Ways to speed up simple things in Scilab ? Sent by: "users" Hello, I am currently working on a project where Scilab code is automatically generated, and after many code optimization, the remaining bottleneck is the time that Scilab spends to execute simple code like this (full script (where the vector has 839 lines) with timings is attached) : M1_v=[v(17) v(104) v(149) -(v(18)+v(63)+v(103)) -(v(18)+v(63)+v(103)) v(17) ... v(104) v(149) ] This kind of large vectors are the used to build a sparse matrix each time the vector v changes, but with a constant sparsity pattern. Actually, the time spent by Scilab in the statement M1=sparse(M1_ij,M1_v,[n1,n2]) is negligible compared to the time spent to build f M1_v... I have also noticed that if you need to define such a matrix with more that one column, the time elapsed is not linear with respect to the number of columns: typically 4 times slower for 2 columns. In fact the statement v=[1 1 ... 1000 1000] is even two times slower than v1=[1 ... 1000]; v2=[1 .... 1000]; v=[v1 v2]; So my question to users who have the experience of dynamic link of user code : do you think that using dynamic link of compiled generated C code could improve the timings ? In advance, thanks for your help ! S. [attachment "test.sce" deleted by Adrian Weeks/CWL/EU/ITG] _______________________________________________ users mailing list users at lists.scilab.org http://lists.scilab.org/mailman/listinfo/users -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/gif Size: 8425 bytes Desc: not available URL: From stephane.mottelet at utc.fr Fri Apr 24 10:20:19 2015 From: stephane.mottelet at utc.fr (=?windows-1252?Q?St=E9phane_Mottelet?=) Date: Fri, 24 Apr 2015 10:20:19 +0200 Subject: [Scilab-users] Ways to speed up simple things in Scilab ? In-Reply-To: References: <55396964.7030103@utc.fr> Message-ID: <5539FCC3.4000506@utc.fr> Hello, Ok, I will try dynamic link since I want the project to stay into the Scilab world, but another alternative is Julia (http://julialang.org/). I have made some tests this night and got a speedup of 25, the explanation is JIT compilation. Maybe will we have JIT compilation in Scilab 6 ? Best regards, S. Le 24/04/2015 09:30, aweeks at hidglobal.com a ?crit : > Hello Stephane, > > We have a Scilab program which performs a numerical integration on > data points in 3-dimensions - it has two nested loops. When the > number of data points was large this was slow so we implemented the > calculation function in C and got a speed improvement of about 24 times ! > > We also found three other improvements: > > using pointer arithmetic was faster than 'for' loops, > 'pow(x, 2)' was faster than x*x, > handling the data as 3 (N x 1) vectors was faster than using 1 > (N x 3) matrix. > > each of these giving something like a 3-4% improvement - small > compared to x24 but still worth having. > > If you don't mind tackling the dynamic linking it's probably worth the > effort if you'll use this program a few times - good luck. > > Adrian. > > *Adrian Weeks * > Development Engineer, Hardware Engineering EMEA > Office: +44 (0)2920 528500 | Desk: +44 (0)2920 528523 | Fax: +44 > (0)2920 520178_ > __aweeks at hidglobal.com_ > HID Global Logo > Unit 3, Cae Gwyrdd, > Green meadow Springs, > Cardiff, UK, > CF15 7AB._ > __www.hidglobal.com_ > > > > > > From: St?phane Mottelet > To: "International users mailing list for Scilab." > > Date: 23/04/2015 22:52 > Subject: [Scilab-users] Ways to speed up simple things in Scilab ? > Sent by: "users" > > > ------------------------------------------------------------------------ > > > > Hello, > > I am currently working on a project where Scilab code is automatically > generated, and after many code optimization, the remaining bottleneck is > the time that Scilab spends to execute simple code like this (full > script (where the vector has 839 lines) with timings is attached) : > > M1_v=[v(17) > v(104) > v(149) > -(v(18)+v(63)+v(103)) > -(v(18)+v(63)+v(103)) > v(17) > ... > v(104) > v(149) > ] > > This kind of large vectors are the used to build a sparse matrix each > time the vector v changes, but with a constant sparsity pattern. > Actually, the time spent by Scilab in the statement > > M1=sparse(M1_ij,M1_v,[n1,n2]) > > is negligible compared to the time spent to build f M1_v... > > I have also noticed that if you need to define such a matrix with more > that one column, the time elapsed is not linear with respect to the > number of columns: typically 4 times slower for 2 columns. In fact the > statement > > v=[1 1 > ... > 1000 1000] > > is even two times slower than > > v1=[1 > ... > 1000]; > v2=[1 > .... > 1000]; > v=[v1 v2]; > > So my question to users who have the experience of dynamic link of user > code : do you think that using dynamic link of compiled generated C code > could improve the timings ? > > In advance, thanks for your help ! > > S. > > > [attachment "test.sce" deleted by Adrian Weeks/CWL/EU/ITG] > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > > > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users -- D?partement de G?nie Informatique EA 4297 Transformations Int?gr?es de la Mati?re Renouvelable Universit? de Technologie de Compi?gne - CS 60319 60203 Compi?gne cedex -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/gif Size: 8425 bytes Desc: not available URL: From antoine.monmayrant at laas.fr Fri Apr 24 13:22:24 2015 From: antoine.monmayrant at laas.fr (Antoine Monmayrant) Date: Fri, 24 Apr 2015 13:22:24 +0200 Subject: [Scilab-users] Ways to speed up simple things in Scilab ? In-Reply-To: <5539FCC3.4000506@utc.fr> References: <55396964.7030103@utc.fr> <5539FCC3.4000506@utc.fr> Message-ID: <553A2770.9080102@laas.fr> Le 04/24/2015 10:20 AM, St?phane Mottelet a ?crit : > Hello, > > Ok, I will try dynamic link since I want the project to stay into the > Scilab world, but another alternative is Julia > (http://julialang.org/). I have made some tests this night and got a > speedup of 25, the explanation is JIT compilation. Maybe will we have > JIT compilation in Scilab 6 ? Hi St?phane, JIT is not the only explanation for the speedup. (I also did some scilab->julia conversion earlier this year to see how much we could gain). It seems to me that your code is not particularly efficient for scilab, while it might be a bit less inefficient in julia. For example: - you are indexing a lot, which is not particularly fast in scilab. - you are re-indexing several times: ...,v(17),v(104),v(149),...,v(17),v(104),v(149),... -> part_v=[v(17),v(104),v(149)] ; ...,part_v,...,part_v, could be faster. - you might need to pre-allocate M1_v : M1_v=zeros(whatever_size_it_is) so that scilab won't have to re-allocate it while you make it grow by stacking scalar after scalar. - more generally, it seems your code is highly redundant, couldn't you save some time by reusing some precalculated vector bit, like [v(17),v(104),v(149)] ? Hope it helps, Antoine > > Best regards, > > S. > > Le 24/04/2015 09:30, aweeks at hidglobal.com a ?crit : >> Hello Stephane, >> >> We have a Scilab program which performs a numerical integration on >> data points in 3-dimensions - it has two nested loops. When the >> number of data points was large this was slow so we implemented the >> calculation function in C and got a speed improvement of about 24 >> times ! >> >> We also found three other improvements: >> >> using pointer arithmetic was faster than 'for' loops, >> 'pow(x, 2)' was faster than x*x, >> handling the data as 3 (N x 1) vectors was faster than using >> 1 (N x 3) matrix. >> >> each of these giving something like a 3-4% improvement - small >> compared to x24 but still worth having. >> >> If you don't mind tackling the dynamic linking it's probably worth >> the effort if you'll use this program a few times - good luck. >> >> Adrian. >> >> *Adrian Weeks * >> Development Engineer, Hardware Engineering EMEA >> Office: +44 (0)2920 528500 | Desk: +44 (0)2920 528523 | Fax: +44 >> (0)2920 520178_ >> __aweeks at hidglobal.com_ >> HID Global Logo >> Unit 3, Cae Gwyrdd, >> Green meadow Springs, >> Cardiff, UK, >> CF15 7AB._ >> __www.hidglobal.com_ >> >> >> >> >> >> From: St?phane Mottelet >> To: "International users mailing list for Scilab." >> >> Date: 23/04/2015 22:52 >> Subject: [Scilab-users] Ways to speed up simple things in Scilab ? >> Sent by: "users" >> >> >> ------------------------------------------------------------------------ >> >> >> >> Hello, >> >> I am currently working on a project where Scilab code is automatically >> generated, and after many code optimization, the remaining bottleneck is >> the time that Scilab spends to execute simple code like this (full >> script (where the vector has 839 lines) with timings is attached) : >> >> M1_v=[v(17) >> v(104) >> v(149) >> -(v(18)+v(63)+v(103)) >> -(v(18)+v(63)+v(103)) >> v(17) >> ... >> v(104) >> v(149) >> ] >> >> This kind of large vectors are the used to build a sparse matrix each >> time the vector v changes, but with a constant sparsity pattern. >> Actually, the time spent by Scilab in the statement >> >> M1=sparse(M1_ij,M1_v,[n1,n2]) >> >> is negligible compared to the time spent to build f M1_v... >> >> I have also noticed that if you need to define such a matrix with more >> that one column, the time elapsed is not linear with respect to the >> number of columns: typically 4 times slower for 2 columns. In fact the >> statement >> >> v=[1 1 >> ... >> 1000 1000] >> >> is even two times slower than >> >> v1=[1 >> ... >> 1000]; >> v2=[1 >> .... >> 1000]; >> v=[v1 v2]; >> >> So my question to users who have the experience of dynamic link of user >> code : do you think that using dynamic link of compiled generated C code >> could improve the timings ? >> >> In advance, thanks for your help ! >> >> S. >> >> >> [attachment "test.sce" deleted by Adrian Weeks/CWL/EU/ITG] >> _______________________________________________ >> users mailing list >> users at lists.scilab.org >> http://lists.scilab.org/mailman/listinfo/users >> >> >> >> >> _______________________________________________ >> users mailing list >> users at lists.scilab.org >> http://lists.scilab.org/mailman/listinfo/users > > > -- > D?partement de G?nie Informatique > EA 4297 Transformations Int?gr?es de la Mati?re Renouvelable > Universit? de Technologie de Compi?gne - CS 60319 > 60203 Compi?gne cedex > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/gif Size: 8425 bytes Desc: not available URL: From antoine.monmayrant at laas.fr Fri Apr 24 13:31:33 2015 From: antoine.monmayrant at laas.fr (Antoine Monmayrant) Date: Fri, 24 Apr 2015 13:31:33 +0200 Subject: [Scilab-users] Ways to speed up simple things in Scilab ? In-Reply-To: <55396964.7030103@utc.fr> References: <55396964.7030103@utc.fr> Message-ID: <553A2995.5090706@laas.fr> Hi again, Another way you might improve your code: can you write it as a matrix-vector product? Like M1_v=A*v; Where A is a matrix of size (839,172) that corresponds to your weird combination of v(i) to build M1_v. It seems to me that you should be able to write it that way, which would save a lot of time as matrix product are fast in Scilab. Antoine Le 04/23/2015 11:51 PM, St?phane Mottelet a ?crit : > Hello, > > I am currently working on a project where Scilab code is automatically > generated, and after many code optimization, the remaining bottleneck > is the time that Scilab spends to execute simple code like this (full > script (where the vector has 839 lines) with timings is attached) : > > M1_v=[v(17) > v(104) > v(149) > -(v(18)+v(63)+v(103)) > -(v(18)+v(63)+v(103)) > v(17) > ... > v(104) > v(149) > ] > > This kind of large vectors are the used to build a sparse matrix each > time the vector v changes, but with a constant sparsity pattern. > Actually, the time spent by Scilab in the statement > > M1=sparse(M1_ij,M1_v,[n1,n2]) > > is negligible compared to the time spent to build f M1_v... > > I have also noticed that if you need to define such a matrix with more > that one column, the time elapsed is not linear with respect to the > number of columns: typically 4 times slower for 2 columns. In fact the > statement > > v=[1 1 > ... > 1000 1000] > > is even two times slower than > > v1=[1 > ... > 1000]; > v2=[1 > .... > 1000]; > v=[v1 v2]; > > So my question to users who have the experience of dynamic link of > user code : do you think that using dynamic link of compiled generated > C code could improve the timings ? > > In advance, thanks for your help ! > > S. > > > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users -------------- next part -------------- An HTML attachment was scrubbed... URL: From sgougeon at free.fr Fri Apr 24 13:36:50 2015 From: sgougeon at free.fr (Samuel Gougeon) Date: Fri, 24 Apr 2015 13:36:50 +0200 Subject: [Scilab-users] Ways to speed up simple things in Scilab ? In-Reply-To: <55396964.7030103@utc.fr> References: <55396964.7030103@utc.fr> Message-ID: <553A2AD2.1030106@free.fr> Hello Stephane, You can speed up by a factor larger than 100 just by calling v once (or 3 times) instead of ~1000, as shown by this test: function test2() // part 1 : only 1 call to v v = rand(172,1); p = grand(1,839,"unf",1,173) tic() for i=1:1000 m1_v = v(p) end disp(toc()) // part 2 : 839 calls to v e = "M1_v = ["+strcat("v("+string(p)+")")+"]" tic() for i=1:1000 execstr(e) end disp(toc()) // part 3 : calls to "empty" execstr(), to be substrated from the previous result e = "M1_v = 0"; tic() for i=1:1000 execstr(e) end disp(toc()) endfunction On my PC, i get: -->test2 0.015 1.888 0.015 So, you do not really need to go to compiled solutions, just to rewrite 839 lines into ~10 lines. Regards Samuel Le 23/04/2015 23:51, St?phane Mottelet a ?crit : > Hello, > > I am currently working on a project where Scilab code is automatically > generated, and after many code optimization, the remaining bottleneck > is the time that Scilab spends to execute simple code like this (full > script (where the vector has 839 lines) with timings is attached) : > > M1_v=[v(17) > v(104) > v(149) > -(v(18)+v(63)+v(103)) > -(v(18)+v(63)+v(103)) > v(17) > ... > v(104) > v(149) > ] > > This kind of large vectors are the used to build a sparse matrix each > time the vector v changes, but with a constant sparsity pattern. > Actually, the time spent by Scilab in the statement > > M1=sparse(M1_ij,M1_v,[n1,n2]) > > is negligible compared to the time spent to build f M1_v... > > I have also noticed that if you need to define such a matrix with more > that one column, the time elapsed is not linear with respect to the > number of columns: typically 4 times slower for 2 columns. In fact the > statement > > v=[1 1 > ... > 1000 1000] > > is even two times slower than > > v1=[1 > ... > 1000]; > v2=[1 > .... > 1000]; > v=[v1 v2]; > > So my question to users who have the experience of dynamic link of > user code : do you think that using dynamic link of compiled generated > C code could improve the timings ? > > In advance, thanks for your help ! > > S. > > > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users -------------- next part -------------- An HTML attachment was scrubbed... URL: From sgougeon at free.fr Fri Apr 24 13:48:15 2015 From: sgougeon at free.fr (Samuel Gougeon) Date: Fri, 24 Apr 2015 13:48:15 +0200 Subject: [Scilab-users] Ways to speed up simple things in Scilab ? In-Reply-To: <553A2AD2.1030106@free.fr> References: <55396964.7030103@utc.fr> <553A2AD2.1030106@free.fr> Message-ID: <553A2D7F.4080704@free.fr> Le 24/04/2015 13:36, Samuel Gougeon a ?crit : > Hello Stephane, > > You can speed up by a factor larger than 100 just by calling v once > (or 3 times) instead of ~1000, as shown by this test: Actually, to be more accurate, the right comparative test is the following: function test2() v = rand(172,1); p = grand(1,839,"unf",1,173) // Part 1: 1 call to v() tic() for i=1:1000 m1_v = v(p) end disp(toc()) // Part 2 : 839 calls to v() deff("test3()", "for i=1:1000, M1_v = ["+strcat("v("+string(p)+")")+"], end") tic() test3() disp(toc()) endfunction In this version, the compilation time used by execstr() is no longer taken into account. The results are still explicit: -->test2() 0.016 0.78 So, a speed-up by ~x 50 Samuel -------------- next part -------------- An HTML attachment was scrubbed... URL: From paul.carrico at free.fr Fri Apr 24 14:05:01 2015 From: paul.carrico at free.fr (paul.carrico at free.fr) Date: Fri, 24 Apr 2015 14:05:01 +0200 (CEST) Subject: [Scilab-users] Envelop of a noisy curve Message-ID: <686551709.343172453.1429877101583.JavaMail.root@zimbra5-e1.priv.proxad.net> Dear All, I am absolutly not familiar with "signal processing" field, so my question is probably na?ve: how can I proceed to get the envelop curve (maximum values) of a non periodic noisy signal ? Thanks for any suggestion Have a good WE Paul From fujimoto2005 at gmail.com Fri Apr 24 14:22:03 2015 From: fujimoto2005 at gmail.com (fujimoto2005) Date: Fri, 24 Apr 2015 05:22:03 -0700 (MST) Subject: [Scilab-users] lsqrsolve In-Reply-To: <5539E2B7.20302@utc.fr> References: <1429833363709-4032132.post@n3.nabble.com> <5539E2B7.20302@utc.fr> Message-ID: <1429878123595-4032141.post@n3.nabble.com> Thanks a lot. I could fix the problem. But I have another problem. I got an error message "zero division occurs" in the err_test function. Actual err function is a more complicated one and there is a formula of the form "1/parameter1". So I use the "leastsq" whith I can set the constraint on parameters values. I set a lower bound 0.00001 for parameter1. But still I have a same error message. Is there some way I can stop the run and look at where zero division occurs when error occurs? I don't know whether scilab has a debug mode. -- View this message in context: http://mailinglists.scilab.org/lsqrsolve-tp4032132p4032141.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From stephane.mottelet at utc.fr Fri Apr 24 14:34:46 2015 From: stephane.mottelet at utc.fr (=?ISO-8859-1?Q?St=E9phane_Mottelet?=) Date: Fri, 24 Apr 2015 14:34:46 +0200 Subject: [Scilab-users] Ways to speed up simple things in Scilab ? In-Reply-To: <553A2D7F.4080704@free.fr> References: <55396964.7030103@utc.fr> <553A2AD2.1030106@free.fr> <553A2D7F.4080704@free.fr> Message-ID: <553A3866.3080809@utc.fr> Hello, this is not trivial indexing, in fact some terms are linear combination of v's components M1_v=[v(17) v(104) v(149) -(v(18)+v(63)+v(103)) -(v(18)+v(63)+v(103)) v(17) ... v(104) v(149) ] How do you take this into account in your proposed method ? These combinations are sums of influxes in a metabolic network, and the code is automatically generated. S. Le 24/04/2015 13:48, Samuel Gougeon a ?crit : > Le 24/04/2015 13:36, Samuel Gougeon a ?crit : >> Hello Stephane, >> >> You can speed up by a factor larger than 100 just by calling v once >> (or 3 times) instead of ~1000, as shown by this test: > > Actually, to be more accurate, the right comparative test is the > following: > > function test2() > v = rand(172,1); > p = grand(1,839,"unf",1,173) > // Part 1: 1 call to v() > tic() > for i=1:1000 > m1_v = v(p) > end > disp(toc()) > > // Part 2 : 839 calls to v() > deff("test3()", "for i=1:1000, M1_v = ["+strcat("v("+string(p)+")")+"], end") > tic() > test3() > disp(toc()) > endfunction > > In this version, the compilation time used by execstr() is no longer > taken into account. > > The results are still explicit: > -->test2() > > 0.016 > > 0.78 > > So, a speed-up by ~x 50 > > Samuel > > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users -------------- next part -------------- An HTML attachment was scrubbed... URL: From mike.pageone at googlemail.com Fri Apr 24 14:36:33 2015 From: mike.pageone at googlemail.com (Mike Page) Date: Fri, 24 Apr 2015 13:36:33 +0100 Subject: [Scilab-users] Envelop of a noisy curve In-Reply-To: <686551709.343172453.1429877101583.JavaMail.root@zimbra5-e1.priv.proxad.net> References: <686551709.343172453.1429877101583.JavaMail.root@zimbra5-e1.priv.proxad.net> Message-ID: Hi Paul, Usually the envelope is calculated via the magnitude of the Hilbert transform. Check out Hilbert in the help. As usual there are some caveats, but often this is close enough without further work. HTH, Mike. On 24 April 2015 at 13:05, wrote: > Dear All, > > I am absolutly not familiar with "signal processing" field, so my question > is probably na?ve: how can I proceed to get the envelop curve (maximum > values) of a non periodic noisy signal ? > > Thanks for any suggestion > > Have a good WE > > Paul > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > -------------- next part -------------- An HTML attachment was scrubbed... URL: From stephane.mottelet at utc.fr Fri Apr 24 14:50:47 2015 From: stephane.mottelet at utc.fr (=?utf-8?Q?St=C3=A9phane_Mottelet?=) Date: Fri, 24 Apr 2015 14:50:47 +0200 Subject: [Scilab-users] Ways to speed up simple things in Scilab ? In-Reply-To: <553A2995.5090706@laas.fr> References: <55396964.7030103@utc.fr> <553A2995.5090706@laas.fr> Message-ID: Hello Antoine I think your idea is excellent in my context, I Will try it and keep you informed of the actual improvement, S. > Le 24 avr. 2015 ? 13:31, Antoine Monmayrant a ?crit : > > Hi again, > > Another way you might improve your code: can you write it as a matrix-vector product? > Like > > M1_v=A*v; > Where A is a matrix of size (839,172) that corresponds to your weird combination of v(i) to build M1_v. > It seems to me that you should be able to write it that way, which would save a lot of time as matrix product are fast in Scilab. > > Antoine > > > Le 04/23/2015 11:51 PM, St?phane Mottelet a ?crit : >> Hello, >> >> I am currently working on a project where Scilab code is automatically generated, and after many code optimization, the remaining bottleneck is the time that Scilab spends to execute simple code like this (full script (where the vector has 839 lines) with timings is attached) : >> >> M1_v=[v(17) >> v(104) >> v(149) >> -(v(18)+v(63)+v(103)) >> -(v(18)+v(63)+v(103)) >> v(17) >> ... >> v(104) >> v(149) >> ] >> >> This kind of large vectors are the used to build a sparse matrix each time the vector v changes, but with a constant sparsity pattern. Actually, the time spent by Scilab in the statement >> >> M1=sparse(M1_ij,M1_v,[n1,n2]) >> >> is negligible compared to the time spent to build f M1_v... >> >> I have also noticed that if you need to define such a matrix with more that one column, the time elapsed is not linear with respect to the number of columns: typically 4 times slower for 2 columns. In fact the statement >> >> v=[1 1 >> ... >> 1000 1000] >> >> is even two times slower than >> >> v1=[1 >> ... >> 1000]; >> v2=[1 >> .... >> 1000]; >> v=[v1 v2]; >> >> So my question to users who have the experience of dynamic link of user code : do you think that using dynamic link of compiled generated C code could improve the timings ? >> >> In advance, thanks for your help ! >> >> S. >> >> >> >> >> _______________________________________________ >> users mailing list >> users at lists.scilab.org >> http://lists.scilab.org/mailman/listinfo/users > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users -------------- next part -------------- An HTML attachment was scrubbed... URL: From sgougeon at free.fr Fri Apr 24 14:53:16 2015 From: sgougeon at free.fr (Samuel Gougeon) Date: Fri, 24 Apr 2015 14:53:16 +0200 Subject: [Scilab-users] Ways to speed up simple things in Scilab ? In-Reply-To: <553A3866.3080809@utc.fr> References: <55396964.7030103@utc.fr> <553A2AD2.1030106@free.fr> <553A2D7F.4080704@free.fr> <553A3866.3080809@utc.fr> Message-ID: <553A3CBC.8080905@free.fr> Le 24/04/2015 14:34, St?phane Mottelet a ?crit : > Hello, > > this is not trivial indexing, in fact some terms are linear > combination of v's components > > M1_v=[v(17) > v(104) > v(149) > -(v(18)+v(63)+v(103)) > -(v(18)+v(63)+v(103)) > v(17) > ... > v(104) > v(149) > ] > > How do you take this into account in your proposed method ? These > combinations are sums of influxes in a metabolic network, and the code > is automatically generated. In this way: from 1> M1_v=[v(17) 2> v(104) 3> v(149) 4> -(v(18)+v(63)+v(103)) 5> -(v(18)+v(63)+v(103)) 6> v(17) ... 838> v(104) 839> v(149) ] set: i = [1 2 3 6 ... 838 839] iv = [17 104 149 17 ... 104 149] M1_v(i) = v(iv) im = [4 5 ] // or setdiff(1:839, i). ivm = [18 18 ... ] M1_v(im) = -v(ivm) // + loop over the rank of elements in the linear combination // + adapt according to the automatic generation of your code Samuel -------------- next part -------------- An HTML attachment was scrubbed... URL: From bmbouter at gmail.com Fri Apr 24 15:19:21 2015 From: bmbouter at gmail.com (Brian Bouterse) Date: Fri, 24 Apr 2015 09:19:21 -0400 Subject: [Scilab-users] Ways to speed up simple things in Scilab ? In-Reply-To: <553A3866.3080809@utc.fr> References: <55396964.7030103@utc.fr> <553A2AD2.1030106@free.fr> <553A2D7F.4080704@free.fr> <553A3866.3080809@utc.fr> Message-ID: I don't know much about scilab optimizations, but trying to hand-optimize auto-generated code almost certainly will result in correctness problems. It's likely better to make your improvements in the software that is generating the scilab code. I think the main feature there is to have it generate a vectorized implementation instead of a procedural one (as you have now). -Brian On Fri, Apr 24, 2015 at 8:34 AM, St?phane Mottelet wrote: > Hello, > > this is not trivial indexing, in fact some terms are linear combination of > v's components > > M1_v=[v(17) > v(104) > v(149) > -(v(18)+v(63)+v(103)) > -(v(18)+v(63)+v(103)) > v(17) > ... > v(104) > v(149) > ] > > How do you take this into account in your proposed method ? These > combinations are sums of influxes in a metabolic network, and the code is > automatically generated. > > > S. > > > > Le 24/04/2015 13:48, Samuel Gougeon a ?crit : > > Le 24/04/2015 13:36, Samuel Gougeon a ?crit : > > Hello Stephane, > > You can speed up by a factor larger than 100 just by calling v once (or 3 > times) instead of ~1000, as shown by this test: > > > Actually, to be more accurate, the right comparative test is the following: > > function test2() > v = rand(172,1); > p = grand(1,839,"unf",1,173) > // Part 1: 1 call to v() > tic() > for i=1:1000 > m1_v = v(p) > end > disp(toc()) > > // Part 2 : 839 calls to v() > deff("test3()", "for i=1:1000, M1_v = [ "+strcat("v("+string(p)+") ")+"], end") > tic() > test3() > disp(toc())endfunction > > > In this version, the compilation time used by execstr() is no longer taken > into account. > > The results are still explicit: > -->test2() > > 0.016 > > 0.78 > > So, a speed-up by ~x 50 > > Samuel > > > > _______________________________________________ > users mailing listusers at lists.scilab.orghttp://lists.scilab.org/mailman/listinfo/users > > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > > -- Brian Bouterse -------------- next part -------------- An HTML attachment was scrubbed... URL: From sgougeon at free.fr Fri Apr 24 15:35:41 2015 From: sgougeon at free.fr (Samuel Gougeon) Date: Fri, 24 Apr 2015 15:35:41 +0200 Subject: [Scilab-users] Ways to speed up simple things in Scilab ? In-Reply-To: References: <55396964.7030103@utc.fr> <553A2995.5090706@laas.fr> Message-ID: <553A46AD.1050403@free.fr> Le 24/04/2015 14:50, St?phane Mottelet a ?crit : > Hello Antoine > > I think your idea is excellent in my context, I Will try it and keep > you informed of the actual improvement, > > S. > > Le 24 avr. 2015 ? 13:31, Antoine Monmayrant > > a ?crit : > >> Hi again, >> >> Another way you might improve your code: can you write it as a >> matrix-vector product? >> Like >> >> M1_v=A*v; >> Where A is a matrix of size (839,172) that corresponds to your weird >> combination of v(i) to build M1_v. >> It seems to me that you should be able to write it that way, which >> would save a lot of time as matrix product are fast in Scilab. The test: A = sign(sprand(839,172,2/172, "normal")); i = A>0; A(i) = 1; i = A<0; A(i) = -1; p = rand(172,1); tic() for i = 1:1000 M1_v = A*p; end toc() gives -->toc() ans = 0.156 But somewhere you will somehow have to actually preset A(1,17) = 1; A(2,104) = 1; A(3,149) = 1; A(4, [18 63 103]) = -1; A(5, [18 63 103]) = -1; A(6,17) = 1; ... A(838, 104) = 1; A(839, 149) = 1; A priori, this is a bit more human-readable, but also more time-consuming... I am afraid that doing this in this way you will loose the gain "got" with matrix multiplication. Samuel >> >> Antoine >> >> >> Le 04/23/2015 11:51 PM, St?phane Mottelet a ?crit : >>> Hello, >>> >>> I am currently working on a project where Scilab code is >>> automatically generated, and after many code optimization, the >>> remaining bottleneck is the time that Scilab spends to execute >>> simple code like this (full script (where the vector has 839 lines) >>> with timings is attached) : >>> >>> M1_v=[v(17) >>> v(104) >>> v(149) >>> -(v(18)+v(63)+v(103)) >>> -(v(18)+v(63)+v(103)) >>> v(17) >>> ... >>> v(104) >>> v(149) >>> ] >>> .../... -------------- next part -------------- An HTML attachment was scrubbed... URL: From antoine.monmayrant at laas.fr Fri Apr 24 15:36:50 2015 From: antoine.monmayrant at laas.fr (Antoine Monmayrant) Date: Fri, 24 Apr 2015 15:36:50 +0200 Subject: [Scilab-users] Ways to speed up simple things in Scilab ? In-Reply-To: References: <55396964.7030103@utc.fr> <553A2AD2.1030106@free.fr> <553A2D7F.4080704@free.fr> <553A3866.3080809@utc.fr> Message-ID: <553A46F2.1080402@laas.fr> Le 04/24/2015 03:19 PM, Brian Bouterse a ?crit : > I don't know much about scilab optimizations, but trying to > hand-optimize auto-generated code almost certainly will result in > correctness problems. It's likely better to make your improvements in > the software that is generating the scilab code. I think the main > feature there is to have it generate a vectorized implementation > instead of a procedural one (as you have now). I agree with you: scilab is fast with linear algebra and slow for the rest and so far you have not generated your scilab code with scilab strength and weakness in mind. So if you stick with Scilab, you should go for a matrix form (maybe a sparse matrix) or follow Samuel's version. Cheers, Antoine > > -Brian > > On Fri, Apr 24, 2015 at 8:34 AM, St?phane Mottelet > > wrote: > > Hello, > > this is not trivial indexing, in fact some terms are linear > combination of v's components > > M1_v=[v(17) > v(104) > v(149) > -(v(18)+v(63)+v(103)) > -(v(18)+v(63)+v(103)) > v(17) > ... > v(104) > v(149) > ] > > How do you take this into account in your proposed method ? These > combinations are sums of influxes in a metabolic network, and the > code is automatically generated. > > > S. > > > > Le 24/04/2015 13:48, Samuel Gougeon a ?crit : >> Le 24/04/2015 13:36, Samuel Gougeon a ?crit : >>> Hello Stephane, >>> >>> You can speed up by a factor larger than 100 just by calling v >>> once (or 3 times) instead of ~1000, as shown by this test: >> >> Actually, to be more accurate, the right comparative test is the >> following: >> >> function test2() >> v = rand(172,1); >> p = grand(1,839,"unf",1,173) >> // Part 1: 1 call to v() >> tic() >> for i=1:1000 >> m1_v = v(p) >> end >> disp(toc()) >> >> // Part 2 : 839 calls to v() >> deff("test3()", "for i=1:1000, M1_v = ["+strcat("v("+string(p)+")")+"], end") >> tic() >> test3() >> disp(toc()) >> endfunction >> >> In this version, the compilation time used by execstr() is no >> longer taken into account. >> >> The results are still explicit: >> -->test2() >> >> 0.016 >> >> 0.78 >> >> So, a speed-up by ~x 50 >> >> Samuel >> >> >> >> _______________________________________________ >> users mailing list >> users at lists.scilab.org >> http://lists.scilab.org/mailman/listinfo/users > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > > > > > -- > Brian Bouterse > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users -------------- next part -------------- An HTML attachment was scrubbed... URL: From sgougeon at free.fr Fri Apr 24 15:57:13 2015 From: sgougeon at free.fr (Samuel Gougeon) Date: Fri, 24 Apr 2015 15:57:13 +0200 Subject: [Scilab-users] Ways to speed up simple things in Scilab ? In-Reply-To: <553A46AD.1050403@free.fr> References: <55396964.7030103@utc.fr> <553A2995.5090706@laas.fr> <553A46AD.1050403@free.fr> Message-ID: <553A4BB9.4020001@free.fr> Le 24/04/2015 15:35, Samuel Gougeon a ?crit : > .../... > The test: > A = sign(sprand(839,172,2/172, "normal")); Sorry for this bad mixing between an unworkable line and its workaround. Dropping sign() on the first line is OK for a copy/past: > A = sprand(839,172,2/172, "normal"); > i = A>0; A(i) = 1; > i = A<0; A(i) = -1; > p = rand(172,1); > tic() > for i = 1:1000 > M1_v = A*p; > end > toc() > -------------- next part -------------- An HTML attachment was scrubbed... URL: From antoine.monmayrant at laas.fr Fri Apr 24 16:31:10 2015 From: antoine.monmayrant at laas.fr (Antoine Monmayrant) Date: Fri, 24 Apr 2015 16:31:10 +0200 Subject: [Scilab-users] Outputting a "continuous" sound with Scilab Message-ID: <553A53AE.9070809@laas.fr> Hi everyone, I'm trying to use Scilab to generate a soundwave with a given frequency and output it continuously. Basically, I'd like to get a simple "software-based" function generator: a slider to set the frequency and the sound being played continuously in the background. Is this possible in Scilab? I'm fine with the gui & callback part, but for sound output 'playsnd' and 'sound' do not seem to be able to loop over a given sample without any gap. Any suggestion or alternative software I could use? Cheers, Antoine From fujimoto2005 at gmail.com Fri Apr 24 16:52:26 2015 From: fujimoto2005 at gmail.com (fujimoto2005) Date: Fri, 24 Apr 2015 07:52:26 -0700 (MST) Subject: [Scilab-users] lsqrsolve In-Reply-To: <1429878123595-4032141.post@n3.nabble.com> References: <1429833363709-4032132.post@n3.nabble.com> <5539E2B7.20302@utc.fr> <1429878123595-4032141.post@n3.nabble.com> Message-ID: <1429887146915-4032151.post@n3.nabble.com> I could fix by adding to the err function a section which set an err value?at limit value when param1?0?if pram1=0. -- View this message in context: http://mailinglists.scilab.org/lsqrsolve-tp4032132p4032151.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From stephane.mottelet at utc.fr Fri Apr 24 16:58:15 2015 From: stephane.mottelet at utc.fr (=?ISO-8859-1?Q?St=E9phane_Mottelet?=) Date: Fri, 24 Apr 2015 16:58:15 +0200 Subject: [Scilab-users] Ways to speed up simple things in Scilab ? In-Reply-To: <553A46AD.1050403@free.fr> References: <55396964.7030103@utc.fr> <553A2995.5090706@laas.fr> <553A46AD.1050403@free.fr> Message-ID: <553A5A07.4060504@utc.fr> Le 24/04/2015 15:35, Samuel Gougeon a ?crit : > Le 24/04/2015 14:50, St?phane Mottelet a ?crit : >> Hello Antoine >> >> I think your idea is excellent in my context, I Will try it and keep >> you informed of the actual improvement, >> >> S. >> >> Le 24 avr. 2015 ? 13:31, Antoine Monmayrant >> > a >> ?crit : >> >>> Hi again, >>> >>> Another way you might improve your code: can you write it as a >>> matrix-vector product? >>> Like >>> >>> M1_v=A*v; >>> Where A is a matrix of size (839,172) that corresponds to your weird >>> combination of v(i) to build M1_v. >>> It seems to me that you should be able to write it that way, which >>> would save a lot of time as matrix product are fast in Scilab. > > The test: > A = sign(sprand(839,172,2/172, "normal")); > i = A>0; A(i) = 1; > i = A<0; A(i) = -1; > p = rand(172,1); > tic() > for i = 1:1000 > M1_v = A*p; > end > toc() > gives > -->toc() > ans = > 0.156 > > But somewhere you will somehow have to actually preset > A(1,17) = 1; > A(2,104) = 1; > A(3,149) = 1; > A(4, [18 63 103]) = -1; > A(5, [18 63 103]) = -1; > A(6,17) = 1; > ... > A(838, 104) = 1; > A(839, 149) = 1; > > A priori, this is a bit more human-readable, but also more > time-consuming... I am afraid that doing this in this way you will > loose the gain "got" with matrix multiplication. > > Samuel No it is not a problem because the A matrix has to be created only once, since its sparsity pattern won't change later on. S. > >>> >>> Antoine >>> >>> >>> Le 04/23/2015 11:51 PM, St?phane Mottelet a ?crit : >>>> Hello, >>>> >>>> I am currently working on a project where Scilab code is >>>> automatically generated, and after many code optimization, the >>>> remaining bottleneck is the time that Scilab spends to execute >>>> simple code like this (full script (where the vector has 839 lines) >>>> with timings is attached) : >>>> >>>> M1_v=[v(17) >>>> v(104) >>>> v(149) >>>> -(v(18)+v(63)+v(103)) >>>> -(v(18)+v(63)+v(103)) >>>> v(17) >>>> ... >>>> v(104) >>>> v(149) >>>> ] >>>> .../... > > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users -------------- next part -------------- An HTML attachment was scrubbed... URL: From stephane.mottelet at utc.fr Fri Apr 24 17:32:06 2015 From: stephane.mottelet at utc.fr (=?ISO-8859-1?Q?St=E9phane_Mottelet?=) Date: Fri, 24 Apr 2015 17:32:06 +0200 Subject: [Scilab-users] Ways to speed up simple things in Scilab ? In-Reply-To: References: <55396964.7030103@utc.fr> <553A2AD2.1030106@free.fr> <553A2D7F.4080704@free.fr> <553A3866.3080809@utc.fr> Message-ID: <553A61F6.6030009@utc.fr> Hello, You will find a description of the actual problem which is solved by the generated code : http://arxiv.org/pdf/1206.5072v1.pdf See particularly page 6, where I explain the way the code generation works. However, be warned that the code snipplets are quite obsolete, since the generated code is now more efficient. For matrices M_k(v) (the ones the thread is about), Antoine's answer give a solution because the element of this matrix are linear combinations of the v(i)'s. But for other matrices, wich are derivatives of the fonctions expressing the non-linear system with respect to state or parameters, the terms to assemble are non-linear algebraic expressions mixing states and v(i)'s. S. Le 24/04/2015 15:19, Brian Bouterse a ?crit : > I don't know much about scilab optimizations, but trying to > hand-optimize auto-generated code almost certainly will result in > correctness problems. It's likely better to make your improvements in > the software that is generating the scilab code. I think the main > feature there is to have it generate a vectorized implementation > instead of a procedural one (as you have now). > > -Brian > > On Fri, Apr 24, 2015 at 8:34 AM, St?phane Mottelet > > wrote: > > Hello, > > this is not trivial indexing, in fact some terms are linear > combination of v's components > > M1_v=[v(17) > v(104) > v(149) > -(v(18)+v(63)+v(103)) > -(v(18)+v(63)+v(103)) > v(17) > ... > v(104) > v(149) > ] > > How do you take this into account in your proposed method ? These > combinations are sums of influxes in a metabolic network, and the > code is automatically generated. > > > S. > > > > Le 24/04/2015 13:48, Samuel Gougeon a ?crit : >> Le 24/04/2015 13:36, Samuel Gougeon a ?crit : >>> Hello Stephane, >>> >>> You can speed up by a factor larger than 100 just by calling v >>> once (or 3 times) instead of ~1000, as shown by this test: >> >> Actually, to be more accurate, the right comparative test is the >> following: >> >> function test2() >> v = rand(172,1); >> p = grand(1,839,"unf",1,173) >> // Part 1: 1 call to v() >> tic() >> for i=1:1000 >> m1_v = v(p) >> end >> disp(toc()) >> >> // Part 2 : 839 calls to v() >> deff("test3()", "for i=1:1000, M1_v = ["+strcat("v("+string(p)+")")+"], end") >> tic() >> test3() >> disp(toc()) >> endfunction >> >> In this version, the compilation time used by execstr() is no >> longer taken into account. >> >> The results are still explicit: >> -->test2() >> >> 0.016 >> >> 0.78 >> >> So, a speed-up by ~x 50 >> >> Samuel >> >> >> >> _______________________________________________ >> users mailing list >> users at lists.scilab.org >> http://lists.scilab.org/mailman/listinfo/users > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > > > > > -- > Brian Bouterse > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users -------------- next part -------------- An HTML attachment was scrubbed... URL: From tim at wescottdesign.com Fri Apr 24 18:53:31 2015 From: tim at wescottdesign.com (Tim Wescott) Date: Fri, 24 Apr 2015 09:53:31 -0700 Subject: [Scilab-users] Ways to speed up simple things in Scilab ? In-Reply-To: References: <55396964.7030103@utc.fr> <553A2995.5090706@laas.fr> Message-ID: <1429894411.2192.277.camel@servo> If A stays constant this should work well. Yes, doing this as a C call will speed things up, too, but if you can do it with matrices and no C calls your code may stand the test of time better. What seems to work for me is to keep in mind that Scilab tends to be slow with individual operations, but without much of a speed hit for matrix operations. So any place that you can replace a 'for' loop or string of statements with a matrix operation, you can save time. On Fri, 2015-04-24 at 14:50 +0200, St?phane Mottelet wrote: > Hello Antoine > > > I think your idea is excellent in my context, I Will try it and keep > you informed of the actual improvement, > > > S. > > Le 24 avr. 2015 ? 13:31, Antoine Monmayrant > a ?crit : > > > > Hi again, > > > > Another way you might improve your code: can you write it as a > > matrix-vector product? > > Like > > > > M1_v=A*v; > > Where A is a matrix of size (839,172) that corresponds to your weird > > combination of v(i) to build M1_v. > > It seems to me that you should be able to write it that way, which > > would save a lot of time as matrix product are fast in Scilab. > > > > Antoine > > > > > > Le 04/23/2015 11:51 PM, St?phane Mottelet a ?crit : > > > > > Hello, > > > > > > I am currently working on a project where Scilab code is > > > automatically generated, and after many code optimization, the > > > remaining bottleneck is the time that Scilab spends to execute > > > simple code like this (full script (where the vector has 839 > > > lines) with timings is attached) : > > > > > > M1_v=[v(17) > > > v(104) > > > v(149) > > > -(v(18)+v(63)+v(103)) > > > -(v(18)+v(63)+v(103)) > > > v(17) > > > ... > > > v(104) > > > v(149) > > > ] > > > > > > This kind of large vectors are the used to build a sparse matrix > > > each time the vector v changes, but with a constant sparsity > > > pattern. Actually, the time spent by Scilab in the statement > > > > > > M1=sparse(M1_ij,M1_v,[n1,n2]) > > > > > > is negligible compared to the time spent to build f M1_v... > > > > > > I have also noticed that if you need to define such a matrix with > > > more that one column, the time elapsed is not linear with respect > > > to the number of columns: typically 4 times slower for 2 columns. > > > In fact the statement > > > > > > v=[1 1 > > > ... > > > 1000 1000] > > > > > > is even two times slower than > > > > > > v1=[1 > > > ... > > > 1000]; > > > v2=[1 > > > .... > > > 1000]; > > > v=[v1 v2]; > > > > > > So my question to users who have the experience of dynamic link of > > > user code : do you think that using dynamic link of compiled > > > generated C code could improve the timings ? > > > > > > In advance, thanks for your help ! > > > > > > S. > > > > > > > > > > > > > > > _______________________________________________ > > > users mailing list > > > users at lists.scilab.org > > > http://lists.scilab.org/mailman/listinfo/users > > > > > > > > _______________________________________________ > > users mailing list > > users at lists.scilab.org > > http://lists.scilab.org/mailman/listinfo/users > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users -- Tim Wescott www.wescottdesign.com Control & Communications systems, circuit & software design. Phone: 503.631.7815 Cell: 503.349.8432 From tim at wescottdesign.com Fri Apr 24 18:57:58 2015 From: tim at wescottdesign.com (Tim Wescott) Date: Fri, 24 Apr 2015 09:57:58 -0700 Subject: [Scilab-users] Envelop of a noisy curve In-Reply-To: References: <686551709.343172453.1429877101583.JavaMail.root@zimbra5-e1.priv.proxad.net> Message-ID: <1429894678.2192.280.camel@servo> It sounds like he's looking for the digital equivalent of what would come out of a diode detector in an AM radio -- the Hilbert transform isn't going to help much, there. On Fri, 2015-04-24 at 13:36 +0100, Mike Page wrote: > Hi Paul, > > > Usually the envelope is calculated via the magnitude of the Hilbert > transform. Check out Hilbert in the help. As usual there are some > caveats, but often this is close enough without further work. > > > HTH, > > Mike. > > > > On 24 April 2015 at 13:05, wrote: > Dear All, > > I am absolutly not familiar with "signal processing" field, so > my question is probably na?ve: how can I proceed to get the > envelop curve (maximum values) of a non periodic noisy > signal ? > > Thanks for any suggestion > > Have a good WE > > Paul > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users -- Tim Wescott www.wescottdesign.com Control & Communications systems, circuit & software design. Phone: 503.631.7815 Cell: 503.349.8432 From tim at wescottdesign.com Fri Apr 24 19:16:03 2015 From: tim at wescottdesign.com (Tim Wescott) Date: Fri, 24 Apr 2015 10:16:03 -0700 Subject: [Scilab-users] Envelop of a noisy curve In-Reply-To: <686551709.343172453.1429877101583.JavaMail.root@zimbra5-e1.priv.proxad.net> References: <686551709.343172453.1429877101583.JavaMail.root@zimbra5-e1.priv.proxad.net> Message-ID: <1429895763.2192.293.camel@servo> I think you need to think hard about what you mean by "envelope". It's not necessarily a well-defined quantity if you're talking about baseband data. As an example, if you're starting with x you might want to take it's absolute xa = abs(x), then process it with a difference equation something like: a = ; xe = zeros(x); xa = abs(x); state = 0; for ix = 1:prod(size(xa)) if (state < xa(ix)) state = xa(ix); else state = state * (1 - a); end xe(ix) = state; end This will certainly give you something that adheres to one interpretation of the word "envelope", but I absolutely positively can't guarantee that it's what you want. It'll also not take good advantage of Scilab's capabilities -- I don't know that anything will in this case, at any rate. On Fri, 2015-04-24 at 14:05 +0200, paul.carrico at free.fr wrote: > Dear All, > > I am absolutly not familiar with "signal processing" field, so my question is probably na?ve: how can I proceed to get the envelop curve (maximum values) of a non periodic noisy signal ? > > Thanks for any suggestion > > Have a good WE > > Paul > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users -- Tim Wescott www.wescottdesign.com Control & Communications systems, circuit & software design. Phone: 503.631.7815 Cell: 503.349.8432 From Serge.Steer at inria.fr Fri Apr 24 21:02:22 2015 From: Serge.Steer at inria.fr (Serge Steer) Date: Fri, 24 Apr 2015 21:02:22 +0200 Subject: [Scilab-users] Ways to speed up simple things in Scilab ? In-Reply-To: <55396964.7030103@utc.fr> References: <55396964.7030103@utc.fr> Message-ID: <553A933E.6080505@inria.fr> Le 23/04/2015 23:51, St?phane Mottelet a ?crit : > Hello, > > I am currently working on a project where Scilab code is automatically > generated, and after many code optimization, the remaining bottleneck > is the time that Scilab spends to execute simple code like this (full > script (where the vector has 839 lines) with timings is attached) : > > M1_v=[v(17) > v(104) > v(149) > -(v(18)+v(63)+v(103)) > -(v(18)+v(63)+v(103)) > v(17) > ... > v(104) > v(149) > ] > > This kind of large vectors are the used to build a sparse matrix each > time the vector v changes, but with a constant sparsity pattern. > Actually, the time spent by Scilab in the statement > > M1=sparse(M1_ij,M1_v,[n1,n2]) > > is negligible compared to the time spent to build f M1_v... > > I have also noticed that if you need to define such a matrix with more > that one column, the time elapsed is not linear with respect to the > number of columns: typically 4 times slower for 2 columns. In fact the > statement > > v=[1 1 > ... > 1000 1000] > > is even two times slower than > > v1=[1 > ... > 1000]; > v2=[1 > .... > 1000]; > v=[v1 v2]; > > So my question to users who have the experience of dynamic link of > user code : do you think that using dynamic link of compiled generated > C code could improve the timings ? > Mais apriori je ne fais rien qui soit OS dependant... As your code is generated it should effectively a good idea to generate C code and use incremental linking (once the code has been compiled and link you can expect a speed factor around 100 times. But the compilation may be slow. So using dynmaic linking is a very good idea if your generated code has to be run many times. Serge > In advance, thanks for your help ! > > S. > > > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users -------------- next part -------------- An HTML attachment was scrubbed... URL: From sgougeon at free.fr Fri Apr 24 21:03:23 2015 From: sgougeon at free.fr (Samuel Gougeon) Date: Fri, 24 Apr 2015 21:03:23 +0200 Subject: [Scilab-users] Envelop of a noisy curve In-Reply-To: <686551709.343172453.1429877101583.JavaMail.root@zimbra5-e1.priv.proxad.net> References: <686551709.343172453.1429877101583.JavaMail.root@zimbra5-e1.priv.proxad.net> Message-ID: <553A937B.30302@free.fr> Hello, Le 24/04/2015 14:05, paul.carrico at free.fr a ?crit : > Dear All, > > I am absolutly not familiar with "signal processing" field, so my question is probably na?ve: how can I proceed to get the envelop curve (maximum values) of a non periodic noisy signal ? Here is an example and its result: x = linspace(0,20,300); y = exp((2-x)/5).*sin(x)+rand(x); clf plot2d(x,y) e = gce(); e = e.children; e.foreground = color("grey80"); d = diff(y) ./ diff(x); pmax = find(d(1:$-1)>=0 & d(2:$)<0)+1; pmin = find(d(1:$-1)<0 & d(2:$)>0)+1; // edges corrections if d(1)<0 then pmax = [1 pmax] end if d($)<0 then pmin = [pmin length(y)] end // plot(x(pmax),y(pmax),"r",x(pmin),y(pmin),"b") Zooming on that shows in some places the limits of this naive approach, to be refine. Regards Samuel -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: jggihjdf.png Type: image/png Size: 46503 bytes Desc: not available URL: From jdamon at accesio.com Fri Apr 24 23:33:31 2015 From: jdamon at accesio.com (Jimi Damon) Date: Fri, 24 Apr 2015 14:33:31 -0700 Subject: [Scilab-users] Curious about 24 character limitation in Scilab 5/ 6 Message-ID: <553AB6AB.1020701@accesio.com> Hello, I am new to Scilab but have a lot of experience with Matlab / Octave and a number of other languages. I have been gradually adding new languages ( using Swig ) to support the C based APIs that configure our company's data acquisition products and these have been successful for a large number of languages : perl, php, octave, matlab, java..etc. Ideally, I would really like to add Scilab support and my company's hardware to the list of devices that support Scilab I recently ran into a problem while trying to port this to Scilab and that is caused by the this 24 character limitation that Scilab imposes for variable and function names. I tried doing some background reading about this topic and I was left with just too many things to explore so I figured I would just ask a quick question on this message board to see what the status is on this limitation. My questions are: 1. Is it true that this is something that is going to be fixed ? 2. Is it going to be fixed before a Scilab 6 has been released ? 3. Is there any guess as to when this might occur either in Scilab 5 or 6 ? I'm debating whether to just wait this one out, but then on the side I am considering using more of a Comedi based approach to solving this problem. At this moment there is no way to get around the fact that some of our API functions and variables are greater than 24 characters in length so recoding our API is not an option. In such a case we just wouldn't support Scilab. Thanks for any information you might have, -Jimi -- Jimi Damon Linux Engineer ACCES I/O Products -- WARNING - This e-mail or its attachments may contain controlled technical data or controlled technology within the definition of the International Traffic in Arms Regulations (ITAR) or Export Administration Regulations (EAR), and are subject to the export control laws of the U.S. Government. Transfer of this data or technology by any means to a foreign person, whether in the United States or abroad, without an export license or other approval from the U.S. Government, is prohibited. The information contained in this document is CONFIDENTIAL and property of ACCES I/O Products, Inc. Any unauthorized review, use, disclosure or distribution is prohibited without express written consent of ACCES I/O Products, Inc. If you are not the intended recipient, please contact the sender and destroy all copies of the original message and enclosed attachments. -------------- next part -------------- An HTML attachment was scrubbed... URL: From tim at wescottdesign.com Sat Apr 25 01:54:39 2015 From: tim at wescottdesign.com (Tim Wescott) Date: Fri, 24 Apr 2015 16:54:39 -0700 Subject: [Scilab-users] Envelop of a noisy curve In-Reply-To: <553A937B.30302@free.fr> References: <686551709.343172453.1429877101583.JavaMail.root@zimbra5-e1.priv.proxad.net> <553A937B.30302@free.fr> Message-ID: <1429919679.2192.313.camel@servo> Heh. This is much better than my suggested method, both in speed and in resulting in a well-defined envelope. I'll have to remember it. On Fri, 2015-04-24 at 21:03 +0200, Samuel Gougeon wrote: > Hello, > Le 24/04/2015 14:05, paul.carrico at free.fr a ?crit : > > > Dear All, > > > > I am absolutly not familiar with "signal processing" field, so my question is probably na?ve: how can I proceed to get the envelop curve (maximum values) of a non periodic noisy signal ? > Here is an example and its result: > x = linspace(0,20,300); > y = exp((2-x)/5).*sin(x)+rand(x); > > clf > plot2d(x,y) > e = gce(); > e = e.children; > e.foreground = color("grey80"); > > d = diff(y) ./ diff(x); > pmax = find(d(1:$-1)>=0 & d(2:$)<0)+1; > pmin = find(d(1:$-1)<0 & d(2:$)>0)+1; > // edges corrections > if d(1)<0 then > pmax = [1 pmax] > end > if d($)<0 then > pmin = [pmin length(y)] > end > // > plot(x(pmax),y(pmax),"r",x(pmin),y(pmin),"b") > > Zooming on that shows in some places the limits of this naive > approach, to be refine. > > Regards > Samuel > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users -- Tim Wescott www.wescottdesign.com Control & Communications systems, circuit & software design. Phone: 503.631.7815 Cell: 503.349.8432 From paul.carrico at free.fr Mon Apr 27 08:27:02 2015 From: paul.carrico at free.fr (paul.carrico at free.fr) Date: Mon, 27 Apr 2015 08:27:02 +0200 (CEST) Subject: [Scilab-users] =?utf-8?q?Re=C2=A0=3A_Re=3A__Envelop_of_a_noisy_cu?= =?utf-8?q?rve?= In-Reply-To: <553A937B.30302@free.fr> Message-ID: <1145909064.352381239.1430116022234.JavaMail.root@zimbra5-e1.priv.proxad.net> Dear Thanks everybody for the suggestions that (even it can be used as it stands) have been a great source of inspiration to fix my issue. Regards Paul ----- Mail d'origine ----- De: Samuel Gougeon ?: International users mailing list for Scilab. Envoy?: Fri, 24 Apr 2015 21:03:23 +0200 (CEST) Objet: Re: [Scilab-users] Envelop of a noisy curve Hello, Le 24/04/2015 14:05, paul.carrico at free.fr a ?crit : > Dear All, > > I am absolutly not familiar with "signal processing" field, so my question is probably na?ve: how can I proceed to get the envelop curve (maximum values) of a non periodic noisy signal ? Here is an example and its result: x = linspace(0,20,300); y = exp((2-x)/5).*sin(x)+rand(x); clf plot2d(x,y) e = gce(); e = e.children; e.foreground = color("grey80"); d = diff(y) ./ diff(x); pmax = find(d(1:$-1)>=0 & d(2:$)<0)+1; pmin = find(d(1:$-1)<0 & d(2:$)>0)+1; // edges corrections if d(1)<0 then pmax = [1 pmax] end if d($)<0 then pmin = [pmin length(y)] end // plot(x(pmax),y(pmax),"r",x(pmin),y(pmin),"b") Zooming on that shows in some places the limits of this naive approach, to be refine. Regards Samuel From jrafaelbguerra at hotmail.com Mon Apr 27 13:15:43 2015 From: jrafaelbguerra at hotmail.com (Rafael Guerra) Date: Mon, 27 Apr 2015 04:15:43 -0700 (MST) Subject: [Scilab-users] Envelop of a noisy curve In-Reply-To: <686551709.343172453.1429877101583.JavaMail.root@zimbra5-e1.priv.proxad.net> References: <686551709.343172453.1429877101583.JavaMail.root@zimbra5-e1.priv.proxad.net> Message-ID: <1430133343295-4032163.post@n3.nabble.com> Hello,Samuel?s ingenious method may need to be complemented with band pass filtering pre-processing.In the modified example below, the signal is the low frequency component and the noise the high frequency (need to run script twice answering N and Y).Other situations may arise in practice and computing the envelope does not seem trivial.// Code adapted from Samuel Gougeon?s// Run this script first with no filter (input=N) and then with filter (=Y) clear;Ns= 1001;x = linspace(0,10,Ns);y = exp((-x)/5).*sin(2*x.*x);y = y + 0.1*max(y)*rand(x)// Simple low-pass filter, to be improved with better implementationfc=1e-3; n=5; //Low-cut fc, order=2*n (adapt parms to given signal&noise)[h,hm,fr]=wfir("lp",2*n,fc,"hm",[])y0=convol(h,y);y0=y0(n+1:Ns+n);y0=y0*max(y)/max(y0); // normalize filter outputclf;plot2d(x,y)e = gce(); e = e.children;e.foreground = color("grey");plot(x,y0,'black')str=input("Envelope from filtered signal Y/[N]?",'string')if str=='y'| str=='Y' then y=y0; endd = diff(y) ./ diff(x);pmax = find(d(1:$-1)>=0 & d(2:$)<0)+1;pmin = find(d(1:$-1)<0 & d(2:$)>0)+1;// edges correctionsif d(1)<0 then pmax = [1 pmax]; endif d($)<0 then pmin = [pmin length(y)]; endplot(x(pmax),y(pmax),"r",x(pmin),y(pmin),"b")Regards,Rafael -- View this message in context: http://mailinglists.scilab.org/Scilab-users-Envelop-of-a-noisy-curve-tp4032140p4032163.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. -------------- next part -------------- An HTML attachment was scrubbed... URL: From g.miesowicz at gmail.com Tue Apr 28 12:25:26 2015 From: g.miesowicz at gmail.com (grzesiek) Date: Tue, 28 Apr 2015 03:25:26 -0700 (MST) Subject: [Scilab-users] [SOCIS] Automatic layout in Xcos Message-ID: <1430216726632-4032170.post@n3.nabble.com> Hi, I'm Grzegorz. I would like to participate in SOCIS 2015 for Scilab. I'm highly interested in project concerning Automatic layout in Xcos. I found in this forum, that somebody have already asked about this project. Has it already taken or may I apply for it and send a proposal in the coming days? Regards, Grzegorz -- View this message in context: http://mailinglists.scilab.org/SOCIS-Automatic-layout-in-Xcos-tp4032170.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From skiba.g at gmail.com Tue Apr 28 14:00:16 2015 From: skiba.g at gmail.com (Grzegorz Skiba) Date: Tue, 28 Apr 2015 14:00:16 +0200 Subject: [Scilab-users] [SOCIS] Automatic layout in Xcos In-Reply-To: <1430216726632-4032170.post@n3.nabble.com> References: <1430216726632-4032170.post@n3.nabble.com> Message-ID: Hi Grzegorz, feel free to take this project. It was just a question about future releases and improvment plans. Regards Grzegorz 2015-04-28 12:25 GMT+02:00 grzesiek : > Hi, I'm Grzegorz. I would like to participate in SOCIS 2015 for Scilab. I'm > highly interested in project concerning Automatic layout in Xcos. I found > in > this forum, that somebody have already asked about this project. Has it > already taken or may I apply for it and send a proposal in the coming days? > Regards, > Grzegorz > > > > -- > View this message in context: > http://mailinglists.scilab.org/SOCIS-Automatic-layout-in-Xcos-tp4032170.html > Sent from the Scilab users - Mailing Lists Archives mailing list archive > at Nabble.com. > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > -------------- next part -------------- An HTML attachment was scrubbed... URL: From vincent.couvert at scilab-enterprises.com Tue Apr 28 14:34:29 2015 From: vincent.couvert at scilab-enterprises.com (Vincent COUVERT) Date: Tue, 28 Apr 2015 14:34:29 +0200 Subject: [Scilab-users] [SOCIS] Automatic layout in Xcos In-Reply-To: References: <1430216726632-4032170.post@n3.nabble.com> Message-ID: <553F7E55.8050606@scilab-enterprises.com> Hello, This project has already been taken for GSOC (announced yesterday evening) so it is no more available. Regards. On 04/28/2015 02:00 PM, Grzegorz Skiba wrote: > Hi Grzegorz, > > feel free to take this project. It was just a question about future > releases and improvment plans. > > Regards Grzegorz > > 2015-04-28 12:25 GMT+02:00 grzesiek >: > > Hi, I'm Grzegorz. I would like to participate in SOCIS 2015 for > Scilab. I'm > highly interested in project concerning Automatic layout in Xcos. > I found in > this forum, that somebody have already asked about this project. > Has it > already taken or may I apply for it and send a proposal in the > coming days? > Regards, > Grzegorz > > > > -- > View this message in context: > http://mailinglists.scilab.org/SOCIS-Automatic-layout-in-Xcos-tp4032170.html > Sent from the Scilab users - Mailing Lists Archives mailing list > archive at Nabble.com. > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > > > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users -------------- next part -------------- An HTML attachment was scrubbed... URL: From vincent.couvert at scilab-enterprises.com Tue Apr 28 14:35:51 2015 From: vincent.couvert at scilab-enterprises.com (Vincent COUVERT) Date: Tue, 28 Apr 2015 14:35:51 +0200 Subject: [Scilab-users] Curious about 24 character limitation in Scilab 5/ 6 In-Reply-To: <553AB6AB.1020701@accesio.com> References: <553AB6AB.1020701@accesio.com> Message-ID: <553F7EA7.5090104@scilab-enterprises.com> Hello, This limitation will not be fixed in the 5.x family but is already fixed in the YaSp (future Scilab 6) branch: http://www.scilab.org/en/development/nightly_builds/yasp Regards. On 04/24/2015 11:33 PM, Jimi Damon wrote: > Hello, > > I am new to Scilab but have a lot of experience with Matlab / Octave > and a number of other languages. I have been gradually adding new > languages ( using Swig ) to support the C based APIs that configure > our company's data acquisition products and these have been successful > for a large number of languages : perl, php, octave, matlab, > java..etc. Ideally, I would really like to add Scilab support and my > company's hardware to the list of devices that support Scilab I > recently ran into a problem while trying to port this to Scilab and > that is caused by the this 24 character limitation that Scilab imposes > for variable and function names. > > I tried doing some background reading about this topic and I was left > with just too many things to explore so I figured I would just ask a > quick question on this message board to see what the status is on this > limitation. > > My questions are: > > 1. Is it true that this is something that is going to be fixed ? > > 2. Is it going to be fixed before a Scilab 6 has been released ? > > 3. Is there any guess as to when this might occur either in Scilab 5 > or 6 ? > > I'm debating whether to just wait this one out, but then on the side I > am considering using more of a Comedi based approach to solving this > problem. At this moment there is no way to get around the fact that > some of our API functions and variables are greater than 24 characters > in length so recoding our API is not an option. In such a case we > just wouldn't support Scilab. > > Thanks for any information you might have, > > -Jimi > > > -- > Jimi Damon > Linux Engineer > ACCES I/O Products > > > WARNING - This e-mail or its attachments may contain controlled > technical data or controlled technology within the definition of the > International Traffic in Arms Regulations (ITAR) or Export > Administration Regulations (EAR), and are subject to the export > control laws of the U.S. Government. Transfer of this data or > technology by any means to a foreign person, whether in the United > States or abroad, without an export license or other approval from the > U.S. Government, is prohibited. The information contained in this > document is CONFIDENTIAL and property of ACCES I/O Products, Inc. Any > unauthorized review, use, disclosure or distribution is prohibited > without express written consent of ACCES I/O Products, Inc. If you are > not the intended recipient, please contact the sender and destroy all > copies of the original message and enclosed attachments. > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users -------------- next part -------------- An HTML attachment was scrubbed... URL: From sgougeon at free.fr Wed Apr 29 22:19:35 2015 From: sgougeon at free.fr (Samuel Gougeon) Date: Wed, 29 Apr 2015 22:19:35 +0200 Subject: [Scilab-users] Outputting a "continuous" sound with Scilab In-Reply-To: <553A53AE.9070809@laas.fr> References: <553A53AE.9070809@laas.fr> Message-ID: <55413CD7.10506@free.fr> Hello Antoine, Le 24/04/2015 16:31, Antoine Monmayrant a ?crit : > Hi everyone, > > I'm trying to use Scilab to generate a soundwave with a given > frequency and output it continuously. > Basically, I'd like to get a simple "software-based" function > generator: a slider to set the frequency and the sound being played > continuously in the background. > Is this possible in Scilab? > I'm fine with the gui & callback part, but for sound output 'playsnd' > and 'sound' do not seem to be able to loop over a given sample without > any gap. > > Any suggestion or alternative software I could use? If you are successful in installing Python 2.7 and NumPy, you may try using the PIMS module and execute the following code with pyEvalStr(..): import audiere d = audiere.open_device() t = d.create_tone(17000) # 17 KHz t.play() # non-blocking call import time time.sleep(5) t.stop() This Python's code is taken from http://stackoverflow.com/questions/974071/python-library-for-playing-fixed-frequency-sound#answers-header May i guess (i do not know Python's language) that the time.sleep(..) instruction may be dropped in order to get a continuous sound, lasting as long as t.stop() is not called. It can be called only after other Scilab instructions and callbacks and so on. For my part, i did not succeed in installing NumPy on my win7_x64 (The well installed Python 2.7 is not detected by NumPy installer). PIMS is well loaded, but then i get an error when executing the pyEvalStr() example. Have nice trials Regards Samuel -------------- next part -------------- An HTML attachment was scrubbed... URL: From sgougeon at free.fr Wed Apr 29 22:35:34 2015 From: sgougeon at free.fr (Samuel Gougeon) Date: Wed, 29 Apr 2015 22:35:34 +0200 Subject: [Scilab-users] Outputting a "continuous" sound with Scilab In-Reply-To: <55413CD7.10506@free.fr> References: <553A53AE.9070809@laas.fr> <55413CD7.10506@free.fr> Message-ID: <55414096.9040001@free.fr> Le 29/04/2015 22:19, Samuel Gougeon a ?crit : > Hello Antoine, > > Le 24/04/2015 16:31, Antoine Monmayrant a ?crit : >> Hi everyone, >> >> I'm trying to use Scilab to generate a soundwave with a given >> frequency and output it continuously. .../... >> > If you are successful in installing Python 2.7 and NumPy, you may try > using the PIMS module and execute the following code with pyEvalStr(..): > import audiere > d = audiere.open_device() > t = d.create_tone(17000) # 17 KHz > t.play() # non-blocking call > import time > time.sleep(5) > t.stop() May i add that i did not succeed finding any *Java* code able to trig such a sound emission in a non modal (non blocking) way. Yet, it would be better to use JIMS rather than PIMS, since a) JIMS is supported by Mac OS X, whereas PIMS is supported "only" on Windows and Linux b) JIMS does not require installing an external library as Python and Numpy. You may also dig this way! Java developpers may provide interesting hints. Samuel -------------- next part -------------- An HTML attachment was scrubbed... URL: From nahidulislam8 at gmail.com Tue Apr 28 09:54:07 2015 From: nahidulislam8 at gmail.com (sabuzgreen) Date: Tue, 28 Apr 2015 00:54:07 -0700 (MST) Subject: [Scilab-users] Finite element method in scilab Message-ID: <1430207647333-4032167.post@n3.nabble.com> I have some questions regarding your software. I am using software to do the finite element analysis method. For doing the finite element method i have to do the rectangular mesh. I have seen that i have to use some additional tools for doing finite element method. It would be very helpful if you give me any suggestion to do the finite element method with scilab. Any suggestions regarding finite element method would be helpful. I admire all of your attention. -- View this message in context: http://mailinglists.scilab.org/Finite-element-method-in-scilab-tp4032167.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From dagmar.vandriessche at student.kuleuven.be Wed Apr 29 13:12:55 2015 From: dagmar.vandriessche at student.kuleuven.be (Dagmar Van Driessche) Date: Wed, 29 Apr 2015 11:12:55 +0000 Subject: [Scilab-users] Subplot Background color Message-ID: <46F02DAAD747BD4C9B4A57F01404A4024F54EE10@ICTS-S-MBX15.luna.kuleuven.be> Hello, I am currently working on a project and I want to subplot 4 plots. However these subplots all have different background colors (some are grey, others are white). Is there a way for me to automatically program the background color of each subplot? And is it possible to automatically maximize the frame of this figure? Thanks, Dagmar -------------- next part -------------- An HTML attachment was scrubbed... URL: From nahidulislam8 at gmail.com Wed Apr 29 13:41:49 2015 From: nahidulislam8 at gmail.com (MD NAHIDUL ISLAM) Date: Wed, 29 Apr 2015 13:41:49 +0200 Subject: [Scilab-users] Help regarding Finite Element Method_Scilab Message-ID: Dear Concern, I want to do finite element method with scilab. I want to analyze some structure with FEM. Here I attached one example structure. Can you guys give me hint like How can interpret this structure, I mean I have to draw this structure and do the rectangular mesh. And then I will apply the load further I will draw the displacement in x and y axis. This structure is held by four suspensions. I want to apply the force at the bottom border. I am not asking for details just which way I will follow and do the FEM, or Do I need any others tools in scilab. Help me out guys. Do I need to install the earlier version for tools? I admire all of your attention. I look forward to hear back from you soon. Kindly Regards, Nahid -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: F1B.PNG Type: image/png Size: 8982 bytes Desc: not available URL: From paul.bignier at scilab-enterprises.com Thu Apr 30 12:10:09 2015 From: paul.bignier at scilab-enterprises.com (Paul Bignier) Date: Thu, 30 Apr 2015 12:10:09 +0200 Subject: [Scilab-users] Help regarding Finite Element Method_Scilab In-Reply-To: References: Message-ID: <5541FF81.4050407@scilab-enterprises.com> Hello Nahid, Please have a look at Scilab's Finite elements wiki page which should give you some insight on the tools available on ATOMS. Regards, Paul On 04/29/2015 01:41 PM, MD NAHIDUL ISLAM wrote: > > Dear Concern, > > I want to do finite element method with scilab. I want to analyze some > structure with FEM. Here I attached one example structure. Can you > guys give me hint like How can interpret this structure, I mean I have > to draw this structure and do the rectangular mesh. And then I will > apply the load further I will draw the displacement in x and y axis. > > This structure is held by four suspensions. I want to apply the force > at the bottom border. > > I am not asking for details just which way I will follow and do the > FEM, or Do I need any others tools in scilab. Help me out guys. Do I > need to install the earlier version for tools? I admire all of your > attention. I look forward to hear back from you soon. > > Kindly Regards, > Nahid > > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users -- Paul BIGNIER Development engineer ----------------------------------------------------------- Scilab Enterprises 143bis rue Yves Le Coz - 78000 Versailles, France Phone: +33.1.80.77.04.69 http://www.scilab-enterprises.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From Christophe.Dang at sidel.com Thu Apr 30 14:10:02 2015 From: Christophe.Dang at sidel.com (Dang, Christophe) Date: Thu, 30 Apr 2015 12:10:02 +0000 Subject: [Scilab-users] Subplot Background color In-Reply-To: <46F02DAAD747BD4C9B4A57F01404A4024F54EE10@ICTS-S-MBX15.luna.kuleuven.be> References: <46F02DAAD747BD4C9B4A57F01404A4024F54EE10@ICTS-S-MBX15.luna.kuleuven.be> Message-ID: Hello, > De : Dagmar Van Driessche > Envoy? : mercredi 29 avril 2015 13:13 > > I am currently working on a project and I want to subplot 4 plots. > However these subplots all have different background colors You can do something like that : -------------------- h = gcf(); // get the figure's handle h1 = h.children(1); // get the handle on the 1st figure h2 = h.children(2); // get the handle on the 2nd figure ... h1.background = 1; // set the color -------------------- For the colours themselves, you may have a look at http://help.scilab.org/docs/5.5.2/en_US/colormap.html Hope this helps -- Christophe Dang Ngoc Chan Mechanical calculation engineer This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error), please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden. From Christophe.Dang at sidel.com Thu Apr 30 14:44:07 2015 From: Christophe.Dang at sidel.com (Dang, Christophe) Date: Thu, 30 Apr 2015 12:44:07 +0000 Subject: [Scilab-users] Subplot Background color In-Reply-To: References: <46F02DAAD747BD4C9B4A57F01404A4024F54EE10@ICTS-S-MBX15.luna.kuleuven.be> Message-ID: > De Dang, Christophe > Envoy? : jeudi 30 avril 2015 14:10 > > You can do something like that : [...] Another convenient way: -------------------- subplot(2, 2, 1); h1 = gca(); plot(x, y) h1.background = 1; -------------------- HTH, regards -- Christophe Dang Ngoc Chan Mechanical calculation engineer This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error), please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden. From communication at scilab-enterprises.com Thu Apr 30 15:05:56 2015 From: communication at scilab-enterprises.com (Scilab Communications) Date: Thu, 30 Apr 2015 15:05:56 +0200 Subject: [Scilab-users] ScilabTEC goes free Message-ID: <554228B4.1000106@scilab-enterprises.com> Dear Scilab Users, Thanks to the hospitality of Mozilla Corporation, ScilabTEC 2015 becomes free of charge and open to anyone (with registration and limited to available seats). Thus, ScilabTEC 2015 will take place at Mozilla, 16 bis boulevard Montmartre, 75009 Paris (FR). Register ASAP here and before May 15, to book your seat and join us on May 21 and 22 at Mozilla to discover innovative applications based on Scilab. Program is unchanged, consult it online Best Regards -- Communication Department, Scilab Enterprises 143bis rue Yves Le Coz - 78000 Versailles (France) http://www.scilab-enterprises.com - http://www.scilab.org -------------- next part -------------- An HTML attachment was scrubbed... URL: