Re: [Scilab-users] Running an .sce from the command line.

2016-04-01 Thread aweeks
Hi, I don't know if this will be any help to you in this particular case but it may be of some interest. I was using Scilab to control some hardware and receive and display data coming back. The data was displayed in a graphics window and I then had to enter some commands to the Scilab consol

Re: [Scilab-users] Ways to speed up simple things in Scilab ?

2015-04-24 Thread aweeks
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

Re: [Scilab-users] Scilab and Matlab integer representation

2014-08-05 Thread aweeks
Hi Mehran, I can't give you any explanation (and I've never really questioned these points myself) but you may find some sections of these documents interesting or useful. They both mention integer value ranges. www.scilab.org/content/download/247/1702/file/introscilab.pdf

Re: [Scilab-users] Multiple files of functions with the same name

2014-07-14 Thread aweeks
Scilab-users] Multiple files of functions with the same name Sent by:"users" @aweeks I thought of that too. As documented, you should be able to get the list of loaded functio

Re: [Scilab-users] Multiple files of functions with the same name

2014-07-10 Thread aweeks
Hi "Llelan D.", In your text below, see the line marked in red. Would 'listfunctions()' before and after the 'exec' do what you need? (Apologies if that is too naive). Adrian. Adrian Weeks Development Engineer

Re: [Scilab-users] user terminate program (exit while loop)

2014-06-27 Thread aweeks
Hi Pascal, Further to my previous e-mail, I tested a few ideas. If you add a print statement to the StopLoop function you can see what values come back as the mouse is moved. function StopLoop(win, x, y, ibut) global stoploop; mprintf(" win: %d x: %d y: %d ibut: %d\n", win, x, y, ibut

Re: [Scilab-users] user terminate program (exit while loop)

2014-06-27 Thread aweeks
Hi Pascal, I've wanted to do this too. You might like to look at link http://compgroups.net/comp.soft-sys.math.scilab/non-blocking-keyboard-input/2083213 which is very similar to Samuel Gougeon's suggestion. Samuel says his proposal is untested but I use this method and it works for me. I've pas

[Scilab-users] SciLab: possible bug in graphics.

2014-06-13 Thread aweeks
Hi Everyone, One of my programs has a 'terminal' where incoming text is shown. I've done this by writing text to a graphics figure. The text is stored as a global vector ('displaytext') consisting of lines (strings) which are written to the figure by means of the handle to the text entity (tex

Re: [Scilab-users] Solving linear simultaneous equations

2014-03-19 Thread aweeks
Hi Paul, I have a suggestion but also a more general observation. I have also been solving simultaneous linear equations of the form A * x = b. My first thought was to use the method: x = A \ b and it seemed to me that if Tunji's equations are well-behaved then this may be the easiest

Re: [Scilab-users] scilab got stuck

2014-03-12 Thread aweeks
SciLab did not get stuck on my PC but I did get this error message: -->figure(1);plot2d("n1", [1:2], [%nan; 1]+%eps); !--error 116 Wrong value for argument 1. and a blank, dark grey plot window. I'm using Windows XP (SP3) and SciLab 5.4.0 Adri

Re: [Scilab-users] Linking DLL from MS Visual C++ to SciLab.

2014-02-23 Thread aweeks
Thanks Chuox, I'll try that and see what happens. Adrian Weeks Development Engineer HID Global,

[Scilab-users] Linking DLL from MS Visual C++ to SciLab.

2014-02-21 Thread aweeks
Hello All, I can create a DLL using Microsoft Visual C++ and I can link to the exported functions in SciLab using 'link' and then call them using 'call'. If I understand correctly, the exported functions have to return void and pass values through the argument list pointers. I have a third-party

[Scilab-users] Switching windows 'focus' in SciLab.

2014-02-21 Thread aweeks
Hello All, I have SciLab set up with a docked SciNotes and console. Calling 'plot', in the SciLab script, creates a separate graphics window which has the 'windows focus' on it. Is there a way, within the running SciLab script, to switch the focus back onto the console (specifically for keyboard