From Christophe.Dang at sidel.com Mon Sep 1 09:23:17 2014 From: Christophe.Dang at sidel.com (Dang, Christophe) Date: Mon, 1 Sep 2014 09:23:17 +0200 Subject: [Scilab-users] Pairwise distance of a huge amount of points In-Reply-To: References: <3B5FFC67498DFF49AE7271A584867D16F40BB4FA68@301EX00100.sidel.com> <53FFA61C.4040905@free.fr> <3B5FFC67498DFF49AE7271A584867D16F40BB4FC7E@301EX00100.sidel.com> <3B5FFC67498DFF49AE7271A584867D16F40BB4FE3B@301EX00100.sidel.com> Message-ID: <3B5FFC67498DFF49AE7271A584867D16F40BBDE482@301EX00100.sidel.com> Hello, > De : shorne at energetiq.com > Envoy? : vendredi 29 ao?t 2014 16:38 > > If your goal is to find nearest the N neighbors of a given point, > look up the K-D Tree algorithm This is not the case, but I keep your advice in mind. Tree algorithms are often an elegant and efficient way to solve problems, but are less intuitive to me so I don't thin about them first. More generally speaking, I should keep in mind maybe to ask more general questions (i.e. presenting the problem to be solved instead of a solution used to solve it). In my case, I have coordinates of points of an elastic body obtained by finite elemnts analysis. The absolute elongation should be below a given value (this is imho not a relevant criterion, but that's the way it is), so I compute the difference of pairwise distances and look for the greater one. Anyway, tha,ks for the tip. -- 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 Mon Sep 1 09:24:34 2014 From: Christophe.Dang at sidel.com (Dang, Christophe) Date: Mon, 1 Sep 2014 09:24:34 +0200 Subject: [Scilab-users] Pairwise distance of a huge amount of points In-Reply-To: <5400F5BC.4000901@free.fr> References: <3B5FFC67498DFF49AE7271A584867D16F40BB4FA68@301EX00100.sidel.com> <53FFA61C.4040905@free.fr> <3B5FFC67498DFF49AE7271A584867D16F40BB4FC7E@301EX00100.sidel.com> <5400F5BC.4000901@free.fr> Message-ID: <3B5FFC67498DFF49AE7271A584867D16F40BBDE486@301EX00100.sidel.com> Hello, > De : Samuel Gougeon > Envoy? : vendredi 29 ao?t 2014 23:51 > > Actually the algo in members() defines and runs over multiline slices, > that shortens a lot the number of iterations in the explicit loop [...] > but is more complex to implement. Sounds interesting. I'll have a look at it. Thanks. -- 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 matiasb at gmail.com Mon Sep 1 12:08:40 2014 From: matiasb at gmail.com (Matiasb) Date: Mon, 1 Sep 2014 03:08:40 -0700 (PDT) Subject: [Scilab-users] Scilab command line: 'unable to open display' In-Reply-To: <53FB5507.2040905@scilab-enterprises.com> References: <1408526372062-4031071.post@n3.nabble.com> <1408651706918-4031080.post@n3.nabble.com> <53FB5507.2040905@scilab-enterprises.com> Message-ID: Thanks Mark, Vincent, I'm now being able to run scilab as expected. It was more than one thing, so just for future references this is what I did: - Im using SLC6 which unfortunately does not support GLIBC_2.14, so couldn't use the night build. To solve this I went back to an older version of Scilab (5.4 worked well for me) - Then, I had to install some dependencies with the necesary libraries: - sudo yum groupinstall 'X Window System' - sudo yum install libXScrnSaver (which is not optimal because I don't need the graphics... but it works :-)) Cheers and thanks again! Matias On Mon, Aug 25, 2014 at 5:24 PM, Vincent COUVERT-2 [via Scilab / Xcos - Mailing Lists Archives] wrote: > Hello, > > This issue is fixed in Scilab nightly-build versions: > http://www.scilab.org/en/development/nightly_builds/branch55 > > Regards, > > Le 21/08/2014 22:08, x_Mark a ?crit : > > > did you google this? > > `GLIBC_2.14' not found > > > > maybe this helps > > > http://askubuntu.com/questions/421642/libc-so-6-version-glibc-2-14-not-found > > > > > > > > -- > > View this message in context: > http://mailinglists.scilab.org/Scilab-command-line-unable-to-open-display-tp4031071p4031080.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/Scilab-command-line-unable-to-open-display-tp4031071p4031094.html > To unsubscribe from Scilab command line: 'unable to open display', click > here > > . > NAML > > -- View this message in context: http://mailinglists.scilab.org/Scilab-command-line-unable-to-open-display-tp4031071p4031121.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. -------------- next part -------------- An HTML attachment was scrubbed... URL: From ezequielsoule at gmail.com Mon Sep 1 15:36:22 2014 From: ezequielsoule at gmail.com (Ezequiel Soule) Date: Mon, 01 Sep 2014 10:36:22 -0300 Subject: [Scilab-users] Pairwise distance of a huge amount of points In-Reply-To: <5400F841.3050405@free.fr> References: <3B5FFC67498DFF49AE7271A584867D16F40BB4FA68@301EX00100.sidel.com> <53FFA61C.4040905@free.fr> <3B5FFC67498DFF49AE7271A584867D16F40BB4FC7E@301EX00100.sidel.com> <3B5FFC67498DFF49AE7271A584867D16F40BB4FE3B@301EX00100.sidel.com> <5400F841.3050405@free.fr> Message-ID: <54047656.40104@gmail.com> Hi, I am working in something related, which is deteriming overlaps in a sistem of spheres with random positions. So I have to compute the distance between centers of spheres, and compare it with the contact distance. I implemented a cell algorithm, which is used in molecular dynamics (you can look it up in internet if you don?t know it): essentially you divide the space in "cells", with a size that has to be larger than the maximum posible distance, then you identify in which cell each point is located, and then you compute the distance between each point and the points located in the same and the neigbhouring cells. The speed of the algorithm scales with n, and the computed distance matrix has n*c*b non-zero elements, where "c" is the average number of points in a cell and "b" is the number of neiborghs of each cells, plus one. "c*b" might be orders of magnitude smaller than "n" so there is a big advantaje in using sparse matrices. I used this with hundred thousands spheres without exeding the maximum stacksize. The only problem is that you need to know the maximum possible distance in order to define the cell size (if your cell is to small you can miss relevant meassurements, if it is too large, you lose efficiency); I don?t know if this is possible in your application. El 29/08/2014 07:01 p.m., Samuel Gougeon escribi?: > Le 29/08/2014 12:58, Dang, Christophe a ?crit : >> Just to close the subject: >> >> I tried to implement the algorithm with sparse matrices, and it is >> less efficient than scanning over one dimension: 7 times faster than >> the naive algorithm. > Yes, it was somewhat expected. Also for memory consumption, the sparse > encoding becomes interesting vs the dense encoding only when the > sparsity becomes smaller than .. 50%. > There was a quite recent thread on bugzilla, about the relevance of > keeping a sparse encoding for the result of cos(SP) where SP is a > sparse (so with a good fraction of null values). > It was finally -- wisely -- decided (after some tests) to switch to a > dense encoding for that case (as it should be for any function turning > 0 into a non-null value). > > Samuel > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users From mazue.quentin at gmail.com Tue Sep 2 08:45:43 2014 From: mazue.quentin at gmail.com (=?UTF-8?Q?Quentin_Mazu=C3=A9?=) Date: Mon, 1 Sep 2014 23:45:43 -0700 (PDT) Subject: [Scilab-users] Xcos : use of Xcos_compile create an error : undefined variable script2var Message-ID: <1409640343757-4031123.post@n3.nabble.com> Hello, I re-use a previous script that was working a few weeks ago under the same version of Scilab, however now it generates an error. Below the script : importXcosDiagram("Test_1.zcos"); // This line works %cpr = xcos_compile(scs_m); // This line generates an error Below the error message : !--error 4 Undefined variable : script2var at line 50 of function xcos_compile called by : %cpr = xcos_compile(scs_m); I found that script2var is located in "C:\Program Files\scilab-5.5.0\modules\scicos\macros\scicos_scicos". If I load this file manually with the command exec, I have an other error message if I use the command xcos_compile : !--error 4 Undefined variable : do_eval at line 64 of function xcos_compile called by : %cpr = xcos_compile(scs_m); The missing file do_eval is located inside the same directory as script2var. If I had do_eval manually, an other error appear about a missing file and so on. 1) Where does this problem come from? 2) What should I do to fix it? Regards Quentin -- View this message in context: http://mailinglists.scilab.org/Xcos-use-of-Xcos-compile-create-an-error-undefined-variable-script2var-tp4031123.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From Christophe.Dang at sidel.com Tue Sep 2 09:27:09 2014 From: Christophe.Dang at sidel.com (Dang, Christophe) Date: Tue, 2 Sep 2014 09:27:09 +0200 Subject: [Scilab-users] Pairwise distance of a huge amount of points In-Reply-To: <54047656.40104@gmail.com> References: <3B5FFC67498DFF49AE7271A584867D16F40BB4FA68@301EX00100.sidel.com> <53FFA61C.4040905@free.fr> <3B5FFC67498DFF49AE7271A584867D16F40BB4FC7E@301EX00100.sidel.com> <3B5FFC67498DFF49AE7271A584867D16F40BB4FE3B@301EX00100.sidel.com> <5400F841.3050405@free.fr> <54047656.40104@gmail.com> Message-ID: <3B5FFC67498DFF49AE7271A584867D16F40BBDEB68@301EX00100.sidel.com> Hello, > De : Ezequiel Soule > Envoy? : lundi 1 septembre 2014 15:36 > > I implemented a cell algorithm, which is used in molecular dynamics [...] > you divide the space in "cells", with a size that has to be larger than the maximum > posible distance, then you identify in which cell each point is located, > and then you compute the distance between each point and the points located > in the same and the neigbhouring cells. > The speed of the algorithm scales with n, [...] > there is a big advantaje in using sparse matrices. That sounds a nice solution for some cases; I'll keep it in mind. Thanks for the information. -- 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 mazue.quentin at gmail.com Tue Sep 2 16:41:10 2014 From: mazue.quentin at gmail.com (=?UTF-8?Q?Quentin_Mazu=C3=A9?=) Date: Tue, 2 Sep 2014 07:41:10 -0700 (PDT) Subject: [Scilab-users] Xcos : use of Xcos_compile create an error : undefined variable script2var In-Reply-To: <1409640343757-4031123.post@n3.nabble.com> References: <1409640343757-4031123.post@n3.nabble.com> Message-ID: <1409668870746-4031125.post@n3.nabble.com> Hello, I found a way to solve my problem by using the function : loadXcosLibs(). However I still don't know why I need it now. Since the time it was working I didn't change anything except the Aerospace Blockset. I used actually the latest version. Regards Quentin Mazu? -- View this message in context: http://mailinglists.scilab.org/Xcos-use-of-Xcos-compile-create-an-error-undefined-variable-script2var-tp4031123p4031125.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From clement.david at scilab-enterprises.com Tue Sep 2 17:34:35 2014 From: clement.david at scilab-enterprises.com (=?ISO-8859-1?Q?Cl=E9ment?= David) Date: Tue, 02 Sep 2014 17:34:35 +0200 Subject: [Scilab-users] Xcos : use of Xcos_compile create an error : undefined variable script2var In-Reply-To: <1409668870746-4031125.post@n3.nabble.com> References: <1409640343757-4031123.post@n3.nabble.com> <1409668870746-4031125.post@n3.nabble.com> Message-ID: <1409672075.2085.5.camel@naxos> Hello Quentin, Xcos is a dynamic Scilab module which means that the native library (scixcos.dll or libscixcos.so) and the macros are not loaded at Scilab startup. At 'xcos' call, everything set up behind the scene and you can use interface functions and any xcos internal function. As a user, if you want to use xcos functions / macros without calling 'xcos' or without the gui you have to call 'loadXcosLibs' first. help('loadXcosLibs') for an example. Regards, -- Cl?ment Le mardi 02 septembre 2014 ? 07:41 -0700, Quentin Mazu? a ?crit : > Hello, > > I found a way to solve my problem by using the function : loadXcosLibs(). > > However I still don't know why I need it now. Since the time it was working > I didn't change anything except the Aerospace Blockset. I used actually the > latest version. > > Regards > > Quentin Mazu? > > > > -- > View this message in context: http://mailinglists.scilab.org/Xcos-use-of-Xcos-compile-create-an-error-undefined-variable-script2var-tp4031123p4031125.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 tanthiamhuat at yahoo.com Sat Sep 6 04:45:13 2014 From: tanthiamhuat at yahoo.com (tanthiamhuat) Date: Fri, 5 Sep 2014 19:45:13 -0700 (PDT) Subject: [Scilab-users] Stixbox installation from ATOMS failed In-Reply-To: <1405471514324-4030920.post@n3.nabble.com> References: <1405471514324-4030920.post@n3.nabble.com> Message-ID: <1409971513859-4031130.post@n3.nabble.com> Hi all, I realized that the issue is the installation of Scilab on the C: drive, which does not have the access WRITE. I uninstall Scilab, and re-install Scilab on the D: drive, then I can install the Stixbox now. If this is the main issue, maybe Scilab can highlight to users of Scilab on this, so that installation of modules from ATOMS can be smooth-sailing. thanks. -- View this message in context: http://mailinglists.scilab.org/Stixbox-installation-from-ATOMS-failed-tp4030920p4031130.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From tanthiamhuat at yahoo.com Sun Sep 7 06:32:28 2014 From: tanthiamhuat at yahoo.com (tanthiamhuat) Date: Sat, 6 Sep 2014 21:32:28 -0700 (PDT) Subject: [Scilab-users] Refresh plot from Slider Message-ID: <1410064348538-4031131.post@n3.nabble.com> referring to the below weblink http://www.equalis.com/blogpost/731635/Scilab-Tips?tag=guibuilder+graphic+user+interface How do we refresh the plot with the slider? I try to put in the code for the Plot button, but it does not work. see code below, thanks. // This GUI file is generated by guibuilder version 2.2 ////////// f=figure('figure_position',[375,60],'figure_size',[656,604],'auto_resize','on','background',[33],'figure_name','Graphic window number %d'); ////////// delmenu(f.figure_id,gettext('File')) delmenu(f.figure_id,gettext('?')) delmenu(f.figure_id,gettext('Tools')) toolbar(f.figure_id,'off') handles.dummy = 0; handles.sliderAmp=uicontrol(f,'unit','normalized','BackgroundColor',[0.8,0.8,0.8],'Enable','on','FontAngle','normal','FontName','helvetica','FontSize',[12],'FontUnits','points','FontWeight','normal','ForegroundColor',[0,0,0],'HorizontalAlignment','center','ListboxTop',[],'Max',[20],'Min',[0],'Position',[0.0932716,0.8253968,0.23,0.0335714],'Relief','flat','SliderStep',[10,10],'String','1','Style','slider','Value',[10],'VerticalAlignment','middle','Visible','on','Tag','sliderAmp','Callback','sliderAmp_callback(handles)') handles.sliderFreq=uicontrol(f,'unit','normalized','BackgroundColor',[0.8,0.8,0.8],'Enable','on','FontAngle','normal','FontName','helvetica','FontSize',[12],'FontUnits','points','FontWeight','normal','ForegroundColor',[0,0,0],'HorizontalAlignment','center','ListboxTop',[],'Max',[100],'Min',[0],'Position',[0.0932716,0.7097502,0.23,0.0335714],'Relief','flat','SliderStep',[20,20],'String','1','Style','slider','Value',[50],'VerticalAlignment','middle','Visible','on','Tag','sliderFreq','Callback','sliderFreq_callback(handles)') handles.Amp=uicontrol(f,'unit','normalized','BackgroundColor',[0.8,0.8,0.8],'Enable','on','FontAngle','normal','FontName','helvetica','FontSize',[12],'FontUnits','points','FontWeight','normal','ForegroundColor',[0,0,0],'HorizontalAlignment','center','ListboxTop',[],'Max',[100],'Min',[0],'Position',[0.1548765,0.7891473,0.0964815,0.0324031],'Relief','flat','SliderStep',[0.01,0.1],'String','Amplitude','Style','text','Value',[20],'VerticalAlignment','middle','Visible','on','Tag','Amp','Callback','sliderAmp_callback(handles)') handles.Freq=uicontrol(f,'unit','normalized','BackgroundColor',[0.8,0.8,0.8],'Enable','on','FontAngle','normal','FontName','helvetica','FontSize',[12],'FontUnits','points','FontWeight','normal','ForegroundColor',[0,0,0],'HorizontalAlignment','center','ListboxTop',[],'Max',[100],'Min',[0],'Position',[0.1551235,0.6595349,0.1083951,0.0339535],'Relief','flat','SliderStep',[0.01,0.1],'String','Frequency','Style','text','Value',[1],'VerticalAlignment','middle','Visible','on','Tag','Freq','Callback','') handles.pbPlot=uicontrol(f,'unit','normalized','BackgroundColor',[0.6,0.6,0.6],'Enable','on','FontAngle','normal','FontName','helvetica','FontSize',[12],'FontUnits','points','FontWeight','normal','ForegroundColor',[0,0,0],'HorizontalAlignment','center','ListboxTop',[],'Max',[1],'Min',[0],'Position',[0.0932716,0.4604651,0.0952469,0.0403876],'Relief','raised','SliderStep',[0.01,0.1],'String','Plot','Style','pushbutton','Value',[0],'VerticalAlignment','middle','Visible','on','Tag','pbPlot','Callback','pbPlot_callback(handles)') handles.Axes1= newaxes();handles.Axes1.margins = [ 0 0 0 0];handles.Axes1.axes_bounds = [0.3503086,0.0503876,0.5895062,0.5949612]; handles.editTime=uicontrol(f,'unit','normalized','BackgroundColor',[0.8,0.8,0.8],'Enable','on','FontAngle','normal','FontName','helvetica','FontSize',[12],'FontUnits','points','FontWeight','normal','ForegroundColor',[0,0,0],'HorizontalAlignment','center','ListboxTop',[],'Max',[1],'Min',[0],'Position',[0.0932716,0.5829279,0.2114198,0.0447471],'Relief','sunken','SliderStep',[0.01,0.1],'String','0:0.01:10','Style','edit','Value',[0],'VerticalAlignment','middle','Visible','on','Tag','editTime','Callback','') ////////// // Callbacks are defined as below. Please do not delete the comments as it will be used in coming version ////////// function sliderAmp_callback(handles) //Write your callback for slide1 here funcprot(0) amp = get(handles.Amp,'value'); frq = get(handles.Freq,'value'); t= evstr(get(handles.editTime,'String')); y=amp.*sin(2*%pi*frq.*t); plot(t,y); endfunction function sliderFreq_callback(handles) //Write your callback for sliderFreq here endfunction function pbPlot_callback(handles) //Write your callback for pbPlot here funcprot(0) amp = get(handles.Amp,'value'); frq = get(handles.Freq,'value'); t= evstr(get(handles.editTime,'String')); y=amp.*sin(2*%pi*frq.*t); //if ~isempty(handles.Axes1.children) // delete(handles.Axes1.children) //end plot(t,y); xgrid(); endfunction -- View this message in context: http://mailinglists.scilab.org/Refresh-plot-from-Slider-tp4031131.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From tanthiamhuat at yahoo.com Sun Sep 7 10:45:39 2014 From: tanthiamhuat at yahoo.com (tanthiamhuat) Date: Sun, 7 Sep 2014 01:45:39 -0700 (PDT) Subject: [Scilab-users] Scilab version 5.5.0 GUI Builder Message-ID: <1410079539311-4031132.post@n3.nabble.com> https://atoms.scilab.org/toolboxes/guibuilder refer to the above website, why is this still not resolved after such long time? Scilab version 5.5.0 is supposed to have version 3.0 of GUI Builder from ATOMS, but we are getting ver 2.2. also, below issue is not resolved yet. "I have ran into an issue with placing elements. The red outline and the actual preview of the elements do not match up. It makes placing elements difficult." -- View this message in context: http://mailinglists.scilab.org/Scilab-version-5-5-0-GUI-Builder-tp4031132.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From chinluh at tritytech.com Sun Sep 7 08:58:16 2014 From: chinluh at tritytech.com (Tan Chin Luh) Date: Sun, 07 Sep 2014 14:58:16 +0800 Subject: [Scilab-users] Refresh plot from Slider In-Reply-To: <1410064348538-4031131.post@n3.nabble.com> References: <1410064348538-4031131.post@n3.nabble.com> Message-ID: <540C0208.2090209@tritytech.com> Hi, first of all, the handles to the sliders are wrong, you were using the text handles instead of the sliders handles in both pushbutton and slider callback. secondly you need to be careful on the sampling, with 0.01, u could only plot sine wave with < 50 Hz. (nyquist) finally remember to delete the previous plot before redrawing. infact it is not the best way to delete and plot and redraw it everytime especially you want to use the slider to plot the graph, be ready for a lagging effect. hope this helps. rgds, CL On 07-Sep-14 12:32 PM, tanthiamhuat wrote: > referring to the below weblink > http://www.equalis.com/blogpost/731635/Scilab-Tips?tag=guibuilder+graphic+user+interface > > How do we refresh the plot with the slider? I try to put in the code for the > Plot button, but it does not work. > see code below, thanks. > > // This GUI file is generated by guibuilder version 2.2 > ////////// > f=figure('figure_position',[375,60],'figure_size',[656,604],'auto_resize','on','background',[33],'figure_name','Graphic > window number %d'); > ////////// > delmenu(f.figure_id,gettext('File')) > delmenu(f.figure_id,gettext('?')) > delmenu(f.figure_id,gettext('Tools')) > toolbar(f.figure_id,'off') > handles.dummy = 0; > handles.sliderAmp=uicontrol(f,'unit','normalized','BackgroundColor',[0.8,0.8,0.8],'Enable','on','FontAngle','normal','FontName','helvetica','FontSize',[12],'FontUnits','points','FontWeight','normal','ForegroundColor',[0,0,0],'HorizontalAlignment','center','ListboxTop',[],'Max',[20],'Min',[0],'Position',[0.0932716,0.8253968,0.23,0.0335714],'Relief','flat','SliderStep',[10,10],'String','1','Style','slider','Value',[10],'VerticalAlignment','middle','Visible','on','Tag','sliderAmp','Callback','sliderAmp_callback(handles)') > handles.sliderFreq=uicontrol(f,'unit','normalized','BackgroundColor',[0.8,0.8,0.8],'Enable','on','FontAngle','normal','FontName','helvetica','FontSize',[12],'FontUnits','points','FontWeight','normal','ForegroundColor',[0,0,0],'HorizontalAlignment','center','ListboxTop',[],'Max',[100],'Min',[0],'Position',[0.0932716,0.7097502,0.23,0.0335714],'Relief','flat','SliderStep',[20,20],'String','1','Style','slider','Value',[50],'VerticalAlignment','middle','Visible','on','Tag','sliderFreq','Callback','sliderFreq_callback(handles)') > handles.Amp=uicontrol(f,'unit','normalized','BackgroundColor',[0.8,0.8,0.8],'Enable','on','FontAngle','normal','FontName','helvetica','FontSize',[12],'FontUnits','points','FontWeight','normal','ForegroundColor',[0,0,0],'HorizontalAlignment','center','ListboxTop',[],'Max',[100],'Min',[0],'Position',[0.1548765,0.7891473,0.0964815,0.0324031],'Relief','flat','SliderStep',[0.01,0.1],'String','Amplitude','Style','text','Value',[20],'VerticalAlignment','middle','Visible','on','Tag','Amp','Callback','sliderAmp_callback(handles)') > handles.Freq=uicontrol(f,'unit','normalized','BackgroundColor',[0.8,0.8,0.8],'Enable','on','FontAngle','normal','FontName','helvetica','FontSize',[12],'FontUnits','points','FontWeight','normal','ForegroundColor',[0,0,0],'HorizontalAlignment','center','ListboxTop',[],'Max',[100],'Min',[0],'Position',[0.1551235,0.6595349,0.1083951,0.0339535],'Relief','flat','SliderStep',[0.01,0.1],'String','Frequency','Style','text','Value',[1],'VerticalAlignment','middle','Visible','on','Tag','Freq','Callback','') > handles.pbPlot=uicontrol(f,'unit','normalized','BackgroundColor',[0.6,0.6,0.6],'Enable','on','FontAngle','normal','FontName','helvetica','FontSize',[12],'FontUnits','points','FontWeight','normal','ForegroundColor',[0,0,0],'HorizontalAlignment','center','ListboxTop',[],'Max',[1],'Min',[0],'Position',[0.0932716,0.4604651,0.0952469,0.0403876],'Relief','raised','SliderStep',[0.01,0.1],'String','Plot','Style','pushbutton','Value',[0],'VerticalAlignment','middle','Visible','on','Tag','pbPlot','Callback','pbPlot_callback(handles)') > handles.Axes1= newaxes();handles.Axes1.margins = [ 0 0 0 > 0];handles.Axes1.axes_bounds = [0.3503086,0.0503876,0.5895062,0.5949612]; > handles.editTime=uicontrol(f,'unit','normalized','BackgroundColor',[0.8,0.8,0.8],'Enable','on','FontAngle','normal','FontName','helvetica','FontSize',[12],'FontUnits','points','FontWeight','normal','ForegroundColor',[0,0,0],'HorizontalAlignment','center','ListboxTop',[],'Max',[1],'Min',[0],'Position',[0.0932716,0.5829279,0.2114198,0.0447471],'Relief','sunken','SliderStep',[0.01,0.1],'String','0:0.01:10','Style','edit','Value',[0],'VerticalAlignment','middle','Visible','on','Tag','editTime','Callback','') > > > ////////// > // Callbacks are defined as below. Please do not delete the comments as it > will be used in coming version > ////////// > > function sliderAmp_callback(handles) > //Write your callback for slide1 here > funcprot(0) > amp = get(handles.Amp,'value'); > frq = get(handles.Freq,'value'); > t= evstr(get(handles.editTime,'String')); > y=amp.*sin(2*%pi*frq.*t); > plot(t,y); > endfunction > > > function sliderFreq_callback(handles) > //Write your callback for sliderFreq here > > endfunction > > > function pbPlot_callback(handles) > //Write your callback for pbPlot here > funcprot(0) > amp = get(handles.Amp,'value'); > frq = get(handles.Freq,'value'); > t= evstr(get(handles.editTime,'String')); > y=amp.*sin(2*%pi*frq.*t); > //if ~isempty(handles.Axes1.children) > // delete(handles.Axes1.children) > //end > plot(t,y); xgrid(); > endfunction > > > > > > > -- > View this message in context: http://mailinglists.scilab.org/Refresh-plot-from-Slider-tp4031131.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 antoine.monmayrant at laas.fr Mon Sep 8 10:20:26 2014 From: antoine.monmayrant at laas.fr (Antoine Monmayrant) Date: Mon, 08 Sep 2014 10:20:26 +0200 Subject: [Scilab-users] Refresh plot from Slider In-Reply-To: <540C0208.2090209@tritytech.com> References: <1410064348538-4031131.post@n3.nabble.com> <540C0208.2090209@tritytech.com> Message-ID: <540D66CA.1030309@laas.fr> On 09/07/2014 08:58 AM, Tan Chin Luh wrote: > Hi, > > first of all, the handles to the sliders are wrong, you were using the > text handles instead of the sliders handles in both pushbutton and > slider callback. > > secondly you need to be careful on the sampling, with 0.01, u could > only plot sine wave > with < 50 Hz. (nyquist) > > finally remember to delete the previous plot before redrawing. infact > it is not the best way to delete and plot and redraw it everytime > especially you want to use the slider to plot the graph, be ready for > a lagging effect. The fastest option is to modify the data in the plot (and re-zoom if needed) instead of deleting/replotting. Antoine > > hope this helps. > > rgds, > CL > > On 07-Sep-14 12:32 PM, tanthiamhuat wrote: >> referring to the below weblink >> http://www.equalis.com/blogpost/731635/Scilab-Tips?tag=guibuilder+graphic+user+interface >> >> >> How do we refresh the plot with the slider? I try to put in the code >> for the >> Plot button, but it does not work. >> see code below, thanks. >> >> // This GUI file is generated by guibuilder version 2.2 >> ////////// >> f=figure('figure_position',[375,60],'figure_size',[656,604],'auto_resize','on','background',[33],'figure_name','Graphic >> >> window number %d'); >> ////////// >> delmenu(f.figure_id,gettext('File')) >> delmenu(f.figure_id,gettext('?')) >> delmenu(f.figure_id,gettext('Tools')) >> toolbar(f.figure_id,'off') >> handles.dummy = 0; >> handles.sliderAmp=uicontrol(f,'unit','normalized','BackgroundColor',[0.8,0.8,0.8],'Enable','on','FontAngle','normal','FontName','helvetica','FontSize',[12],'FontUnits','points','FontWeight','normal','ForegroundColor',[0,0,0],'HorizontalAlignment','center','ListboxTop',[],'Max',[20],'Min',[0],'Position',[0.0932716,0.8253968,0.23,0.0335714],'Relief','flat','SliderStep',[10,10],'String','1','Style','slider','Value',[10],'VerticalAlignment','middle','Visible','on','Tag','sliderAmp','Callback','sliderAmp_callback(handles)') >> >> handles.sliderFreq=uicontrol(f,'unit','normalized','BackgroundColor',[0.8,0.8,0.8],'Enable','on','FontAngle','normal','FontName','helvetica','FontSize',[12],'FontUnits','points','FontWeight','normal','ForegroundColor',[0,0,0],'HorizontalAlignment','center','ListboxTop',[],'Max',[100],'Min',[0],'Position',[0.0932716,0.7097502,0.23,0.0335714],'Relief','flat','SliderStep',[20,20],'String','1','Style','slider','Value',[50],'VerticalAlignment','middle','Visible','on','Tag','sliderFreq','Callback','sliderFreq_callback(handles)') >> >> handles.Amp=uicontrol(f,'unit','normalized','BackgroundColor',[0.8,0.8,0.8],'Enable','on','FontAngle','normal','FontName','helvetica','FontSize',[12],'FontUnits','points','FontWeight','normal','ForegroundColor',[0,0,0],'HorizontalAlignment','center','ListboxTop',[],'Max',[100],'Min',[0],'Position',[0.1548765,0.7891473,0.0964815,0.0324031],'Relief','flat','SliderStep',[0.01,0.1],'String','Amplitude','Style','text','Value',[20],'VerticalAlignment','middle','Visible','on','Tag','Amp','Callback','sliderAmp_callback(handles)') >> >> handles.Freq=uicontrol(f,'unit','normalized','BackgroundColor',[0.8,0.8,0.8],'Enable','on','FontAngle','normal','FontName','helvetica','FontSize',[12],'FontUnits','points','FontWeight','normal','ForegroundColor',[0,0,0],'HorizontalAlignment','center','ListboxTop',[],'Max',[100],'Min',[0],'Position',[0.1551235,0.6595349,0.1083951,0.0339535],'Relief','flat','SliderStep',[0.01,0.1],'String','Frequency','Style','text','Value',[1],'VerticalAlignment','middle','Visible','on','Tag','Freq','Callback','') >> >> handles.pbPlot=uicontrol(f,'unit','normalized','BackgroundColor',[0.6,0.6,0.6],'Enable','on','FontAngle','normal','FontName','helvetica','FontSize',[12],'FontUnits','points','FontWeight','normal','ForegroundColor',[0,0,0],'HorizontalAlignment','center','ListboxTop',[],'Max',[1],'Min',[0],'Position',[0.0932716,0.4604651,0.0952469,0.0403876],'Relief','raised','SliderStep',[0.01,0.1],'String','Plot','Style','pushbutton','Value',[0],'VerticalAlignment','middle','Visible','on','Tag','pbPlot','Callback','pbPlot_callback(handles)') >> >> handles.Axes1= newaxes();handles.Axes1.margins = [ 0 0 0 >> 0];handles.Axes1.axes_bounds = >> [0.3503086,0.0503876,0.5895062,0.5949612]; >> handles.editTime=uicontrol(f,'unit','normalized','BackgroundColor',[0.8,0.8,0.8],'Enable','on','FontAngle','normal','FontName','helvetica','FontSize',[12],'FontUnits','points','FontWeight','normal','ForegroundColor',[0,0,0],'HorizontalAlignment','center','ListboxTop',[],'Max',[1],'Min',[0],'Position',[0.0932716,0.5829279,0.2114198,0.0447471],'Relief','sunken','SliderStep',[0.01,0.1],'String','0:0.01:10','Style','edit','Value',[0],'VerticalAlignment','middle','Visible','on','Tag','editTime','Callback','') >> >> >> >> ////////// >> // Callbacks are defined as below. Please do not delete the comments >> as it >> will be used in coming version >> ////////// >> >> function sliderAmp_callback(handles) >> //Write your callback for slide1 here >> funcprot(0) >> amp = get(handles.Amp,'value'); >> frq = get(handles.Freq,'value'); >> t= evstr(get(handles.editTime,'String')); >> y=amp.*sin(2*%pi*frq.*t); >> plot(t,y); >> endfunction >> >> >> function sliderFreq_callback(handles) >> //Write your callback for sliderFreq here >> >> endfunction >> >> >> function pbPlot_callback(handles) >> //Write your callback for pbPlot here >> funcprot(0) >> amp = get(handles.Amp,'value'); >> frq = get(handles.Freq,'value'); >> t= evstr(get(handles.editTime,'String')); >> y=amp.*sin(2*%pi*frq.*t); >> //if ~isempty(handles.Axes1.children) >> // delete(handles.Axes1.children) >> //end >> plot(t,y); xgrid(); >> endfunction >> >> >> >> >> >> >> -- >> View this message in context: >> http://mailinglists.scilab.org/Refresh-plot-from-Slider-tp4031131.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 > From chinluh at tritytech.com Mon Sep 8 10:34:22 2014 From: chinluh at tritytech.com (Tan Chin Luh) Date: Mon, 08 Sep 2014 16:34:22 +0800 Subject: [Scilab-users] Refresh plot from Slider In-Reply-To: <540D66CA.1030309@laas.fr> References: <1410064348538-4031131.post@n3.nabble.com> <540C0208.2090209@tritytech.com> <540D66CA.1030309@laas.fr> Message-ID: <540D6A0E.9010203@tritytech.com> Exactly Antoine, thanks for adding on to this. CL On 08-Sep-14 4:20 PM, Antoine Monmayrant wrote: > On 09/07/2014 08:58 AM, Tan Chin Luh wrote: >> Hi, >> >> first of all, the handles to the sliders are wrong, you were using >> the text handles instead of the sliders handles in both pushbutton >> and slider callback. >> >> secondly you need to be careful on the sampling, with 0.01, u could >> only plot sine wave >> with < 50 Hz. (nyquist) >> >> finally remember to delete the previous plot before redrawing. infact >> it is not the best way to delete and plot and redraw it everytime >> especially you want to use the slider to plot the graph, be ready for >> a lagging effect. > The fastest option is to modify the data in the plot (and re-zoom if > needed) instead of deleting/replotting. > > Antoine >> >> hope this helps. >> >> rgds, >> CL >> >> On 07-Sep-14 12:32 PM, tanthiamhuat wrote: >>> referring to the below weblink >>> http://www.equalis.com/blogpost/731635/Scilab-Tips?tag=guibuilder+graphic+user+interface >>> >>> >>> How do we refresh the plot with the slider? I try to put in the code >>> for the >>> Plot button, but it does not work. >>> see code below, thanks. >>> >>> // This GUI file is generated by guibuilder version 2.2 >>> ////////// >>> f=figure('figure_position',[375,60],'figure_size',[656,604],'auto_resize','on','background',[33],'figure_name','Graphic >>> >>> window number %d'); >>> ////////// >>> delmenu(f.figure_id,gettext('File')) >>> delmenu(f.figure_id,gettext('?')) >>> delmenu(f.figure_id,gettext('Tools')) >>> toolbar(f.figure_id,'off') >>> handles.dummy = 0; >>> handles.sliderAmp=uicontrol(f,'unit','normalized','BackgroundColor',[0.8,0.8,0.8],'Enable','on','FontAngle','normal','FontName','helvetica','FontSize',[12],'FontUnits','points','FontWeight','normal','ForegroundColor',[0,0,0],'HorizontalAlignment','center','ListboxTop',[],'Max',[20],'Min',[0],'Position',[0.0932716,0.8253968,0.23,0.0335714],'Relief','flat','SliderStep',[10,10],'String','1','Style','slider','Value',[10],'VerticalAlignment','middle','Visible','on','Tag','sliderAmp','Callback','sliderAmp_callback(handles)') >>> >>> handles.sliderFreq=uicontrol(f,'unit','normalized','BackgroundColor',[0.8,0.8,0.8],'Enable','on','FontAngle','normal','FontName','helvetica','FontSize',[12],'FontUnits','points','FontWeight','normal','ForegroundColor',[0,0,0],'HorizontalAlignment','center','ListboxTop',[],'Max',[100],'Min',[0],'Position',[0.0932716,0.7097502,0.23,0.0335714],'Relief','flat','SliderStep',[20,20],'String','1','Style','slider','Value',[50],'VerticalAlignment','middle','Visible','on','Tag','sliderFreq','Callback','sliderFreq_callback(handles)') >>> >>> handles.Amp=uicontrol(f,'unit','normalized','BackgroundColor',[0.8,0.8,0.8],'Enable','on','FontAngle','normal','FontName','helvetica','FontSize',[12],'FontUnits','points','FontWeight','normal','ForegroundColor',[0,0,0],'HorizontalAlignment','center','ListboxTop',[],'Max',[100],'Min',[0],'Position',[0.1548765,0.7891473,0.0964815,0.0324031],'Relief','flat','SliderStep',[0.01,0.1],'String','Amplitude','Style','text','Value',[20],'VerticalAlignment','middle','Visible','on','Tag','Amp','Callback','sliderAmp_callback(handles)') >>> >>> handles.Freq=uicontrol(f,'unit','normalized','BackgroundColor',[0.8,0.8,0.8],'Enable','on','FontAngle','normal','FontName','helvetica','FontSize',[12],'FontUnits','points','FontWeight','normal','ForegroundColor',[0,0,0],'HorizontalAlignment','center','ListboxTop',[],'Max',[100],'Min',[0],'Position',[0.1551235,0.6595349,0.1083951,0.0339535],'Relief','flat','SliderStep',[0.01,0.1],'String','Frequency','Style','text','Value',[1],'VerticalAlignment','middle','Visible','on','Tag','Freq','Callback','') >>> >>> handles.pbPlot=uicontrol(f,'unit','normalized','BackgroundColor',[0.6,0.6,0.6],'Enable','on','FontAngle','normal','FontName','helvetica','FontSize',[12],'FontUnits','points','FontWeight','normal','ForegroundColor',[0,0,0],'HorizontalAlignment','center','ListboxTop',[],'Max',[1],'Min',[0],'Position',[0.0932716,0.4604651,0.0952469,0.0403876],'Relief','raised','SliderStep',[0.01,0.1],'String','Plot','Style','pushbutton','Value',[0],'VerticalAlignment','middle','Visible','on','Tag','pbPlot','Callback','pbPlot_callback(handles)') >>> >>> handles.Axes1= newaxes();handles.Axes1.margins = [ 0 0 0 >>> 0];handles.Axes1.axes_bounds = >>> [0.3503086,0.0503876,0.5895062,0.5949612]; >>> handles.editTime=uicontrol(f,'unit','normalized','BackgroundColor',[0.8,0.8,0.8],'Enable','on','FontAngle','normal','FontName','helvetica','FontSize',[12],'FontUnits','points','FontWeight','normal','ForegroundColor',[0,0,0],'HorizontalAlignment','center','ListboxTop',[],'Max',[1],'Min',[0],'Position',[0.0932716,0.5829279,0.2114198,0.0447471],'Relief','sunken','SliderStep',[0.01,0.1],'String','0:0.01:10','Style','edit','Value',[0],'VerticalAlignment','middle','Visible','on','Tag','editTime','Callback','') >>> >>> >>> >>> ////////// >>> // Callbacks are defined as below. Please do not delete the comments >>> as it >>> will be used in coming version >>> ////////// >>> >>> function sliderAmp_callback(handles) >>> //Write your callback for slide1 here >>> funcprot(0) >>> amp = get(handles.Amp,'value'); >>> frq = get(handles.Freq,'value'); >>> t= evstr(get(handles.editTime,'String')); >>> y=amp.*sin(2*%pi*frq.*t); >>> plot(t,y); >>> endfunction >>> >>> >>> function sliderFreq_callback(handles) >>> //Write your callback for sliderFreq here >>> >>> endfunction >>> >>> >>> function pbPlot_callback(handles) >>> //Write your callback for pbPlot here >>> funcprot(0) >>> amp = get(handles.Amp,'value'); >>> frq = get(handles.Freq,'value'); >>> t= evstr(get(handles.editTime,'String')); >>> y=amp.*sin(2*%pi*frq.*t); >>> //if ~isempty(handles.Axes1.children) >>> // delete(handles.Axes1.children) >>> //end >>> plot(t,y); xgrid(); >>> endfunction >>> >>> >>> >>> >>> >>> >>> -- >>> View this message in context: >>> http://mailinglists.scilab.org/Refresh-plot-from-Slider-tp4031131.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 >> > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > From tanthiamhuat at yahoo.com Wed Sep 10 05:37:04 2014 From: tanthiamhuat at yahoo.com (tanthiamhuat) Date: Tue, 9 Sep 2014 20:37:04 -0700 (PDT) Subject: [Scilab-users] Refresh plot from Slider In-Reply-To: <540C0208.2090209@tritytech.com> References: <1410064348538-4031131.post@n3.nabble.com> <540C0208.2090209@tritytech.com> Message-ID: <1410320224769-4031137.post@n3.nabble.com> Hi CL, thanks for pointing out my mistake of using the text handles. even if I add in the code: if ~isempty(handles.Axes1.children) delete(handles.Axes1.children); I see that the previous plot is not deleted, why? Secondly, is the slider able to display its value when it is slide along? If yes, that would be wonderful. Do we need to add in another text to display the slider value? Below are the full code: // This GUI file is generated by guibuilder version 3.0 ////////// f=figure('figure_position',[564,97],'figure_size',[656,665],'auto_resize','on','background',[33],'figure_name','Graphic window number %d'); ////////// delmenu(f.figure_id,gettext('File')) delmenu(f.figure_id,gettext('?')) delmenu(f.figure_id,gettext('Tools')) toolbar(f.figure_id,'off') handles.dummy = 0; handles.sliderAmp=uicontrol(f,'unit','normalized','BackgroundColor',[-1,-1,-1],'Enable','on','FontAngle','normal','FontName','Tahoma','FontSize',[12],'FontUnits','points','FontWeight','normal','ForegroundColor',[-1,-1,-1],'HorizontalAlignment','left','ListboxTop',[],'Max',[100],'Min',[0],'Position',[0.0984375,0.7583333,0.2421875,0.0583333],'Relief','flat','SliderStep',[10,10],'String','1','Style','slider','Value',[33.45],'VerticalAlignment','middle','Visible','on','Tag','sliderAmp','Callback','sliderAmp_callback(handles)') handles.sliderFreq=uicontrol(f,'unit','normalized','BackgroundColor',[-1,-1,-1],'Enable','on','FontAngle','normal','FontName','Tahoma','FontSize',[12],'FontUnits','points','FontWeight','normal','ForegroundColor',[-1,-1,-1],'HorizontalAlignment','left','ListboxTop',[],'Max',[100],'Min',[0],'Position',[0.0984375,0.5854167,0.2421875,0.0583333],'Relief','default','SliderStep',[0.01,0.1],'String','1','Style','slider','Value',[22.76],'VerticalAlignment','middle','Visible','on','Tag','sliderFreq','Callback','sliderFreq_callback(handles)') handles.editTime=uicontrol(f,'unit','normalized','BackgroundColor',[-1,-1,-1],'Enable','on','FontAngle','normal','FontName','Tahoma','FontSize',[12],'FontUnits','points','FontWeight','normal','ForegroundColor',[-1,-1,-1],'HorizontalAlignment','center','ListboxTop',[],'Max',[1],'Min',[0],'Position',[0.0984375,0.4291667,0.1175,0.0583333],'Relief','default','SliderStep',[0.01,0.1],'String','0:0.9:10','Style','edit','Value',[0],'VerticalAlignment','middle','Visible','on','Tag','editTime','Callback','') handles.pbPlot=uicontrol(f,'unit','normalized','BackgroundColor',[-1,-1,-1],'Enable','on','FontAngle','normal','FontName','Tahoma','FontSize',[12],'FontUnits','points','FontWeight','normal','ForegroundColor',[-1,-1,-1],'HorizontalAlignment','center','ListboxTop',[],'Max',[1],'Min',[0],'Position',[0.0984375,0.2645833,0.1121875,0.0583333],'Relief','default','SliderStep',[0.01,0.1],'String','Plot','Style','pushbutton','Value',[0],'VerticalAlignment','middle','Visible','on','Tag','pbPlot','Callback','pbPlot_callback(handles)') handles.Axes1= newaxes();handles.Axes1.margins = [ 0 0 0 0];handles.Axes1.axes_bounds = [0.415625,0.0770833,0.534375,0.725]; handles.Amp=uicontrol(f,'unit','normalized','BackgroundColor',[-1,-1,-1],'Enable','on','FontAngle','normal','FontName','Tahoma','FontSize',[12],'FontUnits','points','FontWeight','normal','ForegroundColor',[-1,-1,-1],'HorizontalAlignment','left','ListboxTop',[],'Max',[1],'Min',[0],'Position',[0.1653125,0.702766,0.094375,0.0425532],'Relief','default','SliderStep',[0.01,0.1],'String','Amplitude','Style','text','Value',[0],'VerticalAlignment','middle','Visible','on','Tag','Amp','Callback','') ////////// // Callbacks are defined as below. Please do not delete the comments as it will be used in coming version ////////// function sliderAmp_callback(handles) //Write your callback for sliderAmp here endfunction function sliderFreq_callback(handles) //Write your callback for sliderFreq here endfunction function pbPlot_callback(handles) //Write your callback for pbPlot here funcprot(0) amp = get(handles.sliderAmp,'value'); frq = get(handles.sliderFreq,'value'); t= evstr(get(handles.editTime,'String')); y=amp.*sin(2*%pi*frq.*t); if ~isempty(handles.Axes1.children) delete(handles.Axes1.children); plot(t,y); xgrid(); endfunction -- View this message in context: http://mailinglists.scilab.org/Refresh-plot-from-Slider-tp4031131p4031137.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From chinluh at tritytech.com Wed Sep 10 05:49:44 2014 From: chinluh at tritytech.com (Tan Chin Luh) Date: Wed, 10 Sep 2014 11:49:44 +0800 Subject: [Scilab-users] Refresh plot from Slider In-Reply-To: <1410320224769-4031137.post@n3.nabble.com> References: <1410064348538-4031131.post@n3.nabble.com> <540C0208.2090209@tritytech.com> <1410320224769-4031137.post@n3.nabble.com> Message-ID: <540FCA58.7020403@tritytech.com> I see that the previous plot is not deleted, why? --> seems that you miss out the "end" for your if statement Do we need to add in another text to display the slider value? --> as i understand, yes, u need to add a text to display it CL On 10-Sep-14 11:37 AM, tanthiamhuat wrote: > Hi CL, > > thanks for pointing out my mistake of using the text handles. > > even if I add in the code: > if ~isempty(handles.Axes1.children) > delete(handles.Axes1.children); > I see that the previous plot is not deleted, why? > > Secondly, is the slider able to display its value when it is slide along? If > yes, that would be wonderful. > Do we need to add in another text to display the slider value? > > Below are the full code: > > // This GUI file is generated by guibuilder version 3.0 > ////////// > f=figure('figure_position',[564,97],'figure_size',[656,665],'auto_resize','on','background',[33],'figure_name','Graphic > window number %d'); > ////////// > delmenu(f.figure_id,gettext('File')) > delmenu(f.figure_id,gettext('?')) > delmenu(f.figure_id,gettext('Tools')) > toolbar(f.figure_id,'off') > handles.dummy = 0; > handles.sliderAmp=uicontrol(f,'unit','normalized','BackgroundColor',[-1,-1,-1],'Enable','on','FontAngle','normal','FontName','Tahoma','FontSize',[12],'FontUnits','points','FontWeight','normal','ForegroundColor',[-1,-1,-1],'HorizontalAlignment','left','ListboxTop',[],'Max',[100],'Min',[0],'Position',[0.0984375,0.7583333,0.2421875,0.0583333],'Relief','flat','SliderStep',[10,10],'String','1','Style','slider','Value',[33.45],'VerticalAlignment','middle','Visible','on','Tag','sliderAmp','Callback','sliderAmp_callback(handles)') > handles.sliderFreq=uicontrol(f,'unit','normalized','BackgroundColor',[-1,-1,-1],'Enable','on','FontAngle','normal','FontName','Tahoma','FontSize',[12],'FontUnits','points','FontWeight','normal','ForegroundColor',[-1,-1,-1],'HorizontalAlignment','left','ListboxTop',[],'Max',[100],'Min',[0],'Position',[0.0984375,0.5854167,0.2421875,0.0583333],'Relief','default','SliderStep',[0.01,0.1],'String','1','Style','slider','Value',[22.76],'VerticalAlignment','middle','Visible','on','Tag','sliderFreq','Callback','sliderFreq_callback(handles)') > handles.editTime=uicontrol(f,'unit','normalized','BackgroundColor',[-1,-1,-1],'Enable','on','FontAngle','normal','FontName','Tahoma','FontSize',[12],'FontUnits','points','FontWeight','normal','ForegroundColor',[-1,-1,-1],'HorizontalAlignment','center','ListboxTop',[],'Max',[1],'Min',[0],'Position',[0.0984375,0.4291667,0.1175,0.0583333],'Relief','default','SliderStep',[0.01,0.1],'String','0:0.9:10','Style','edit','Value',[0],'VerticalAlignment','middle','Visible','on','Tag','editTime','Callback','') > handles.pbPlot=uicontrol(f,'unit','normalized','BackgroundColor',[-1,-1,-1],'Enable','on','FontAngle','normal','FontName','Tahoma','FontSize',[12],'FontUnits','points','FontWeight','normal','ForegroundColor',[-1,-1,-1],'HorizontalAlignment','center','ListboxTop',[],'Max',[1],'Min',[0],'Position',[0.0984375,0.2645833,0.1121875,0.0583333],'Relief','default','SliderStep',[0.01,0.1],'String','Plot','Style','pushbutton','Value',[0],'VerticalAlignment','middle','Visible','on','Tag','pbPlot','Callback','pbPlot_callback(handles)') > handles.Axes1= newaxes();handles.Axes1.margins = [ 0 0 0 > 0];handles.Axes1.axes_bounds = [0.415625,0.0770833,0.534375,0.725]; > handles.Amp=uicontrol(f,'unit','normalized','BackgroundColor',[-1,-1,-1],'Enable','on','FontAngle','normal','FontName','Tahoma','FontSize',[12],'FontUnits','points','FontWeight','normal','ForegroundColor',[-1,-1,-1],'HorizontalAlignment','left','ListboxTop',[],'Max',[1],'Min',[0],'Position',[0.1653125,0.702766,0.094375,0.0425532],'Relief','default','SliderStep',[0.01,0.1],'String','Amplitude','Style','text','Value',[0],'VerticalAlignment','middle','Visible','on','Tag','Amp','Callback','') > > > ////////// > // Callbacks are defined as below. Please do not delete the comments as it > will be used in coming version > ////////// > > > > function sliderAmp_callback(handles) > //Write your callback for sliderAmp here > > endfunction > > > function sliderFreq_callback(handles) > //Write your callback for sliderFreq here > > endfunction > > > function pbPlot_callback(handles) > //Write your callback for pbPlot here > funcprot(0) > amp = get(handles.sliderAmp,'value'); > frq = get(handles.sliderFreq,'value'); > t= evstr(get(handles.editTime,'String')); > y=amp.*sin(2*%pi*frq.*t); > if ~isempty(handles.Axes1.children) > delete(handles.Axes1.children); > plot(t,y); xgrid(); > endfunction > > > > -- > View this message in context: http://mailinglists.scilab.org/Refresh-plot-from-Slider-tp4031131p4031137.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 tanthiamhuat at yahoo.com Wed Sep 10 13:07:23 2014 From: tanthiamhuat at yahoo.com (tanthiamhuat) Date: Wed, 10 Sep 2014 04:07:23 -0700 (PDT) Subject: [Scilab-users] Refresh plot from Slider In-Reply-To: <540FCA58.7020403@tritytech.com> References: <1410064348538-4031131.post@n3.nabble.com> <540C0208.2090209@tritytech.com> <1410320224769-4031137.post@n3.nabble.com> <540FCA58.7020403@tritytech.com> Message-ID: <1410347243393-4031140.post@n3.nabble.com> it works perfectly now, thanks CL for your help. -- View this message in context: http://mailinglists.scilab.org/Refresh-plot-from-Slider-tp4031131p4031140.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From tanthiamhuat at yahoo.com Wed Sep 10 15:08:56 2014 From: tanthiamhuat at yahoo.com (tanthiamhuat) Date: Wed, 10 Sep 2014 06:08:56 -0700 (PDT) Subject: [Scilab-users] Plotting of Graphs in Windows Vista OS with Scilab 5.5.0 -- are there issues? Message-ID: <1410354536872-4031141.post@n3.nabble.com> are there any issues of using Scilab 5.5.0 in Windows Vista OS, for graphics?for the below code, it gives me a black screen when run in Windows Vista, but in Windows 7, it is perfectly ok.However, when I run the below code in Windows Vista, using Scilab 5.4.1, it is able to display the correct plot. I do not know why plotting using Scilab 5.5.0 has problems, but not in Scilab 5.4.1, when I am using Windows Vista OS.function f=zdt1(x)f1_x1 = x(:,1);g_x2 = 1 + 9 * ((x(:,2)-x(:,1)).^2);h = 1 - sqrt(f1_x1 ./ g_x2); f(:,1) = f1_x1;f(:,2) = g_x2 .* h;endfunctionX_in=rand(1000,2);F_in=zdt1(X_in);[F_out,X_out,Ind_out] = pareto_filter(F_in,X_in)drawlater;plot(F_in(:,1),F_in(:,2),'.r')plot(F_out(:,1),F_out(:,2),'.b')drawnow -- View this message in context: http://mailinglists.scilab.org/Plotting-of-Graphs-in-Windows-Vista-OS-with-Scilab-5-5-0-are-there-issues-tp4031141.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. -------------- next part -------------- An HTML attachment was scrubbed... URL: From tanthiamhuat at yahoo.com Wed Sep 10 16:21:05 2014 From: tanthiamhuat at yahoo.com (tanthiamhuat) Date: Wed, 10 Sep 2014 07:21:05 -0700 (PDT) Subject: [Scilab-users] GUIBuilder Version 3 for Scilab 5.5.0 Message-ID: <1410358865562-4031142.post@n3.nabble.com> can I find out how do I use the Popupmenu? Say I want to have a pull-down list which contains string ONE, TWO, THREE for those 3 rows, how do I populate that? With Version 3 of GUIBuilder, how do we easily create Menu? like handles.menu=uimenu("parent",h2, "label",gettext("About"),"Callback","LHY_About(handles);"); -- View this message in context: http://mailinglists.scilab.org/GUIBuilder-Version-3-for-Scilab-5-5-0-tp4031142.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From tanthiamhuat at yahoo.com Thu Sep 11 09:04:30 2014 From: tanthiamhuat at yahoo.com (tanthiamhuat) Date: Thu, 11 Sep 2014 00:04:30 -0700 (PDT) Subject: [Scilab-users] GUIBuilder Version 3 for Scilab 5.5.0 In-Reply-To: <1410358865562-4031142.post@n3.nabble.com> References: <1410358865562-4031142.post@n3.nabble.com> Message-ID: <1410419070718-4031143.post@n3.nabble.com> can I also check how do we change the Left Top corner of the ICON? -- View this message in context: http://mailinglists.scilab.org/GUIBuilder-Version-3-for-Scilab-5-5-0-tp4031142p4031143.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From iamalive at clear.net.nz Thu Sep 11 20:43:42 2014 From: iamalive at clear.net.nz (Munro) Date: Fri, 12 Sep 2014 06:43:42 +1200 Subject: [Scilab-users] won't run on OSX Message-ID: <40D06C71-6CBC-4B72-A9C2-5D248E6F52C1@clear.net.nz> hi guys i just downloaded and installed scilab-5.5.0-x86_64.dmg on my mac 2.4GHz Intel Core 2 Duo running OSX 10.6.8 it won't run. hangs on load ... icon changed from bird to default java icon, "application not responding" etc tried deleting and re-installing, tried re booting etc any thoughts ? thanks graham in new zealand -------------- next part -------------- An HTML attachment was scrubbed... URL: From noguchi at kje.biglobe.ne.jp Sat Sep 13 17:24:23 2014 From: noguchi at kje.biglobe.ne.jp (Noguchi) Date: Sun, 14 Sep 2014 00:24:23 +0900 Subject: [Scilab-users] XCOS error: "Undefined variable: m" Message-ID: <000f01cfcf66$cc5f1170$651d3450$@kje.biglobe.ne.jp> I am a beginner of Scilab. I am using Scilab 5.5.0 XCOS on windows 8. When I run my XCOS model, I got an error message "Undefined variable: m". I don't use variable m in Context or XCOS models. When I copy the all lines of context in my XCOS model on Scilab console and run the attached XCOS model, it works as I expected. May I ask your help to remove my error message? -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: PI_D_Controller_with_Integral_Process_tuning1.zcos Type: application/octet-stream Size: 12792 bytes Desc: not available URL: From pablo_f_7 at hotmail.com Sun Sep 14 02:29:10 2014 From: pablo_f_7 at hotmail.com (Pablo Fonovich) Date: Sat, 13 Sep 2014 21:29:10 -0300 Subject: [Scilab-users] Xcos code generation, compiling with eclipse for standalone usage Message-ID: Hi: I would like to know if its possible to compile the code generated with xcos with eclipse (or other open-source ide) into an aplication for usage outside of scilab. I've been trying but im not able to do so. If it's possible, is there any tutorial or something? What i really want to do is to use the code generated as a function of another program. -------------- next part -------------- An HTML attachment was scrubbed... URL: From dositheus41 at gmail.com Sun Sep 14 05:53:30 2014 From: dositheus41 at gmail.com (=?UTF-8?Q?Ren=C3=A9_Grognard?=) Date: Sun, 14 Sep 2014 13:53:30 +1000 Subject: [Scilab-users] ATOMS problem Message-ID: Trying to use ATOMS to search and download a new module I get now (it worked before!): * !--error 10000 * *%st_e: Wrong value for input argument #1: not a valid field name.* *at line 39 of function %st_e called by : * *at line 53 of function atomsSetInstalledList called by : * *at line 11 of function atomsGetHomeListboxElts called by : * *at line 227 of function atomsGui called by : * *("atoms") then atomsGui(); else disp(gettext("Please install atomswhile executing a callback* I uninstalled and reinstalled Scilab 5.5.0 to no avail. I even tried again as suggested on the web by installing it directly in C:\ but with the same error. I tried some of the atomsXXX functions and got the message that package "atoms" was not available! What is going on? I used ATOMS a lot in the past few years by just clicking its icon in the tool bar and without any problem. (My PC is a HP ProBook 4730s under Windows 7. --- WIN32) Thanks for any help! Ren? Grognard (Sydney, Australia) -------------- next part -------------- An HTML attachment was scrubbed... URL: From faridafandiyev at gmail.com Sun Sep 14 11:36:13 2014 From: faridafandiyev at gmail.com (Farid Afandiyev) Date: Sun, 14 Sep 2014 13:36:13 +0400 Subject: [Scilab-users] Fwd: Help modeling ODE system In-Reply-To: References: Message-ID: Hello! I'm very new to Scilab and trying to figure out how to model system of ODE but after reading through tutorials I'm still very confused. It looks like this dV1/dt = 0.01V1 - 0.01V2 dV2/dt = -0.01V1 + 0.01V2 V1(0) = 10000 V2(0) = 5000 I want to plot V1 and V2 against time t=[0:10] Any help is greatly appreciated! Kind regards, Farid. -------------- next part -------------- An HTML attachment was scrubbed... URL: From akhorshidi at live.com Sun Sep 14 14:04:40 2014 From: akhorshidi at live.com (A Khorshidi) Date: Sun, 14 Sep 2014 05:04:40 -0700 (PDT) Subject: [Scilab-users] Fwd: Help modeling ODE system In-Reply-To: References: Message-ID: <1410696280391-4031151.post@n3.nabble.com> Farid Afandiyev wrote > It looks like this > dV1/dt = 0.01V1 - 0.01V2 > dV2/dt = -0.01V1 + 0.01V2 > V1(0) = 10000 > V2(0) = 5000 > > I want to plot V1 and V2 against time t=[0:10] Hi; You can use the scheme below to solve system of ODEs in Scilab: // function xdot = modelName(t,x) xdot = f(t,x) // where xdot and x are vectors endfunction x0 = [x1(0) x2(0)... xn(0)]' // a vector of the initial conditions t0 = initialTime // a scalar: initial time tf = finalTime // a scalar: final time t = linspace(t0, tf)// a vector: the times that you want a solution for x = ode(x0,t0,t,modelName); plot(t', [x(1,:); x(2,:); ... x($,:)]') // And to really answer your question: function Vdot=model(t, V) Vdot(1) = 0.01*V(1) - 0.01*V(2) Vdot(2) = -0.01*V(1) + 0.01*V(2) endfunction V0=[10000 5000]'; t0=0; t=0:0.1:10; V = ode(V0,t0,t,model); plot(t', [V(1,:); V(2,:)]') HTH Mehran _ -- View this message in context: http://mailinglists.scilab.org/Scilab-users-Fwd-Help-modeling-ODE-system-tp4031148p4031151.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From faridafandiyev at gmail.com Sun Sep 14 16:54:52 2014 From: faridafandiyev at gmail.com (Farid Afandiyev) Date: Sun, 14 Sep 2014 18:54:52 +0400 Subject: [Scilab-users] Fwd: Help modeling ODE system In-Reply-To: <1410696280391-4031151.post@n3.nabble.com> References: <1410696280391-4031151.post@n3.nabble.com> Message-ID: Thanks Mehran! This is exactly what I want! Kind regards, Farid. On Sun, Sep 14, 2014 at 4:04 PM, A Khorshidi wrote: > Farid Afandiyev wrote > > It looks like this > > dV1/dt = 0.01V1 - 0.01V2 > > dV2/dt = -0.01V1 + 0.01V2 > > V1(0) = 10000 > > V2(0) = 5000 > > > > I want to plot V1 and V2 against time t=[0:10] > > Hi; > > You can use the scheme below to solve system of ODEs in Scilab: > // > function xdot = modelName(t,x) > xdot = f(t,x) // where xdot and x are vectors > endfunction > > x0 = [x1(0) x2(0)... xn(0)]' // a vector of the initial conditions > t0 = initialTime // a scalar: initial time > tf = finalTime // a scalar: final time > t = linspace(t0, tf)// a vector: the times that you want a solution for > > x = ode(x0,t0,t,modelName); > > plot(t', [x(1,:); x(2,:); ... x($,:)]') > // > > And to really answer your question: > > function Vdot=model(t, V) > Vdot(1) = 0.01*V(1) - 0.01*V(2) > Vdot(2) = -0.01*V(1) + 0.01*V(2) > endfunction > V0=[10000 5000]'; > t0=0; > t=0:0.1:10; > V = ode(V0,t0,t,model); > plot(t', [V(1,:); V(2,:)]') > > HTH > Mehran > _ > > > > > -- > View this message in context: > http://mailinglists.scilab.org/Scilab-users-Fwd-Help-modeling-ODE-system-tp4031148p4031151.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 pablo_f_7 at hotmail.com Sun Sep 14 19:27:00 2014 From: pablo_f_7 at hotmail.com (Pablo Fonovich) Date: Sun, 14 Sep 2014 14:27:00 -0300 Subject: [Scilab-users] ATOMS problem In-Reply-To: References: Message-ID: Hi: the problem is when you try to open the atmos gui? have you tried installing an atom's module by commands? for example try: atomsInstall('guimaker') or any other package you are interested in... If it works i think the problem is in your atoms gui. As atoms used to work before... you may also try to restore your previous configuration with: atomsRestoreConfig() Have u modified anything to scilab lately? Date: Sun, 14 Sep 2014 13:53:30 +1000 From: dositheus41 at gmail.com To: users at lists.scilab.org Subject: [Scilab-users] ATOMS problem Trying to use ATOMS to search and download a new module I get now (it worked before!): !--error 10000 %st_e: Wrong value for input argument #1: not a valid field name. at line 39 of function %st_e called by : at line 53 of function atomsSetInstalledList called by : at line 11 of function atomsGetHomeListboxElts called by : at line 227 of function atomsGui called by : ("atoms") then atomsGui(); else disp(gettext("Please install atoms while executing a callback I uninstalled and reinstalled Scilab 5.5.0 to no avail. I even tried again as suggested on the web by installing it directly in C:\ but with the same error. I tried some of the atomsXXX functions and got the message that package "atoms" was not available! What is going on? I used ATOMS a lot in the past few years by just clicking its icon in the tool bar and without any problem. (My PC is a HP ProBook 4730s under Windows 7. --- WIN32) Thanks for any help! Ren? Grognard(Sydney, Australia) _______________________________________________ users mailing list users at lists.scilab.org http://lists.scilab.org/mailman/listinfo/users -------------- next part -------------- An HTML attachment was scrubbed... URL: From pablo_f_7 at hotmail.com Sun Sep 14 19:39:04 2014 From: pablo_f_7 at hotmail.com (Pablo Fonovich) Date: Sun, 14 Sep 2014 14:39:04 -0300 Subject: [Scilab-users] ATOMS problem In-Reply-To: References: Message-ID: Another idea: Can you tell us what is in the directory "/Program Files/scilab-5.5.0/modules/atoms" in your pc? Date: Sun, 14 Sep 2014 13:53:30 +1000 From: dositheus41 at gmail.com To: users at lists.scilab.org Subject: [Scilab-users] ATOMS problem Trying to use ATOMS to search and download a new module I get now (it worked before!): !--error 10000 %st_e: Wrong value for input argument #1: not a valid field name. at line 39 of function %st_e called by : at line 53 of function atomsSetInstalledList called by : at line 11 of function atomsGetHomeListboxElts called by : at line 227 of function atomsGui called by : ("atoms") then atomsGui(); else disp(gettext("Please install atoms while executing a callback I uninstalled and reinstalled Scilab 5.5.0 to no avail. I even tried again as suggested on the web by installing it directly in C:\ but with the same error. I tried some of the atomsXXX functions and got the message that package "atoms" was not available! What is going on? I used ATOMS a lot in the past few years by just clicking its icon in the tool bar and without any problem. (My PC is a HP ProBook 4730s under Windows 7. --- WIN32) Thanks for any help! Ren? Grognard(Sydney, Australia) _______________________________________________ users mailing list users at lists.scilab.org http://lists.scilab.org/mailman/listinfo/users -------------- next part -------------- An HTML attachment was scrubbed... URL: From dositheus41 at gmail.com Mon Sep 15 00:04:55 2014 From: dositheus41 at gmail.com (=?UTF-8?Q?Ren=C3=A9_Grognard?=) Date: Mon, 15 Sep 2014 08:04:55 +1000 Subject: [Scilab-users] ATOMS problem In-Reply-To: References: Message-ID: Thanks for your reply, Pablo. No I didn't change anything in my copy of Scilab. The last time I used *actively* ATOMS was to reload a corrected Matlab-like plotting library which unexpectedly had ceased to be compatible with the graphic module which comes with Scilab. As that compatibility was vital to my projects I reported it and it was soon corrected. So ATOMS was well behaved *that *last time I had to use it. This week-end I just wanted to add maybe an image processor and was *only* trying to find what was available when I noticed that ATOMS didn't work anymore. Yes I tried what you say, even directly inserting one of the examples from Help concerning the atoms package to be on the safe side. Scilab reported that the atoms package was not available and then a catastrophic error occurred. Unfortunately I failed to copy the error message in time. When I tried to exit Scilab instead relaunched itself into a loop repeating that last exit command. I could only terminate it with the Task Manager by ending the tasks faster than they were added to the list of running ones! Not easy winning that race... Given your second e-mail I'll try to reinstall Scilab again and report back to you not trying any new trick: *chat ?chaud? craint l'eau froide!* I fear that it might be related to a recent loadful of Microsoft automatic updates to my copy of Windows 7... Thanks again and greetings from Sydney where Spring is back! Ren?. On Mon, Sep 15, 2014 at 3:39 AM, Pablo Fonovich wrote: > Another idea: Can you tell us what is in the directory "/Program > Files/scilab-5.5.0/modules/atoms" in your pc? > > ------------------------------ > Date: Sun, 14 Sep 2014 13:53:30 +1000 > From: dositheus41 at gmail.com > To: users at lists.scilab.org > Subject: [Scilab-users] ATOMS problem > > Trying to use ATOMS to search and download a new module I get now (it > worked before!): > > * !--error 10000 * > *%st_e: Wrong value for input argument #1: not a valid field name.* > *at line 39 of function %st_e called by : * > *at line 53 of function atomsSetInstalledList called by : * > *at line 11 of function atomsGetHomeListboxElts called by : * > *at line 227 of function atomsGui called by : * > > *("atoms") then atomsGui(); else disp(gettext("Please install atomswhile > executing a callback* > > > I uninstalled and reinstalled Scilab 5.5.0 to no avail. I even tried again > as suggested on the web by installing it directly in C:\ but with the same > error. > > I tried some of the atomsXXX functions and got the message that package > "atoms" was not available! > > What is going on? I used ATOMS a lot in the past few years by just > clicking its icon in the tool bar and without any problem. > > (My PC is a HP ProBook 4730s under Windows 7. --- WIN32) > > Thanks for any help! > > Ren? Grognard > (Sydney, Australia) > > > _______________________________________________ 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 tanthiamhuat at yahoo.com Mon Sep 15 03:40:50 2014 From: tanthiamhuat at yahoo.com (tanthiamhuat) Date: Sun, 14 Sep 2014 18:40:50 -0700 (PDT) Subject: [Scilab-users] ATOMS problem In-Reply-To: References: Message-ID: <1410745250419-4031156.post@n3.nabble.com> if you uninstall your Scilab 5.5.0, and re-install in the directory D:\Program Files\Scilab 5.5.0, and see whether you can overcome the problem? I have similar issues, but when I re-install Scilab in D: Program Files\Scilab 5.5.0, that problem is overcome. I suppose some WRITE issue on the C:\Program Files\Scilab 5.5.0 directory. Let us know the outcome. -- View this message in context: http://mailinglists.scilab.org/Scilab-users-ATOMS-problem-tp4031147p4031156.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From faridafandiyev at gmail.com Sun Sep 14 11:30:54 2014 From: faridafandiyev at gmail.com (Farid Afandiyev) Date: Sun, 14 Sep 2014 13:30:54 +0400 Subject: [Scilab-users] Help modeling ODE system Message-ID: Hello! I'm very new to Scilab and trying to figure out how to model system of ODE but after reading through tutorials I'm still very confused. It looks like this dV1/dt = 0.01V1 - 0.01V2 dV2/dt = -0.01V1 + 0.01V2 V1(0) = 10000 V2(0) = 5000 I want to plot V1 and V2 against time t=[0:10] Any help is greatly appreciated! Kind regards, Farid. -------------- next part -------------- An HTML attachment was scrubbed... URL: From clement.david at scilab-enterprises.com Mon Sep 15 08:37:36 2014 From: clement.david at scilab-enterprises.com (=?ISO-8859-1?Q?Cl=E9ment?= David) Date: Mon, 15 Sep 2014 08:37:36 +0200 Subject: [Scilab-users] Xcos code generation, compiling with eclipse for standalone usage In-Reply-To: References: Message-ID: <1410763056.2088.4.camel@naxos> Hello, For you information, the generated source code need to be linked against Scilab libraries. The Code generator emits the same scheduling as Xcos but does not emit source code for simulation functions (eg. per block). Regards, -- Cl?ment Le samedi 13 septembre 2014 ? 21:29 -0300, Pablo Fonovich a ?crit : > Hi: I would like to know if its possible to compile the code generated > with xcos with eclipse (or other open-source ide) into an aplication > for usage outside of scilab. I've been trying but im not able to do > so. > If it's possible, is there any tutorial or something? > What i really want to do is to use the code generated as a function of > another program. > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users From dositheus41 at gmail.com Mon Sep 15 10:10:01 2014 From: dositheus41 at gmail.com (=?UTF-8?Q?Ren=C3=A9_Grognard?=) Date: Mon, 15 Sep 2014 18:10:01 +1000 Subject: [Scilab-users] ATOMS problem In-Reply-To: References: Message-ID: Hi Pablo, I just downloaded a fresh copy of scilab-5.5.0.exe and installed it with Launch at Finish. This is what I got in reply: *Startup execution:* * loading initial environment* *Start plotlib toolbox 0.45* *Load macros* *Load help* *Warning !!!* *Scilab has found a critical error (EXCEPTION_ACCESS_VIOLATION)* *with "get" function.* *Save your data and restart Scilab.* *Warning !!!* *Scilab has found a critical error (EXCEPTION_ACCESS_VIOLATION)* *with "get" function.* *Save your data and restart Scilab.* Oddly it came with an empty graphic window. Perhaps uninstall Scilab didn't clean enough Scilab remants of previous disastrous sessions. I didn't dare do "exit", rather I clicked the option "x" to get out. Next I'll wipe out all traces of Scilab and reinstall it again. But meanwhile please find attached the atoms directory you requested in Word *,docx and landscape format. Thanks again. Ren?. On Mon, Sep 15, 2014 at 8:04 AM, Ren? Grognard wrote: > Thanks for your reply, Pablo. > > No I didn't change anything in my copy of Scilab. > > The last time I used *actively* ATOMS was to reload a > corrected Matlab-like plotting library which unexpectedly had ceased to be > compatible with the graphic module which comes with Scilab. As that > compatibility was vital to my projects I reported it and it was soon > corrected. So ATOMS was well behaved *that *last time I had to use it. > > This week-end I just wanted to add maybe an image processor and was *only* > trying to find what was available when I noticed that ATOMS didn't work > anymore. > > Yes I tried what you say, even directly inserting one of the examples from > Help concerning the atoms package to be on the safe side. Scilab reported > that the atoms package was not available and then a catastrophic error > occurred. Unfortunately I failed to copy the error message in time. When I > tried to exit Scilab instead relaunched itself into a loop repeating that > last exit command. I could only terminate it with the Task Manager by > ending the tasks faster than they were added to the list of running ones! > Not easy winning that race... > > Given your second e-mail I'll try to reinstall Scilab again and report > back to you not trying any new trick: *chat ?chaud? craint l'eau froide!* > > I fear that it might be related to a recent loadful of Microsoft automatic > updates to my copy of Windows 7... > > Thanks again and greetings from Sydney where Spring is back! > > Ren?. > > > > On Mon, Sep 15, 2014 at 3:39 AM, Pablo Fonovich > wrote: > >> Another idea: Can you tell us what is in the directory "/Program >> Files/scilab-5.5.0/modules/atoms" in your pc? >> >> ------------------------------ >> Date: Sun, 14 Sep 2014 13:53:30 +1000 >> From: dositheus41 at gmail.com >> To: users at lists.scilab.org >> Subject: [Scilab-users] ATOMS problem >> >> Trying to use ATOMS to search and download a new module I get now (it >> worked before!): >> >> * !--error 10000 * >> *%st_e: Wrong value for input argument #1: not a valid field name.* >> *at line 39 of function %st_e called by : * >> *at line 53 of function atomsSetInstalledList called by : * >> *at line 11 of function atomsGetHomeListboxElts called by : * >> *at line 227 of function atomsGui called by : * >> >> *("atoms") then atomsGui(); else disp(gettext("Please install atomswhile >> executing a callback* >> >> >> I uninstalled and reinstalled Scilab 5.5.0 to no avail. I even tried >> again as suggested on the web by installing it directly in C:\ but with the >> same error. >> >> I tried some of the atomsXXX functions and got the message that package >> "atoms" was not available! >> >> What is going on? I used ATOMS a lot in the past few years by just >> clicking its icon in the tool bar and without any problem. >> >> (My PC is a HP ProBook 4730s under Windows 7. --- WIN32) >> >> Thanks for any help! >> >> Ren? Grognard >> (Sydney, Australia) >> >> >> _______________________________________________ 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: -------------- next part -------------- A non-text attachment was scrubbed... Name: atoms_directory.docx Type: application/vnd.openxmlformats-officedocument.wordprocessingml.document Size: 26587 bytes Desc: not available URL: From dositheus41 at gmail.com Mon Sep 15 11:46:30 2014 From: dositheus41 at gmail.com (=?UTF-8?Q?Ren=C3=A9_Grognard?=) Date: Mon, 15 Sep 2014 19:46:30 +1000 Subject: [Scilab-users] ATOMS problem In-Reply-To: References: Message-ID: Back again with the source of the trouble! I thought I had cleaned every remnants of Scilab before reinstalling it. Then I was baffled by the fact that the new install "remembered" to load Plotlib Toolbox 0.45. So some old Scilab history file was still left somewhere. I looked in ProgramData but there is no Scilab folder there (where any Scilab data should be IMHO!). So I did a search and after a rather long time the hidden data was found in C:/Users/Rene/AppData/Roaming/scilab-5.5.0. Once it was removed a fresh install of Scilab cleared *all* problems. Sorry for wasting your time, Pablo. I had completely forgot that some programs use that AppData folder rather than the more standard ProgramData. I'll looked into the folder I removed to see what I did to cause ATOMS to cease functioning in such a bad way. A lesson however to anyone "haunted" by (bad) actions they did in the past: Scilab never forgets! It is still surprising that Scilab uninstall does not wipe out its entry in AppData! Thank you and sorry again for your trouble. Ren?. On Mon, Sep 15, 2014 at 6:10 PM, Ren? Grognard wrote: > Hi Pablo, > > I just downloaded a fresh copy of scilab-5.5.0.exe and installed it with > Launch at Finish. > > This is what I got in reply: > > > *Startup execution:* > * loading initial environment* > > *Start plotlib toolbox 0.45* > *Load macros* > *Load help* > > *Warning !!!* > *Scilab has found a critical error (EXCEPTION_ACCESS_VIOLATION)* > *with "get" function.* > *Save your data and restart Scilab.* > *Warning !!!* > *Scilab has found a critical error (EXCEPTION_ACCESS_VIOLATION)* > *with "get" function.* > *Save your data and restart Scilab.* > > Oddly it came with an empty graphic window. Perhaps uninstall > Scilab didn't clean enough Scilab remants of previous disastrous sessions. > I didn't dare do "exit", rather I clicked the option "x" to get out. > > Next I'll wipe out all traces of Scilab and reinstall it again. > > But meanwhile please find attached the atoms directory you requested in > Word *,docx and landscape format. > > Thanks again. > > Ren?. > > > On Mon, Sep 15, 2014 at 8:04 AM, Ren? Grognard > wrote: > >> Thanks for your reply, Pablo. >> >> No I didn't change anything in my copy of Scilab. >> >> The last time I used *actively* ATOMS was to reload a >> corrected Matlab-like plotting library which unexpectedly had ceased to be >> compatible with the graphic module which comes with Scilab. As that >> compatibility was vital to my projects I reported it and it was soon >> corrected. So ATOMS was well behaved *that *last time I had to use it. >> >> This week-end I just wanted to add maybe an image processor and was >> *only* trying to find what was available when I noticed that ATOMS >> didn't work anymore. >> >> Yes I tried what you say, even directly inserting one of the examples >> from Help concerning the atoms package to be on the safe side. Scilab >> reported that the atoms package was not available and then a catastrophic >> error occurred. Unfortunately I failed to copy the error message in time. >> When I tried to exit Scilab instead relaunched itself into a loop repeating >> that last exit command. I could only terminate it with the Task Manager by >> ending the tasks faster than they were added to the list of running ones! >> Not easy winning that race... >> >> Given your second e-mail I'll try to reinstall Scilab again and report >> back to you not trying any new trick: *chat ?chaud? craint l'eau froide!* >> >> I fear that it might be related to a recent loadful of Microsoft >> automatic updates to my copy of Windows 7... >> >> Thanks again and greetings from Sydney where Spring is back! >> >> Ren?. >> >> >> >> On Mon, Sep 15, 2014 at 3:39 AM, Pablo Fonovich >> wrote: >> >>> Another idea: Can you tell us what is in the directory "/Program >>> Files/scilab-5.5.0/modules/atoms" in your pc? >>> >>> ------------------------------ >>> Date: Sun, 14 Sep 2014 13:53:30 +1000 >>> From: dositheus41 at gmail.com >>> To: users at lists.scilab.org >>> Subject: [Scilab-users] ATOMS problem >>> >>> Trying to use ATOMS to search and download a new module I get now (it >>> worked before!): >>> >>> * !--error 10000 * >>> *%st_e: Wrong value for input argument #1: not a valid field name.* >>> *at line 39 of function %st_e called by : * >>> *at line 53 of function atomsSetInstalledList called by : * >>> *at line 11 of function atomsGetHomeListboxElts called by : * >>> *at line 227 of function atomsGui called by : * >>> >>> *("atoms") then atomsGui(); else disp(gettext("Please install atomswhile >>> executing a callback* >>> >>> >>> I uninstalled and reinstalled Scilab 5.5.0 to no avail. I even tried >>> again as suggested on the web by installing it directly in C:\ but with the >>> same error. >>> >>> I tried some of the atomsXXX functions and got the message that package >>> "atoms" was not available! >>> >>> What is going on? I used ATOMS a lot in the past few years by just >>> clicking its icon in the tool bar and without any problem. >>> >>> (My PC is a HP ProBook 4730s under Windows 7. --- WIN32) >>> >>> Thanks for any help! >>> >>> Ren? Grognard >>> (Sydney, Australia) >>> >>> >>> _______________________________________________ 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 clement.david at scilab-enterprises.com Mon Sep 15 12:17:30 2014 From: clement.david at scilab-enterprises.com (=?ISO-8859-1?Q?Cl=E9ment?= David) Date: Mon, 15 Sep 2014 12:17:30 +0200 Subject: [Scilab-users] XCOS error: "Undefined variable: m" In-Reply-To: <000f01cfcf66$cc5f1170$651d3450$@kje.biglobe.ne.jp> References: <000f01cfcf66$cc5f1170$651d3450$@kje.biglobe.ne.jp> Message-ID: <1410776250.2088.6.camel@naxos> Hello, There is a typo in the context, I guess you forgot '//' to comment units. // PID Controller Parameters DR=-1; //Controller Direction: Reverse=-1, Direct=1 --> PVmax=2; [m] PVmin=0; Regards, -- Cl?ment Le dimanche 14 septembre 2014 ? 00:24 +0900, Noguchi a ?crit : > I am a beginner of Scilab. > > I am using Scilab 5.5.0 XCOS on windows 8. > > > > When I run my XCOS model, I got an error message ?Undefined variable: > m?. > > I don?t use variable m in Context or XCOS models. > > > > When I copy the all lines of context in my XCOS model on Scilab > console and run the attached XCOS model, it works as I expected. > > > > May I ask your help to remove my error message? > > > > > > > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users From berns.buenaobra at gmail.com Mon Sep 15 13:05:55 2014 From: berns.buenaobra at gmail.com (Berns Buenaobra) Date: Mon, 15 Sep 2014 19:05:55 +0800 Subject: [Scilab-users] Fwd: Help modeling ODE system In-Reply-To: References: <1410696280391-4031151.post@n3.nabble.com> Message-ID: You could simulate those in XCOS like an analog computation using Differentiators and its inverse for the solution also multipliers by the way. Berns B. On Sun, Sep 14, 2014 at 10:54 PM, Farid Afandiyev wrote: > Thanks Mehran! This is exactly what I want! > > Kind regards, > > Farid. > > > On Sun, Sep 14, 2014 at 4:04 PM, A Khorshidi wrote: > >> Farid Afandiyev wrote >> > It looks like this >> > dV1/dt = 0.01V1 - 0.01V2 >> > dV2/dt = -0.01V1 + 0.01V2 >> > V1(0) = 10000 >> > V2(0) = 5000 >> > >> > I want to plot V1 and V2 against time t=[0:10] >> >> Hi; >> >> You can use the scheme below to solve system of ODEs in Scilab: >> // >> function xdot = modelName(t,x) >> xdot = f(t,x) // where xdot and x are vectors >> endfunction >> >> x0 = [x1(0) x2(0)... xn(0)]' // a vector of the initial conditions >> t0 = initialTime // a scalar: initial time >> tf = finalTime // a scalar: final time >> t = linspace(t0, tf)// a vector: the times that you want a solution for >> >> x = ode(x0,t0,t,modelName); >> >> plot(t', [x(1,:); x(2,:); ... x($,:)]') >> // >> >> And to really answer your question: >> >> function Vdot=model(t, V) >> Vdot(1) = 0.01*V(1) - 0.01*V(2) >> Vdot(2) = -0.01*V(1) + 0.01*V(2) >> endfunction >> V0=[10000 5000]'; >> t0=0; >> t=0:0.1:10; >> V = ode(V0,t0,t,model); >> plot(t', [V(1,:); V(2,:)]') >> >> HTH >> Mehran >> _ >> >> >> >> >> -- >> View this message in context: >> http://mailinglists.scilab.org/Scilab-users-Fwd-Help-modeling-ODE-system-tp4031148p4031151.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 > > -- Bernardino (Berns) Jerez Buenaobra Senior Science Research Specialist Data Processing Component USC DOST-UP/NEC Project LiDAR (Light Detection and Ranging) for Disaster Risk Exposure Assessment for Mitigation (DREAM) University of San Carlos (Talamban Campus) Contact information: Mobile: +639054732772 Office: +63323464614 Google+ berns.buenaobra at gmail.com Skype ID: poormanphysics Professional Reference, Research and Education link: http://ph.linkedin.com/pub/bernardino-buenaobra/16/42/637 -------------- next part -------------- An HTML attachment was scrubbed... URL: From noguchi at kje.biglobe.ne.jp Mon Sep 15 13:43:51 2014 From: noguchi at kje.biglobe.ne.jp (noguchi) Date: Mon, 15 Sep 2014 04:43:51 -0700 (PDT) Subject: [Scilab-users] XCOS error: "Undefined variable: m" In-Reply-To: <1410776250.2088.6.camel@naxos> References: <000f01cfcf66$cc5f1170$651d3450$@kje.biglobe.ne.jp> <1410776250.2088.6.camel@naxos> Message-ID: <1410781431936-4031163.post@n3.nabble.com> Thank you for your advise. If I add "//", it works. Thanks. Regards, Y. Noguchi -- View this message in context: http://mailinglists.scilab.org/Scilab-users-XCOS-error-Undefined-variable-m-tp4031145p4031163.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From stephane.mottelet at utc.fr Mon Sep 15 14:03:44 2014 From: stephane.mottelet at utc.fr (=?ISO-8859-1?Q?St=E9phane_Mottelet?=) Date: Mon, 15 Sep 2014 14:03:44 +0200 Subject: [Scilab-users] Fwd: Help modeling ODE system In-Reply-To: References: <1410696280391-4031151.post@n3.nabble.com> Message-ID: <5416D5A0.1090904@utc.fr> Hello, Why use a cannon to kill a fly ? Maybe this would be easier like this : function dvdt=f(t,v) dvdt=[0.01 -0.01;-0.01 0.01]*v; endfunction t=0:0.1:10; v=ode([10000;5000],0,t,f); plot(t,v) S. Le 15/09/2014 13:05, Berns Buenaobra a ?crit : > You could simulate those in XCOS like an analog computation using > Differentiators and its inverse for the solution also multipliers by the > way. > > Berns B. > > On Sun, Sep 14, 2014 at 10:54 PM, Farid Afandiyev > wrote: > >> Thanks Mehran! This is exactly what I want! >> >> Kind regards, >> >> Farid. >> >> >> On Sun, Sep 14, 2014 at 4:04 PM, A Khorshidi wrote: >> >>> Farid Afandiyev wrote >>>> It looks like this >>>> dV1/dt = 0.01V1 - 0.01V2 >>>> dV2/dt = -0.01V1 + 0.01V2 >>>> V1(0) = 10000 >>>> V2(0) = 5000 >>>> >>>> I want to plot V1 and V2 against time t=[0:10] >>> Hi; >>> >>> You can use the scheme below to solve system of ODEs in Scilab: >>> // >>> function xdot = modelName(t,x) >>> xdot = f(t,x) // where xdot and x are vectors >>> endfunction >>> >>> x0 = [x1(0) x2(0)... xn(0)]' // a vector of the initial conditions >>> t0 = initialTime // a scalar: initial time >>> tf = finalTime // a scalar: final time >>> t = linspace(t0, tf)// a vector: the times that you want a solution for >>> >>> x = ode(x0,t0,t,modelName); >>> >>> plot(t', [x(1,:); x(2,:); ... x($,:)]') >>> // >>> >>> And to really answer your question: >>> >>> function Vdot=model(t, V) >>> Vdot(1) = 0.01*V(1) - 0.01*V(2) >>> Vdot(2) = -0.01*V(1) + 0.01*V(2) >>> endfunction >>> V0=[10000 5000]'; >>> t0=0; >>> t=0:0.1:10; >>> V = ode(V0,t0,t,model); >>> plot(t', [V(1,:); V(2,:)]') >>> >>> HTH >>> Mehran >>> _ >>> >>> >>> >>> >>> -- >>> View this message in context: >>> http://mailinglists.scilab.org/Scilab-users-Fwd-Help-modeling-ODE-system-tp4031148p4031151.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 >> >> > > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users -------------- next part -------------- An HTML attachment was scrubbed... URL: From mjmccann at ieee.org Mon Sep 15 14:22:35 2014 From: mjmccann at ieee.org (Michael J McCann) Date: Mon, 15 Sep 2014 12:22:35 +0000 Subject: [Scilab-users] Fwd: Help modeling ODE system In-Reply-To: <5416D5A0.1090904@utc.fr> References: <1410696280391-4031151.post@n3.nabble.com> <5416D5A0.1090904@utc.fr> Message-ID: <5416DA0B.70907@ieee.org> Stephane is right, BUT please don't try to use "differentiators" in the analog-computer-like Xcos system, That's not the way the real world works. Numerical Solutions of differential equations are done by integration, as is invoked by the ode( ) function and by the underlying computation in Xcos which uses them too. Mike. ================= On 2014-09-15 12:03, St?phane Mottelet wrote: > Hello, > > Why use a cannon to kill a fly ? Maybe this would be easier like this : > > function dvdt=f(t,v) > dvdt=[0.01 -0.01;-0.01 0.01]*v; > endfunction > > t=0:0.1:10; > v=ode([10000;5000],0,t,f); > plot(t,v) > > S. > > Le 15/09/2014 13:05, Berns Buenaobra a ?crit : >> You could simulate those in XCOS like an analog computation using >> Differentiators and its inverse for the solution also multipliers by the >> way. >> >> Berns B. >> >> On Sun, Sep 14, 2014 at 10:54 PM, Farid Afandiyev >> wrote: >> >>> Thanks Mehran! This is exactly what I want! >>> >>> Kind regards, >>> >>> Farid. >>> >>> >>> On Sun, Sep 14, 2014 at 4:04 PM, A Khorshidi wrote: >>> >>>> Farid Afandiyev wrote >>>>> It looks like this >>>>> dV1/dt = 0.01V1 - 0.01V2 >>>>> dV2/dt = -0.01V1 + 0.01V2 >>>>> V1(0) = 10000 >>>>> V2(0) = 5000 >>>>> >>>>> I want to plot V1 and V2 against time t=[0:10] >>>> Hi; >>>> >>>> You can use the scheme below to solve system of ODEs in Scilab: >>>> // >>>> function xdot = modelName(t,x) >>>> xdot = f(t,x) // where xdot and x are vectors >>>> endfunction >>>> >>>> x0 = [x1(0) x2(0)... xn(0)]' // a vector of the initial conditions >>>> t0 = initialTime // a scalar: initial time >>>> tf = finalTime // a scalar: final time >>>> t = linspace(t0, tf)// a vector: the times that you want a solution for >>>> >>>> x = ode(x0,t0,t,modelName); >>>> >>>> plot(t', [x(1,:); x(2,:); ... x($,:)]') >>>> // >>>> >>>> And to really answer your question: >>>> >>>> function Vdot=model(t, V) >>>> Vdot(1) = 0.01*V(1) - 0.01*V(2) >>>> Vdot(2) = -0.01*V(1) + 0.01*V(2) >>>> endfunction >>>> V0=[10000 5000]'; >>>> t0=0; >>>> t=0:0.1:10; >>>> V = ode(V0,t0,t,model); >>>> plot(t', [V(1,:); V(2,:)]') >>>> >>>> HTH >>>> Mehran >>>> _ >>>> >>>> >>>> >>>> >>>> -- >>>> View this message in context: >>>> http://mailinglists.scilab.org/Scilab-users-Fwd-Help-modeling-ODE-system-tp4031148p4031151.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 >>> >>> >> >> >> _______________________________________________ >> 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 -- Dr.M.J.McCann,MJMcCann-Consulting -------------- next part -------------- An HTML attachment was scrubbed... URL: From pablo_f_7 at hotmail.com Mon Sep 15 15:56:21 2014 From: pablo_f_7 at hotmail.com (Pablo Fonovich) Date: Mon, 15 Sep 2014 10:56:21 -0300 Subject: [Scilab-users] ATOMS problem In-Reply-To: References: , , , , Message-ID: Hi: I'm glad you solved your problem... I didn't answer before because i was sleeping... i think is night here when is day there... I was going to tell you about the "traces" of old scilab, cause it happened to me that when i reinstalled scilab a few time go i didn't need to reinstall atoms modules... but is good that you could solve it by your own! Congratulations! Is not a waste of time, that's why in joined the list and may be you could help me sometime! Greetings Date: Mon, 15 Sep 2014 19:46:30 +1000 From: dositheus41 at gmail.com To: users at lists.scilab.org Subject: Re: [Scilab-users] ATOMS problem Back again with the source of the trouble! I thought I had cleaned every remnants of Scilab before reinstalling it. Then I was baffled by the fact that the new install "remembered" to load Plotlib Toolbox 0.45. So some old Scilab history file was still left somewhere. I looked in ProgramData but there is no Scilab folder there (where any Scilab data should be IMHO!). So I did a search and after a rather long time the hidden data was found in C:/Users/Rene/AppData/Roaming/scilab-5.5.0. Once it was removed a fresh install of Scilab cleared all problems. Sorry for wasting your time, Pablo. I had completely forgot that some programs use that AppData folder rather than the more standard ProgramData. I'll looked into the folder I removed to see what I did to cause ATOMS to cease functioning in such a bad way. A lesson however to anyone "haunted" by (bad) actions they did in the past: Scilab never forgets! It is still surprising that Scilab uninstall does not wipe out its entry in AppData! Thank you and sorry again for your trouble. Ren?. On Mon, Sep 15, 2014 at 6:10 PM, Ren? Grognard wrote: Hi Pablo, I just downloaded a fresh copy of scilab-5.5.0.exe and installed it with Launch at Finish. This is what I got in reply: Startup execution: loading initial environmentStart plotlib toolbox 0.45 Load macrosLoad helpWarning !!! Scilab has found a critical error (EXCEPTION_ACCESS_VIOLATION)with "get" function.Save your data and restart Scilab.Warning !!!Scilab has found a critical error (EXCEPTION_ACCESS_VIOLATION)with "get" function.Save your data and restart Scilab. Oddly it came with an empty graphic window. Perhaps uninstall Scilab didn't clean enough Scilab remants of previous disastrous sessions. I didn't dare do "exit", rather I clicked the option "x" to get out. Next I'll wipe out all traces of Scilab and reinstall it again. But meanwhile please find attached the atoms directory you requested in Word *,docx and landscape format. Thanks again. Ren?. On Mon, Sep 15, 2014 at 8:04 AM, Ren? Grognard wrote: Thanks for your reply, Pablo. No I didn't change anything in my copy of Scilab. The last time I used actively ATOMS was to reload a corrected Matlab-like plotting library which unexpectedly had ceased to be compatible with the graphic module which comes with Scilab. As that compatibility was vital to my projects I reported it and it was soon corrected. So ATOMS was well behaved that last time I had to use it. This week-end I just wanted to add maybe an image processor and was only trying to find what was available when I noticed that ATOMS didn't work anymore. Yes I tried what you say, even directly inserting one of the examples from Help concerning the atoms package to be on the safe side. Scilab reported that the atoms package was not available and then a catastrophic error occurred. Unfortunately I failed to copy the error message in time. When I tried to exit Scilab instead relaunched itself into a loop repeating that last exit command. I could only terminate it with the Task Manager by ending the tasks faster than they were added to the list of running ones! Not easy winning that race... Given your second e-mail I'll try to reinstall Scilab again and report back to you not trying any new trick: chat ?chaud? craint l'eau froide! I fear that it might be related to a recent loadful of Microsoft automatic updates to my copy of Windows 7... Thanks again and greetings from Sydney where Spring is back! Ren?. On Mon, Sep 15, 2014 at 3:39 AM, Pablo Fonovich wrote: Another idea: Can you tell us what is in the directory "/Program Files/scilab-5.5.0/modules/atoms" in your pc? Date: Sun, 14 Sep 2014 13:53:30 +1000 From: dositheus41 at gmail.com To: users at lists.scilab.org Subject: [Scilab-users] ATOMS problem Trying to use ATOMS to search and download a new module I get now (it worked before!): !--error 10000 %st_e: Wrong value for input argument #1: not a valid field name. at line 39 of function %st_e called by : at line 53 of function atomsSetInstalledList called by : at line 11 of function atomsGetHomeListboxElts called by : at line 227 of function atomsGui called by : ("atoms") then atomsGui(); else disp(gettext("Please install atoms while executing a callback I uninstalled and reinstalled Scilab 5.5.0 to no avail. I even tried again as suggested on the web by installing it directly in C:\ but with the same error. I tried some of the atomsXXX functions and got the message that package "atoms" was not available! What is going on? I used ATOMS a lot in the past few years by just clicking its icon in the tool bar and without any problem. (My PC is a HP ProBook 4730s under Windows 7. --- WIN32) Thanks for any help! Ren? Grognard(Sydney, Australia) _______________________________________________ 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 -------------- next part -------------- An HTML attachment was scrubbed... URL: From pablo_f_7 at hotmail.com Mon Sep 15 16:05:21 2014 From: pablo_f_7 at hotmail.com (Pablo Fonovich) Date: Mon, 15 Sep 2014 11:05:21 -0300 Subject: [Scilab-users] Xcos code generation, compiling with eclipse for standalone usage In-Reply-To: <1410763056.2088.4.camel@naxos> References: , <1410763056.2088.4.camel@naxos> Message-ID: Thanks for your answer. So, if i link the libraries by mysefl (like -L/usr/share/scilab/lib -llibrary) in the compiler, isn't possible to use as standalone anyways? If i can do that, what libraries should i link? If i can't, why is the standalone.c generated? The errors i get is that cstblk4_m, selector_m, and counter are not defined, and i guess there are defined in a library, but i don't know in which Other question... is there a code generator like equalis for dspic or embeedes systems, but opne-source? Equalis is far away my budget... > From: clement.david at scilab-enterprises.com > To: users at lists.scilab.org > Date: Mon, 15 Sep 2014 08:37:36 +0200 > Subject: Re: [Scilab-users] Xcos code generation, compiling with eclipse for standalone usage > > Hello, > > For you information, the generated source code need to be linked against > Scilab libraries. The Code generator emits the same scheduling as Xcos > but does not emit source code for simulation functions (eg. per block). > > Regards, > > -- > Cl?ment > > Le samedi 13 septembre 2014 ? 21:29 -0300, Pablo Fonovich a ?crit : > > Hi: I would like to know if its possible to compile the code generated > > with xcos with eclipse (or other open-source ide) into an aplication > > for usage outside of scilab. I've been trying but im not able to do > > so. > > If it's possible, is there any tutorial or something? > > What i really want to do is to use the code generated as a function of > > another program. > > > > _______________________________________________ > > 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 trefilovdb at gmail.com Mon Sep 15 17:10:18 2014 From: trefilovdb at gmail.com (=?UTF-8?B?0JTQvNC40YLRgNC40Lkg0KLRgNC10YTQuNC70L7Qsg==?=) Date: Mon, 15 Sep 2014 19:10:18 +0400 Subject: [Scilab-users] Support cyrillic in scilex Message-ID: ?ello, Cyrillic support program from the command line (scilex)? -- *? ?????????,* *???????? ???????* *?????-?????????, ?? * *???:**+7(921)335-0766* *Email: trefilovdb at gmail.com * -------------- next part -------------- An HTML attachment was scrubbed... URL: From clement.david at scilab-enterprises.com Tue Sep 16 09:01:31 2014 From: clement.david at scilab-enterprises.com (=?ISO-8859-1?Q?Cl=E9ment?= David) Date: Tue, 16 Sep 2014 09:01:31 +0200 Subject: [Scilab-users] Xcos code generation, compiling with eclipse for standalone usage In-Reply-To: References: , <1410763056.2088.4.camel@naxos> Message-ID: <1410850891.2158.17.camel@naxos> Hello Pablo, > cstblk4_m, selector_m, and counter In fact, these are simulation functions. You can grab them directly from the Scilab sources to compile them directly within your project or you can link to libsciscicos_block.so using "-lsciscicos_block". If you chose to link against scilab libraries do not forget to also link the SO dependencies (maybe blas, lapack, scilab and so on). > Other question... is there a code generator like equalis for dspic or > embeedes systems, but opne-source? Equalis is far away my budget... That's the point, there is not at this time. What's your expected target platform ? Do plan to use an OS or not ? -- Cl?ment From aadhyaarini at gmail.com Tue Sep 16 11:05:37 2014 From: aadhyaarini at gmail.com (aarini) Date: Tue, 16 Sep 2014 02:05:37 -0700 (PDT) Subject: [Scilab-users] power elecronics blocks Message-ID: <1410858337035-4031170.post@n3.nabble.com> Hi, I am new to scilab. Can any one kindly suggest where I can get electricals blocks like "three-phase V-I measurement, distributed parameter lines, three phase fault" ?. Kindly reply. -- View this message in context: http://mailinglists.scilab.org/power-elecronics-blocks-tp4031170.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From pablo_f_7 at hotmail.com Tue Sep 16 21:32:45 2014 From: pablo_f_7 at hotmail.com (Pablo Fonovich) Date: Tue, 16 Sep 2014 16:32:45 -0300 Subject: [Scilab-users] Xcos code generation, compiling with eclipse for standalone usage In-Reply-To: <1410850891.2158.17.camel@naxos> References: ,, <1410763056.2088.4.camel@naxos>, , <1410850891.2158.17.camel@naxos> Message-ID: Thanks for answering! I will try to include the libraries, and if i can't i will grab the functions from the source... My expected target are dsPICs or microproccessors without operative system. I assume that building a code generator for xcos is very hard task, am i right? Thanks... ill comment later if i succeded. > From: clement.david at scilab-enterprises.com > To: users at lists.scilab.org > Date: Tue, 16 Sep 2014 09:01:31 +0200 > Subject: Re: [Scilab-users] Xcos code generation, compiling with eclipse for standalone usage > > Hello Pablo, > > > cstblk4_m, selector_m, and counter > > In fact, these are simulation functions. You can grab them directly from > the Scilab sources to compile them directly within your project or you > can link to libsciscicos_block.so using "-lsciscicos_block". > > If you chose to link against scilab libraries do not forget to also link > the SO dependencies (maybe blas, lapack, scilab and so on). > > > Other question... is there a code generator like equalis for dspic or > > embeedes systems, but opne-source? Equalis is far away my budget... > > That's the point, there is not at this time. What's your expected target > platform ? Do plan to use an OS or not ? > > -- > Cl?ment > > _______________________________________________ > 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 Sep 17 20:21:47 2014 From: sgougeon at free.fr (Samuel Gougeon) Date: Wed, 17 Sep 2014 20:21:47 +0200 Subject: [Scilab-users] Support cyrillic in scilex In-Reply-To: References: Message-ID: <5419D13B.8080109@free.fr> Hello, Le 15/09/2014 17:10, ??????? ???????? a ?crit : > ?ello, > Cyrillic support program from the command line (scilex)? you may type: setlanguage ru // for the current session onlyOR setdefaultlanguage ru // for all forthcoming sessions Cyrillic fonts must first be available to your OS. Best regards Samuel From temitopeisaiah18 at gmail.com Wed Sep 17 12:50:29 2014 From: temitopeisaiah18 at gmail.com (Temitope Isaiah) Date: Wed, 17 Sep 2014 11:50:29 +0100 Subject: [Scilab-users] Matlab/Scilab Message-ID: I am a new user. what is the difference between matlab and scilab? -------------- next part -------------- An HTML attachment was scrubbed... URL: From ecejegan at gmail.com Thu Sep 18 17:29:30 2014 From: ecejegan at gmail.com (Jegan Amirthalingam) Date: Thu, 18 Sep 2014 20:59:30 +0530 Subject: [Scilab-users] Fwd: Error installing HART toolbox in ubuntu14.04 LTS In-Reply-To: References: Message-ID: Hi, I am trying to install HART toolbox on ubuntu14.04LTS. I just followed the instalation procedure from http://hart.sourceforge.net/rtai/installation_14_04_64bit_woc.html when i am trying to apply 'make' for the HART tool box i am getting the following error... root at SCADTPC:/usr/lib/hart/hart_0.4.6# make echo "execute builder.sce in scilab" execute builder.sce in scilab /usr/bin/scilab -nw -nb -f prepare_toolbox.sce; libEGL warning: failed to create a pipe screen for i965 -- Creation of [baselib] (Macros) -- genlib: Processing file: copynewerfile.sci genlib: Processing file: guimaker.sci genlib: Processing file: hart_edit_scicosblock.sci genlib: Processing file: hart_module_creator.sci genlib: Processing file: help_from_scicosblock.sci genlib: Processing file: inputui.sci genlib: Regenerate names and lib Build modules Preparing module: RTAI Error in comedi module! Could not found libcomedi.so! Not able to build module: comedi Not able to build module: daqmx Preparing module: hart_base Preparing module: portaudio rtpreempt-module will not build, as RTAI is installed! But it is possible to use rtpreempt codegeneration besides RTAI! Not able to build module: rtpreempt /usr/bin/scilab -nw -nb -f builder.sce; libEGL warning: failed to create a pipe screen for i965 Building macros... -- Creation of [baselib] (Macros) -- genlib: Processing file: copynewerfile.sci genlib: Processing file: guimaker.sci genlib: Processing file: hart_edit_scicosblock.sci genlib: Processing file: hart_module_creator.sci genlib: Processing file: help_from_scicosblock.sci genlib: Processing file: inputui.sci genlib: Regenerate names and lib -- Creation of [RtaiCodeGenlib] (Macros) -- -- Creation of [RTAIlib] (Macros) -- Building blocks... -- Creation of [hart_baselib] (Macros) -- Building blocks... -- Creation of [portaudiolib] (Macros) -- Building blocks... Building sources... Generate a loader file Generate a Makefile ilib_gen_Make: Copy compilation files (Makefile*, libtool...) to TMPDIR ilib_gen_Make: Copy getstr.c to TMPDIR ilib_gen_Make: Copy serial_linux.cpp to TMPDIR ilib_gen_Make: Copy rtai_sinus.c to TMPDIR ilib_gen_Make: Copy rtai_square.c to TMPDIR ilib_gen_Make: Copy rtai_step.c to TMPDIR ilib_gen_Make: Copy hart_soft_realtime.c to TMPDIR ilib_gen_Make: Copy hart_par2ser.c to TMPDIR ilib_gen_Make: Copy hart_ser2par.c to TMPDIR ilib_gen_Make: Copy iir_filter.c to TMPDIR ilib_gen_Make: Copy hart_filtfilt.c to TMPDIR ilib_gen_Make: Copy hart_socket.c to TMPDIR ilib_gen_Make: Copy hart_socketin.c to TMPDIR ilib_gen_Make: Copy hart_flagtest.c to TMPDIR ilib_gen_Make: Copy hart_portaudio_in.c to TMPDIR ilib_gen_Make: Copy hart_portaudio_out.c to TMPDIR ilib_gen_Make: configure : Generate Makefile. ilib_gen_Make: Modification of the Makefile in TMPDIR. Running the Makefile !--error 10000 ilib_compile: An error occurred during the compilation: hart_par2ser.c: In function 'init': hart_par2ser.c:43:17: warning: incompatible implicit declaration of built-in function 'printf' [enabled by default] printf("par2ser: ipar error\n"); ^ hart_ser2par.c: In function 'init': hart_ser2par.c:43:3: warning: incompatible implicit declaration of built-in function 'printf' [enabled by default] printf("ser2par: ipar error\n"); ^ iir_filter.c: In function 'dumpIIRfiltToFile': iir_filter.c:628:3: warning: format '%s' expects argument of type 'char *', but argument 3 has type 'int' [-Wformat=] fprintf(fid, "# %s", ctime(&now)); ^ hart_flagtest.c: In function 'init': hart_flagtest.c:35:3: warning: incompatible implicit declaration of built-in function 'printf' [enabled by default] printf("Flag 4: initalisation, t=%f\n",get_scicos_time()); ^ hart_flagtest.c:35:3: warning: format '%f' expects argument of type 'double', but argument 2 has type 'int' [-Wformat=] hart_flagtest.c: In function 'state': hart_flagtest.c:62:6: warning: incompatible implicit declaration of built-in function 'printf' [enabled by default] printf("Flag 0: update state, step=%d, t=%f\n",comdev->step,comdev->time); ^ hart_flagtest.c: In function 'in': hart_flagtest.c:69:6: warning: incompatible implicit declaration of built-in function 'printf' [enabled by default] printf(" Flag 2 "); ^ hart_flagtest.c: In function 'inout': hart_flagtest.c:83:6: warning: incompatible implicit declaration of built-in function 'printf' [enabled by default] printf("Flag 1: update output, step=%d, t=%f\n",comdev->step,comdev->time); ^ hart_flagtest.c: In function 'eventout': hart_flagtest.c:104:6: warning: incompatible implicit declaration of built-in function 'printf' [enabled by default] printf("Flag 3: update event output, step=%d, t=%f\n",comdev->step,comdev->time); ^ hart_flagtest.c: In function 'end': hart_flagtest.c:118:3: warning: incompatible implicit declaration of built-in function 'printf' [enabled by default] printf("Flag 4: ending, step=%d, t=%f\n",comdev->step,comdev->time); ^ hart_portaudio_in.c:3:23: fatal error: portaudio.h: No such file or directory #include "portaudio.h" ^ compilation terminated. make[1]: *** [hart_portaudio_in.lo] Error 1 ilib_compile: The command was: make CFLAGS=" -D__SCILAB_TOOLBOX__ -I/usr/share/scilab//../../include/scilab/ -I/usr/share/scilab//../../include/ -I/usr/lib/hart/hart_0.4.6/src/c/ -I/usr/lib/hart/hart_0.4.6/src/c/../../includes -I/usr/share/scilab//../../include/scilab/scicos/ -I/usr/share/scilab//../../include/scilab/scicos_blocks/ -I/usr/share/scilab//../../include/scilab/ -D_TTY_POSIX_ " CXXFLAGS=" -D__SCILAB_TOOLBOX__ -I/usr/share/scilab//../../include/scilab/ -I/usr/share/scilab//../../include/ -I/usr/lib/hart/hart_0.4.6/src/c/ -I/usr/lib/hart/hart_0.4.6/src/c/../../includes -I/usr/share/scilab//../../include/scilab/scicos/ -I/usr/share/scilab//../../include/scilab/scicos_blocks/ -I/usr/share/scilab//../../include/scilab/ -D_TTY_POSIX_ " LDFLAGS="-lpthread -lstdc++ -lm -lportaudio " FFLAGS="-I/usr/share/scilab//../../include/scilab/ " at line 129 of function ilib_compile called by : at line 94 of function ilib_for_link called by : at line 28 of function tbx_build_src called by : tbx_build_src(names, files, 'c', src_c_path ,libs,ldflags,cflags,fflags,cc,libname); at line 24 of exec file called by : at line 13 of function tbx_builder called by : at line 49 of function tbx_builder_src_lang called by : tbx_builder_src_lang('c', src_dir); at line 3 of exec file called by : at line 13 of function tbx_builder called by : at line 32 of function tbx_builder_src called by : tbx_builder_src(toolbox_dir); at line 18 of exec file called by : exec('SCI/etc/scilab.start',-1);;exec('builder.sce',-1) --> Kindly let me know if i am missing anything....Anybody can please help.. Regards Jegan -------------- next part -------------- An HTML attachment was scrubbed... URL: From pablo_f_7 at hotmail.com Thu Sep 18 21:09:48 2014 From: pablo_f_7 at hotmail.com (Pablo Fonovich) Date: Thu, 18 Sep 2014 16:09:48 -0300 Subject: [Scilab-users] Fwd: Error installing HART toolbox in ubuntu14.04 LTS In-Reply-To: References: , Message-ID: Hi:I think you need to install portaudio before trying to install hart...Have you got synaptic package manager isntalled? you can look portaudio trhough synaptic and install it...If you don't have synaptic, perhaps you could try with:"aptitude search portaudio"and a list of packages containing portaudio should appear... then use "sudo apt-get install package"whith package i mean the realname of the portaudio listed by aptitude search... In a few hours i will have acces to an ubuntu pc and i would be able to tell you the exact commands..Once you've installed portaudio, you should be able to install HART. Date: Thu, 18 Sep 2014 20:59:30 +0530 From: ecejegan at gmail.com To: users at lists.scilab.org Subject: [Scilab-users] Fwd: Error installing HART toolbox in ubuntu14.04 LTS Hi, I am trying to install HART toolbox on ubuntu14.04LTS. I just followed the instalation procedure from http://hart.sourceforge.net/rtai/installation_14_04_64bit_woc.html when i am trying to apply 'make' for the HART tool box i am getting the following error... root at SCADTPC:/usr/lib/hart/hart_0.4.6# make echo "execute builder.sce in scilab" execute builder.sce in scilab /usr/bin/scilab -nw -nb -f prepare_toolbox.sce; libEGL warning: failed to create a pipe screen for i965 -- Creation of [baselib] (Macros) -- genlib: Processing file: copynewerfile.sci genlib: Processing file: guimaker.sci genlib: Processing file: hart_edit_scicosblock.sci genlib: Processing file: hart_module_creator.sci genlib: Processing file: help_from_scicosblock.sci genlib: Processing file: inputui.sci genlib: Regenerate names and lib Build modules Preparing module: RTAI Error in comedi module! Could not found libcomedi.so! Not able to build module: comedi Not able to build module: daqmx Preparing module: hart_base Preparing module: portaudio rtpreempt-module will not build, as RTAI is installed! But it is possible to use rtpreempt codegeneration besides RTAI! Not able to build module: rtpreempt /usr/bin/scilab -nw -nb -f builder.sce; libEGL warning: failed to create a pipe screen for i965 Building macros... -- Creation of [baselib] (Macros) -- genlib: Processing file: copynewerfile.sci genlib: Processing file: guimaker.sci genlib: Processing file: hart_edit_scicosblock.sci genlib: Processing file: hart_module_creator.sci genlib: Processing file: help_from_scicosblock.sci genlib: Processing file: inputui.sci genlib: Regenerate names and lib -- Creation of [RtaiCodeGenlib] (Macros) -- -- Creation of [RTAIlib] (Macros) -- Building blocks... -- Creation of [hart_baselib] (Macros) -- Building blocks... -- Creation of [portaudiolib] (Macros) -- Building blocks... Building sources... Generate a loader file Generate a Makefile ilib_gen_Make: Copy compilation files (Makefile*, libtool...) to TMPDIR ilib_gen_Make: Copy getstr.c to TMPDIR ilib_gen_Make: Copy serial_linux.cpp to TMPDIR ilib_gen_Make: Copy rtai_sinus.c to TMPDIR ilib_gen_Make: Copy rtai_square.c to TMPDIR ilib_gen_Make: Copy rtai_step.c to TMPDIR ilib_gen_Make: Copy hart_soft_realtime.c to TMPDIR ilib_gen_Make: Copy hart_par2ser.c to TMPDIR ilib_gen_Make: Copy hart_ser2par.c to TMPDIR ilib_gen_Make: Copy iir_filter.c to TMPDIR ilib_gen_Make: Copy hart_filtfilt.c to TMPDIR ilib_gen_Make: Copy hart_socket.c to TMPDIR ilib_gen_Make: Copy hart_socketin.c to TMPDIR ilib_gen_Make: Copy hart_flagtest.c to TMPDIR ilib_gen_Make: Copy hart_portaudio_in.c to TMPDIR ilib_gen_Make: Copy hart_portaudio_out.c to TMPDIR ilib_gen_Make: configure : Generate Makefile. ilib_gen_Make: Modification of the Makefile in TMPDIR. Running the Makefile !--error 10000 ilib_compile: An error occurred during the compilation: hart_par2ser.c: In function 'init': hart_par2ser.c:43:17: warning: incompatible implicit declaration of built-in function 'printf' [enabled by default] printf("par2ser: ipar error\n"); ^ hart_ser2par.c: In function 'init': hart_ser2par.c:43:3: warning: incompatible implicit declaration of built-in function 'printf' [enabled by default] printf("ser2par: ipar error\n"); ^ iir_filter.c: In function 'dumpIIRfiltToFile': iir_filter.c:628:3: warning: format '%s' expects argument of type 'char *', but argument 3 has type 'int' [-Wformat=] fprintf(fid, "# %s", ctime(&now)); ^ hart_flagtest.c: In function 'init': hart_flagtest.c:35:3: warning: incompatible implicit declaration of built-in function 'printf' [enabled by default] printf("Flag 4: initalisation, t=%f\n",get_scicos_time()); ^ hart_flagtest.c:35:3: warning: format '%f' expects argument of type 'double', but argument 2 has type 'int' [-Wformat=] hart_flagtest.c: In function 'state': hart_flagtest.c:62:6: warning: incompatible implicit declaration of built-in function 'printf' [enabled by default] printf("Flag 0: update state, step=%d, t=%f\n",comdev->step,comdev->time); ^ hart_flagtest.c: In function 'in': hart_flagtest.c:69:6: warning: incompatible implicit declaration of built-in function 'printf' [enabled by default] printf(" Flag 2 "); ^ hart_flagtest.c: In function 'inout': hart_flagtest.c:83:6: warning: incompatible implicit declaration of built-in function 'printf' [enabled by default] printf("Flag 1: update output, step=%d, t=%f\n",comdev->step,comdev->time); ^ hart_flagtest.c: In function 'eventout': hart_flagtest.c:104:6: warning: incompatible implicit declaration of built-in function 'printf' [enabled by default] printf("Flag 3: update event output, step=%d, t=%f\n",comdev->step,comdev->time); ^ hart_flagtest.c: In function 'end': hart_flagtest.c:118:3: warning: incompatible implicit declaration of built-in function 'printf' [enabled by default] printf("Flag 4: ending, step=%d, t=%f\n",comdev->step,comdev->time); ^ hart_portaudio_in.c:3:23: fatal error: portaudio.h: No such file or directory #include "portaudio.h" ^ compilation terminated. make[1]: *** [hart_portaudio_in.lo] Error 1 ilib_compile: The command was: make CFLAGS=" -D__SCILAB_TOOLBOX__ -I/usr/share/scilab//../../include/scilab/ -I/usr/share/scilab//../../include/ -I/usr/lib/hart/hart_0.4.6/src/c/ -I/usr/lib/hart/hart_0.4.6/src/c/../../includes -I/usr/share/scilab//../../include/scilab/scicos/ -I/usr/share/scilab//../../include/scilab/scicos_blocks/ -I/usr/share/scilab//../../include/scilab/ -D_TTY_POSIX_ " CXXFLAGS=" -D__SCILAB_TOOLBOX__ -I/usr/share/scilab//../../include/scilab/ -I/usr/share/scilab//../../include/ -I/usr/lib/hart/hart_0.4.6/src/c/ -I/usr/lib/hart/hart_0.4.6/src/c/../../includes -I/usr/share/scilab//../../include/scilab/scicos/ -I/usr/share/scilab//../../include/scilab/scicos_blocks/ -I/usr/share/scilab//../../include/scilab/ -D_TTY_POSIX_ " LDFLAGS="-lpthread -lstdc++ -lm -lportaudio " FFLAGS="-I/usr/share/scilab//../../include/scilab/ " at line 129 of function ilib_compile called by : at line 94 of function ilib_for_link called by : at line 28 of function tbx_build_src called by : tbx_build_src(names, files, 'c', src_c_path ,libs,ldflags,cflags,fflags,cc,libname); at line 24 of exec file called by : at line 13 of function tbx_builder called by : at line 49 of function tbx_builder_src_lang called by : tbx_builder_src_lang('c', src_dir); at line 3 of exec file called by : at line 13 of function tbx_builder called by : at line 32 of function tbx_builder_src called by : tbx_builder_src(toolbox_dir); at line 18 of exec file called by : exec('SCI/etc/scilab.start',-1);;exec('builder.sce',-1) --> Kindly let me know if i am missing anything....Anybody can please help.. Regards Jegan _______________________________________________ users mailing list users at lists.scilab.org http://lists.scilab.org/mailman/listinfo/users -------------- next part -------------- An HTML attachment was scrubbed... URL: From pablo_f_7 at hotmail.com Thu Sep 18 21:16:04 2014 From: pablo_f_7 at hotmail.com (Pablo Fonovich) Date: Thu, 18 Sep 2014 16:16:04 -0300 Subject: [Scilab-users] Fwd: Error installing HART toolbox in ubuntu14.04 LTS In-Reply-To: References: , Message-ID: I think the exact command was:"apt-get install libportaudio-dev"Try it and tell me Date: Thu, 18 Sep 2014 20:59:30 +0530 From: ecejegan at gmail.com To: users at lists.scilab.org Subject: [Scilab-users] Fwd: Error installing HART toolbox in ubuntu14.04 LTS Hi, I am trying to install HART toolbox on ubuntu14.04LTS. I just followed the instalation procedure from http://hart.sourceforge.net/rtai/installation_14_04_64bit_woc.html when i am trying to apply 'make' for the HART tool box i am getting the following error... root at SCADTPC:/usr/lib/hart/hart_0.4.6# make echo "execute builder.sce in scilab" execute builder.sce in scilab /usr/bin/scilab -nw -nb -f prepare_toolbox.sce; libEGL warning: failed to create a pipe screen for i965 -- Creation of [baselib] (Macros) -- genlib: Processing file: copynewerfile.sci genlib: Processing file: guimaker.sci genlib: Processing file: hart_edit_scicosblock.sci genlib: Processing file: hart_module_creator.sci genlib: Processing file: help_from_scicosblock.sci genlib: Processing file: inputui.sci genlib: Regenerate names and lib Build modules Preparing module: RTAI Error in comedi module! Could not found libcomedi.so! Not able to build module: comedi Not able to build module: daqmx Preparing module: hart_base Preparing module: portaudio rtpreempt-module will not build, as RTAI is installed! But it is possible to use rtpreempt codegeneration besides RTAI! Not able to build module: rtpreempt /usr/bin/scilab -nw -nb -f builder.sce; libEGL warning: failed to create a pipe screen for i965 Building macros... -- Creation of [baselib] (Macros) -- genlib: Processing file: copynewerfile.sci genlib: Processing file: guimaker.sci genlib: Processing file: hart_edit_scicosblock.sci genlib: Processing file: hart_module_creator.sci genlib: Processing file: help_from_scicosblock.sci genlib: Processing file: inputui.sci genlib: Regenerate names and lib -- Creation of [RtaiCodeGenlib] (Macros) -- -- Creation of [RTAIlib] (Macros) -- Building blocks... -- Creation of [hart_baselib] (Macros) -- Building blocks... -- Creation of [portaudiolib] (Macros) -- Building blocks... Building sources... Generate a loader file Generate a Makefile ilib_gen_Make: Copy compilation files (Makefile*, libtool...) to TMPDIR ilib_gen_Make: Copy getstr.c to TMPDIR ilib_gen_Make: Copy serial_linux.cpp to TMPDIR ilib_gen_Make: Copy rtai_sinus.c to TMPDIR ilib_gen_Make: Copy rtai_square.c to TMPDIR ilib_gen_Make: Copy rtai_step.c to TMPDIR ilib_gen_Make: Copy hart_soft_realtime.c to TMPDIR ilib_gen_Make: Copy hart_par2ser.c to TMPDIR ilib_gen_Make: Copy hart_ser2par.c to TMPDIR ilib_gen_Make: Copy iir_filter.c to TMPDIR ilib_gen_Make: Copy hart_filtfilt.c to TMPDIR ilib_gen_Make: Copy hart_socket.c to TMPDIR ilib_gen_Make: Copy hart_socketin.c to TMPDIR ilib_gen_Make: Copy hart_flagtest.c to TMPDIR ilib_gen_Make: Copy hart_portaudio_in.c to TMPDIR ilib_gen_Make: Copy hart_portaudio_out.c to TMPDIR ilib_gen_Make: configure : Generate Makefile. ilib_gen_Make: Modification of the Makefile in TMPDIR. Running the Makefile !--error 10000 ilib_compile: An error occurred during the compilation: hart_par2ser.c: In function 'init': hart_par2ser.c:43:17: warning: incompatible implicit declaration of built-in function 'printf' [enabled by default] printf("par2ser: ipar error\n"); ^ hart_ser2par.c: In function 'init': hart_ser2par.c:43:3: warning: incompatible implicit declaration of built-in function 'printf' [enabled by default] printf("ser2par: ipar error\n"); ^ iir_filter.c: In function 'dumpIIRfiltToFile': iir_filter.c:628:3: warning: format '%s' expects argument of type 'char *', but argument 3 has type 'int' [-Wformat=] fprintf(fid, "# %s", ctime(&now)); ^ hart_flagtest.c: In function 'init': hart_flagtest.c:35:3: warning: incompatible implicit declaration of built-in function 'printf' [enabled by default] printf("Flag 4: initalisation, t=%f\n",get_scicos_time()); ^ hart_flagtest.c:35:3: warning: format '%f' expects argument of type 'double', but argument 2 has type 'int' [-Wformat=] hart_flagtest.c: In function 'state': hart_flagtest.c:62:6: warning: incompatible implicit declaration of built-in function 'printf' [enabled by default] printf("Flag 0: update state, step=%d, t=%f\n",comdev->step,comdev->time); ^ hart_flagtest.c: In function 'in': hart_flagtest.c:69:6: warning: incompatible implicit declaration of built-in function 'printf' [enabled by default] printf(" Flag 2 "); ^ hart_flagtest.c: In function 'inout': hart_flagtest.c:83:6: warning: incompatible implicit declaration of built-in function 'printf' [enabled by default] printf("Flag 1: update output, step=%d, t=%f\n",comdev->step,comdev->time); ^ hart_flagtest.c: In function 'eventout': hart_flagtest.c:104:6: warning: incompatible implicit declaration of built-in function 'printf' [enabled by default] printf("Flag 3: update event output, step=%d, t=%f\n",comdev->step,comdev->time); ^ hart_flagtest.c: In function 'end': hart_flagtest.c:118:3: warning: incompatible implicit declaration of built-in function 'printf' [enabled by default] printf("Flag 4: ending, step=%d, t=%f\n",comdev->step,comdev->time); ^ hart_portaudio_in.c:3:23: fatal error: portaudio.h: No such file or directory #include "portaudio.h" ^ compilation terminated. make[1]: *** [hart_portaudio_in.lo] Error 1 ilib_compile: The command was: make CFLAGS=" -D__SCILAB_TOOLBOX__ -I/usr/share/scilab//../../include/scilab/ -I/usr/share/scilab//../../include/ -I/usr/lib/hart/hart_0.4.6/src/c/ -I/usr/lib/hart/hart_0.4.6/src/c/../../includes -I/usr/share/scilab//../../include/scilab/scicos/ -I/usr/share/scilab//../../include/scilab/scicos_blocks/ -I/usr/share/scilab//../../include/scilab/ -D_TTY_POSIX_ " CXXFLAGS=" -D__SCILAB_TOOLBOX__ -I/usr/share/scilab//../../include/scilab/ -I/usr/share/scilab//../../include/ -I/usr/lib/hart/hart_0.4.6/src/c/ -I/usr/lib/hart/hart_0.4.6/src/c/../../includes -I/usr/share/scilab//../../include/scilab/scicos/ -I/usr/share/scilab//../../include/scilab/scicos_blocks/ -I/usr/share/scilab//../../include/scilab/ -D_TTY_POSIX_ " LDFLAGS="-lpthread -lstdc++ -lm -lportaudio " FFLAGS="-I/usr/share/scilab//../../include/scilab/ " at line 129 of function ilib_compile called by : at line 94 of function ilib_for_link called by : at line 28 of function tbx_build_src called by : tbx_build_src(names, files, 'c', src_c_path ,libs,ldflags,cflags,fflags,cc,libname); at line 24 of exec file called by : at line 13 of function tbx_builder called by : at line 49 of function tbx_builder_src_lang called by : tbx_builder_src_lang('c', src_dir); at line 3 of exec file called by : at line 13 of function tbx_builder called by : at line 32 of function tbx_builder_src called by : tbx_builder_src(toolbox_dir); at line 18 of exec file called by : exec('SCI/etc/scilab.start',-1);;exec('builder.sce',-1) --> Kindly let me know if i am missing anything....Anybody can please help.. Regards Jegan _______________________________________________ users mailing list users at lists.scilab.org http://lists.scilab.org/mailman/listinfo/users -------------- next part -------------- An HTML attachment was scrubbed... URL: From ecejegan at gmail.com Fri Sep 19 06:00:51 2014 From: ecejegan at gmail.com (Jegan Amirthalingam) Date: Fri, 19 Sep 2014 09:30:51 +0530 Subject: [Scilab-users] Fwd: Error installing HART toolbox in ubuntu14.04 LTS In-Reply-To: References: Message-ID: Hi Pablo, Thanks for helping me out... i installed the libportaudio-dev package,facing a new error again.... root at SCADTPC:/usr/lib/hart/hart_0.4.6#* dpkg -L libportaudio-dev* /. /usr /usr/lib /usr/lib/libportaudio.a /usr/lib/libportaudio.la /usr/include /usr/include/portaudio.h /usr/share /usr/share/doc /usr/share/doc/libportaudio-dev /usr/share/doc/libportaudio-dev/copyright /usr/share/doc/libportaudio-dev/changelog.Debian.gz /usr/lib/libportaudio.so root at SCADTPC:/usr/lib/hart/hart_0.4.6# *dpkg -l libportaudio-dev* Desired=Unknown/Install/Remove/Purge/Hold | Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend |/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad) ||/ Name Version Architecture Description +++-==============================-====================-====================-================================================================= ii libportaudio-dev 18.1-7.1 i386 Portable audio I/O - development files root at SCADTPC:/usr/lib/hart/hart_0.4.6# root at SCADTPC:/usr/lib/hart/hart_0.4.6# *make* echo "execute builder.sce in scilab" execute builder.sce in scilab /usr/bin/scilab -nw -nb -f prepare_toolbox.sce; libEGL warning: failed to create a pipe screen for i965 -- Creation of [baselib] (Macros) -- genlib: Processing file: copynewerfile.sci genlib: Processing file: guimaker.sci genlib: Processing file: hart_edit_scicosblock.sci genlib: Processing file: hart_module_creator.sci genlib: Processing file: help_from_scicosblock.sci genlib: Processing file: inputui.sci genlib: Regenerate names and lib Build modules Preparing module: RTAI Error in comedi module! Could not found libcomedi.so! Not able to build module: comedi Not able to build module: daqmx Preparing module: hart_base Preparing module: portaudio rtpreempt-module will not build, as RTAI is installed! But it is possible to use rtpreempt codegeneration besides RTAI! Not able to build module: rtpreempt /usr/bin/scilab -nw -nb -f builder.sce; libEGL warning: failed to create a pipe screen for i965 Building macros... -- Creation of [baselib] (Macros) -- genlib: Processing file: copynewerfile.sci genlib: Processing file: guimaker.sci genlib: Processing file: hart_edit_scicosblock.sci genlib: Processing file: hart_module_creator.sci genlib: Processing file: help_from_scicosblock.sci genlib: Processing file: inputui.sci genlib: Regenerate names and lib -- Creation of [RtaiCodeGenlib] (Macros) -- -- Creation of [RTAIlib] (Macros) -- Building blocks... -- Creation of [hart_baselib] (Macros) -- Building blocks... -- Creation of [portaudiolib] (Macros) -- Building blocks... Building sources... Generate a loader file Generate a Makefile ilib_gen_Make: Copy compilation files (Makefile*, libtool...) to TMPDIR ilib_gen_Make: Copy getstr.c to TMPDIR ilib_gen_Make: Copy serial_linux.cpp to TMPDIR ilib_gen_Make: Copy rtai_sinus.c to TMPDIR ilib_gen_Make: Copy rtai_square.c to TMPDIR ilib_gen_Make: Copy rtai_step.c to TMPDIR ilib_gen_Make: Copy hart_soft_realtime.c to TMPDIR ilib_gen_Make: Copy hart_par2ser.c to TMPDIR ilib_gen_Make: Copy hart_ser2par.c to TMPDIR ilib_gen_Make: Copy iir_filter.c to TMPDIR ilib_gen_Make: Copy hart_filtfilt.c to TMPDIR ilib_gen_Make: Copy hart_socket.c to TMPDIR ilib_gen_Make: Copy hart_socketin.c to TMPDIR ilib_gen_Make: Copy hart_flagtest.c to TMPDIR ilib_gen_Make: Copy hart_portaudio_in.c to TMPDIR ilib_gen_Make: Copy hart_portaudio_out.c to TMPDIR ilib_gen_Make: configure : Generate Makefile. ilib_gen_Make: Modification of the Makefile in TMPDIR. Running the Makefile * !--error 10000 ilib_compile: An error occurred during the compilation:* hart_par2ser.c: In function 'init': hart_par2ser.c:43:17: warning: incompatible implicit declaration of built-in function 'printf' [enabled by default] printf("par2ser: ipar error\n"); ^ hart_ser2par.c: In function 'init': hart_ser2par.c:43:3: warning: incompatible implicit declaration of built-in function 'printf' [enabled by default] printf("ser2par: ipar error\n"); ^ iir_filter.c: In function 'dumpIIRfiltToFile': iir_filter.c:628:3: warning: format '%s' expects argument of type 'char *', but argument 3 has type 'int' [-Wformat=] fprintf(fid, "# %s", ctime(&now)); ^ hart_flagtest.c: In function 'init': hart_flagtest.c:35:3: warning: incompatible implicit declaration of built-in function 'printf' [enabled by default] printf("Flag 4: initalisation, t=%f\n",get_scicos_time()); ^ hart_flagtest.c:35:3: warning: format '%f' expects argument of type 'double', but argument 2 has type 'int' [-Wformat=] hart_flagtest.c: In function 'state': hart_flagtest.c:62:6: warning: incompatible implicit declaration of built-in function 'printf' [enabled by default] printf("Flag 0: update state, step=%d, t=%f\n",comdev->step,comdev->time); ^ hart_flagtest.c: In function 'in': hart_flagtest.c:69:6: warning: incompatible implicit declaration of built-in function 'printf' [enabled by default] printf(" Flag 2 "); ^ hart_flagtest.c: In function 'inout': hart_flagtest.c:83:6: warning: incompatible implicit declaration of built-in function 'printf' [enabled by default] printf("Flag 1: update output, step=%d, t=%f\n",comdev->step,comdev->time); ^ hart_flagtest.c: In function 'eventout': hart_flagtest.c:104:6: warning: incompatible implicit declaration of built-in function 'printf' [enabled by default] printf("Flag 3: update event output, step=%d, t=%f\n",comdev->step,comdev->time); ^ hart_flagtest.c: In function 'end': hart_flagtest.c:118:3: warning: incompatible implicit declaration of built-in function 'printf' [enabled by default] printf("Flag 4: ending, step=%d, t=%f\n",comdev->step,comdev->time); ^ hart_portaudio_in.c:45:5: error: unknown type name 'PaStreamParameters' PaStreamParameters inputParameters; ^ hart_portaudio_in.c:46:5: error: unknown type name 'PaStreamParameters' PaStreamParameters outputParameters; ^ hart_portaudio_in.c:60:28: error: unknown type name 'PaStreamCallbackTimeInfo' const PaStreamCallbackTimeInfo* timeInfo, ^ hart_portaudio_in.c:61:28: error: unknown type name 'PaStreamCallbackFlags' PaStreamCallbackFlags statusFlags, ^ hart_portaudio_in.c: In function 'init': hart_portaudio_in.c:175:28: error: request for member 'device' in something not a structure or union comdev->inputParameters.device = Pa_GetDefaultInputDevice(); /* default input device */ ^ hart_portaudio_in.c:176:32: error: request for member 'device' in something not a structure or union if (comdev->inputParameters.device == paNoDevice) { ^ hart_portaudio_in.c:184:28: error: request for member 'channelCount' in something not a structure or union comdev->inputParameters.channelCount = comdev->channels; /* stereo input */ ^ hart_portaudio_in.c:185:28: error: request for member 'sampleFormat' in something not a structure or union comdev->inputParameters.sampleFormat = PA_SAMPLE_TYPE; ^ hart_portaudio_in.c:186:28: error: request for member 'suggestedLatency' in something not a structure or union comdev->inputParameters.suggestedLatency = Pa_GetDeviceInfo( comdev->inputParameters.device )->defaultLowInputLatency; ^ hart_portaudio_in.c:186:89: error: request for member 'device' in something not a structure or union comdev->inputParameters.suggestedLatency = Pa_at line 129 of function ilib_compile called by : at line 94 of function ilib_for_link called by : at line 28 of function tbx_build_src called by : tbx_build_src(names, files, 'c', src_c_path ,libs,ldflags,cflags,fflags,cc,libname); at line 24 of exec file called by : at line 13 of function tbx_builder called by : at line 49 of function tbx_builder_src_lang called by : tbx_builder_src_lang('c', src_dir); at line 3 of exec file called by : dpkg -l libportaudio-dev at line 13 of function tbx_builder called by : at line 32 of function tbx_builder_src called by : tbx_builder_src(toolbox_dir); at line 18 of exec file called by : exec('SCI/etc/scilab.start',-1);;exec('builder.sce',-1) --> Thank you...waiting for u r reply... regards | Jegan On Fri, Sep 19, 2014 at 12:46 AM, Pablo Fonovich wrote: > I think the exact command was: > "apt-get install libportaudio-dev" > Try it and tell me > > ------------------------------ > Date: Thu, 18 Sep 2014 20:59:30 +0530 > From: ecejegan at gmail.com > To: users at lists.scilab.org > Subject: [Scilab-users] Fwd: Error installing HART toolbox in ubuntu14.04 > LTS > > > Hi, > > I am trying to install HART toolbox on ubuntu14.04LTS. > > I just followed the instalation procedure from > http://hart.sourceforge.net/rtai/installation_14_04_64bit_woc.html > > when i am trying to apply 'make' for the HART tool box i am getting the > following error... > > root at SCADTPC:/usr/lib/hart/hart_0.4.6# make > echo "execute builder.sce in scilab" > execute builder.sce in scilab > /usr/bin/scilab -nw -nb -f prepare_toolbox.sce; > libEGL warning: failed to create a pipe screen for i965 > -- Creation of [baselib] (Macros) -- > genlib: Processing file: copynewerfile.sci > genlib: Processing file: guimaker.sci > genlib: Processing file: hart_edit_scicosblock.sci > genlib: Processing file: hart_module_creator.sci > genlib: Processing file: help_from_scicosblock.sci > genlib: Processing file: inputui.sci > genlib: Regenerate names and lib > > Build modules > > Preparing module: RTAI > > Error in comedi module! Could not found libcomedi.so! > > Not able to build module: comedi > > Not able to build module: daqmx > > Preparing module: hart_base > > Preparing module: portaudio > > rtpreempt-module will not build, as RTAI is installed! But it is possible > to use rtpreempt codegeneration besides RTAI! > > Not able to build module: rtpreempt > /usr/bin/scilab -nw -nb -f builder.sce; > libEGL warning: failed to create a pipe screen for i965 > Building macros... > -- Creation of [baselib] (Macros) -- > genlib: Processing file: copynewerfile.sci > genlib: Processing file: guimaker.sci > genlib: Processing file: hart_edit_scicosblock.sci > genlib: Processing file: hart_module_creator.sci > genlib: Processing file: help_from_scicosblock.sci > genlib: Processing file: inputui.sci > genlib: Regenerate names and lib > -- Creation of [RtaiCodeGenlib] (Macros) -- > -- Creation of [RTAIlib] (Macros) -- > Building blocks... > -- Creation of [hart_baselib] (Macros) -- > Building blocks... > -- Creation of [portaudiolib] (Macros) -- > Building blocks... > Building sources... > Generate a loader file > Generate a Makefile > ilib_gen_Make: Copy compilation files (Makefile*, libtool...) to TMPDIR > ilib_gen_Make: Copy getstr.c to TMPDIR > ilib_gen_Make: Copy serial_linux.cpp to TMPDIR > ilib_gen_Make: Copy rtai_sinus.c to TMPDIR > ilib_gen_Make: Copy rtai_square.c to TMPDIR > ilib_gen_Make: Copy rtai_step.c to TMPDIR > ilib_gen_Make: Copy hart_soft_realtime.c to TMPDIR > ilib_gen_Make: Copy hart_par2ser.c to TMPDIR > ilib_gen_Make: Copy hart_ser2par.c to TMPDIR > ilib_gen_Make: Copy iir_filter.c to TMPDIR > ilib_gen_Make: Copy hart_filtfilt.c to TMPDIR > ilib_gen_Make: Copy hart_socket.c to TMPDIR > ilib_gen_Make: Copy hart_socketin.c to TMPDIR > ilib_gen_Make: Copy hart_flagtest.c to TMPDIR > ilib_gen_Make: Copy hart_portaudio_in.c to TMPDIR > ilib_gen_Make: Copy hart_portaudio_out.c to TMPDIR > ilib_gen_Make: configure : Generate Makefile. > ilib_gen_Make: Modification of the Makefile in TMPDIR. > Running the Makefile > !--error 10000 > ilib_compile: An error occurred during the compilation: > hart_par2ser.c: In function 'init': > hart_par2ser.c:43:17: warning: incompatible implicit declaration of > built-in function 'printf' [enabled by default] > printf("par2ser: ipar error\n"); > ^ > hart_ser2par.c: In function 'init': > hart_ser2par.c:43:3: warning: incompatible implicit declaration of > built-in function 'printf' [enabled by default] > printf("ser2par: ipar error\n"); > ^ > iir_filter.c: In function 'dumpIIRfiltToFile': > iir_filter.c:628:3: warning: format '%s' expects argument of type 'char > *', but argument 3 has type 'int' [-Wformat=] > fprintf(fid, "# %s", ctime(&now)); > ^ > hart_flagtest.c: In function 'init': > hart_flagtest.c:35:3: warning: incompatible implicit declaration of > built-in function 'printf' [enabled by default] > printf("Flag 4: initalisation, t=%f\n",get_scicos_time()); > ^ > hart_flagtest.c:35:3: warning: format '%f' expects argument of type > 'double', but argument 2 has type 'int' [-Wformat=] > hart_flagtest.c: In function 'state': > hart_flagtest.c:62:6: warning: incompatible implicit declaration of > built-in function 'printf' [enabled by default] > printf("Flag 0: update state, step=%d, > t=%f\n",comdev->step,comdev->time); > ^ > hart_flagtest.c: In function 'in': > hart_flagtest.c:69:6: warning: incompatible implicit declaration of > built-in function 'printf' [enabled by default] > printf(" Flag 2 "); > ^ > hart_flagtest.c: In function 'inout': > hart_flagtest.c:83:6: warning: incompatible implicit declaration of > built-in function 'printf' [enabled by default] > printf("Flag 1: update output, step=%d, > t=%f\n",comdev->step,comdev->time); > ^ > hart_flagtest.c: In function 'eventout': > hart_flagtest.c:104:6: warning: incompatible implicit declaration of > built-in function 'printf' [enabled by default] > printf("Flag 3: update event output, step=%d, > t=%f\n",comdev->step,comdev->time); > ^ > hart_flagtest.c: In function 'end': > hart_flagtest.c:118:3: warning: incompatible implicit declaration of > built-in function 'printf' [enabled by default] > printf("Flag 4: ending, step=%d, t=%f\n",comdev->step,comdev->time); > ^ > hart_portaudio_in.c:3:23: fatal error: portaudio.h: No such file or > directory > #include "portaudio.h" > ^ > compilation terminated. > make[1]: *** [hart_portaudio_in.lo] Error 1 > ilib_compile: The command was: > make CFLAGS=" -D__SCILAB_TOOLBOX__ > -I/usr/share/scilab//../../include/scilab/ > -I/usr/share/scilab//../../include/ -I/usr/lib/hart/hart_0.4.6/src/c/ > -I/usr/lib/hart/hart_0.4.6/src/c/../../includes > -I/usr/share/scilab//../../include/scilab/scicos/ > -I/usr/share/scilab//../../include/scilab/scicos_blocks/ > -I/usr/share/scilab//../../include/scilab/ -D_TTY_POSIX_ " CXXFLAGS=" > -D__SCILAB_TOOLBOX__ -I/usr/share/scilab//../../include/scilab/ > -I/usr/share/scilab//../../include/ -I/usr/lib/hart/hart_0.4.6/src/c/ > -I/usr/lib/hart/hart_0.4.6/src/c/../../includes > -I/usr/share/scilab//../../include/scilab/scicos/ > -I/usr/share/scilab//../../include/scilab/scicos_blocks/ > -I/usr/share/scilab//../../include/scilab/ -D_TTY_POSIX_ " > LDFLAGS="-lpthread -lstdc++ -lm -lportaudio " > FFLAGS="-I/usr/share/scilab//../../include/scilab/ " > at line 129 of function ilib_compile called by : > at line 94 of function ilib_for_link called by : > at line 28 of function tbx_build_src called by : > tbx_build_src(names, files, 'c', src_c_path > ,libs,ldflags,cflags,fflags,cc,libname); > at line 24 of exec file called by : > > at line 13 of function tbx_builder called by : > at line 49 of function tbx_builder_src_lang called by : > tbx_builder_src_lang('c', src_dir); > at line 3 of exec file called by : > > at line 13 of function tbx_builder called by : > at line 32 of function tbx_builder_src called by : > tbx_builder_src(toolbox_dir); > at line 18 of exec file called by : > exec('SCI/etc/scilab.start',-1);;exec('builder.sce',-1) > > > --> > > > Kindly let me know if i am missing anything....Anybody can please help.. > > Regards > Jegan > > > _______________________________________________ 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 mazue.quentin at gmail.com Fri Sep 19 08:35:26 2014 From: mazue.quentin at gmail.com (=?UTF-8?Q?Quentin_Mazu=C3=A9?=) Date: Thu, 18 Sep 2014 23:35:26 -0700 (PDT) Subject: [Scilab-users] Scilab : Save all values starting with "vout_" Message-ID: <1411108526483-4031184.post@n3.nabble.com> Hello, I have a list of variables of different type starting with the same prefix : 'vout_' (for example : vout_time, vout_voltage, vout_current,...) In Matlab, if I want to save all these values (starting with 'vout_' ) I use the following command : save('MySavedValues.mat','vout_*') In Scilab I didn't find any equivalent syntax. Consequently I use the following code : variables2save = []; variables = who('local'); for i = 1:size(variables,1) if part(variables(i), 1:5) == "vout_" then variables2save = [variables2save;variables(i)]; end end savematfile('Resultats_Xcos.mat',variables2save,'-v7') Is there any simplest way to do it? Thanks in advance Quentin -- View this message in context: http://mailinglists.scilab.org/Scilab-Save-all-values-starting-with-vout-tp4031184.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From ecejegan at gmail.com Thu Sep 18 17:18:34 2014 From: ecejegan at gmail.com (Jegan Amirthalingam) Date: Thu, 18 Sep 2014 20:48:34 +0530 Subject: [Scilab-users] Error installing HART toolbox in ubuntu14.04 LTS Message-ID: Hi, I am trying to install HART toolbox on ubuntu14.04LTS. I just followed the instalation procedure from http://hart.sourceforge.net/rtai/installation_14_04_64bit_woc.html when i am trying to apply 'make' for the HART tool box i am getting the following error... root at SCADTPC:/usr/lib/hart/hart_0.4.6# make echo "execute builder.sce in scilab" execute builder.sce in scilab /usr/bin/scilab -nw -nb -f prepare_toolbox.sce; libEGL warning: failed to create a pipe screen for i965 -- Creation of [baselib] (Macros) -- genlib: Processing file: copynewerfile.sci genlib: Processing file: guimaker.sci genlib: Processing file: hart_edit_scicosblock.sci genlib: Processing file: hart_module_creator.sci genlib: Processing file: help_from_scicosblock.sci genlib: Processing file: inputui.sci genlib: Regenerate names and lib Build modules Preparing module: RTAI Error in comedi module! Could not found libcomedi.so! Not able to build module: comedi Not able to build module: daqmx Preparing module: hart_base Preparing module: portaudio rtpreempt-module will not build, as RTAI is installed! But it is possible to use rtpreempt codegeneration besides RTAI! Not able to build module: rtpreempt /usr/bin/scilab -nw -nb -f builder.sce; libEGL warning: failed to create a pipe screen for i965 Building macros... -- Creation of [baselib] (Macros) -- genlib: Processing file: copynewerfile.sci genlib: Processing file: guimaker.sci genlib: Processing file: hart_edit_scicosblock.sci genlib: Processing file: hart_module_creator.sci genlib: Processing file: help_from_scicosblock.sci genlib: Processing file: inputui.sci genlib: Regenerate names and lib -- Creation of [RtaiCodeGenlib] (Macros) -- -- Creation of [RTAIlib] (Macros) -- Building blocks... -- Creation of [hart_baselib] (Macros) -- Building blocks... -- Creation of [portaudiolib] (Macros) -- Building blocks... Building sources... Generate a loader file Generate a Makefile ilib_gen_Make: Copy compilation files (Makefile*, libtool...) to TMPDIR ilib_gen_Make: Copy getstr.c to TMPDIR ilib_gen_Make: Copy serial_linux.cpp to TMPDIR ilib_gen_Make: Copy rtai_sinus.c to TMPDIR ilib_gen_Make: Copy rtai_square.c to TMPDIR ilib_gen_Make: Copy rtai_step.c to TMPDIR ilib_gen_Make: Copy hart_soft_realtime.c to TMPDIR ilib_gen_Make: Copy hart_par2ser.c to TMPDIR ilib_gen_Make: Copy hart_ser2par.c to TMPDIR ilib_gen_Make: Copy iir_filter.c to TMPDIR ilib_gen_Make: Copy hart_filtfilt.c to TMPDIR ilib_gen_Make: Copy hart_socket.c to TMPDIR ilib_gen_Make: Copy hart_socketin.c to TMPDIR ilib_gen_Make: Copy hart_flagtest.c to TMPDIR ilib_gen_Make: Copy hart_portaudio_in.c to TMPDIR ilib_gen_Make: Copy hart_portaudio_out.c to TMPDIR ilib_gen_Make: configure : Generate Makefile. ilib_gen_Make: Modification of the Makefile in TMPDIR. Running the Makefile !--error 10000 ilib_compile: An error occurred during the compilation: hart_par2ser.c: In function 'init': hart_par2ser.c:43:17: warning: incompatible implicit declaration of built-in function 'printf' [enabled by default] printf("par2ser: ipar error\n"); ^ hart_ser2par.c: In function 'init': hart_ser2par.c:43:3: warning: incompatible implicit declaration of built-in function 'printf' [enabled by default] printf("ser2par: ipar error\n"); ^ iir_filter.c: In function 'dumpIIRfiltToFile': iir_filter.c:628:3: warning: format '%s' expects argument of type 'char *', but argument 3 has type 'int' [-Wformat=] fprintf(fid, "# %s", ctime(&now)); ^ hart_flagtest.c: In function 'init': hart_flagtest.c:35:3: warning: incompatible implicit declaration of built-in function 'printf' [enabled by default] printf("Flag 4: initalisation, t=%f\n",get_scicos_time()); ^ hart_flagtest.c:35:3: warning: format '%f' expects argument of type 'double', but argument 2 has type 'int' [-Wformat=] hart_flagtest.c: In function 'state': hart_flagtest.c:62:6: warning: incompatible implicit declaration of built-in function 'printf' [enabled by default] printf("Flag 0: update state, step=%d, t=%f\n",comdev->step,comdev->time); ^ hart_flagtest.c: In function 'in': hart_flagtest.c:69:6: warning: incompatible implicit declaration of built-in function 'printf' [enabled by default] printf(" Flag 2 "); ^ hart_flagtest.c: In function 'inout': hart_flagtest.c:83:6: warning: incompatible implicit declaration of built-in function 'printf' [enabled by default] printf("Flag 1: update output, step=%d, t=%f\n",comdev->step,comdev->time); ^ hart_flagtest.c: In function 'eventout': hart_flagtest.c:104:6: warning: incompatible implicit declaration of built-in function 'printf' [enabled by default] printf("Flag 3: update event output, step=%d, t=%f\n",comdev->step,comdev->time); ^ hart_flagtest.c: In function 'end': hart_flagtest.c:118:3: warning: incompatible implicit declaration of built-in function 'printf' [enabled by default] printf("Flag 4: ending, step=%d, t=%f\n",comdev->step,comdev->time); ^ hart_portaudio_in.c:3:23: fatal error: portaudio.h: No such file or directory #include "portaudio.h" ^ compilation terminated. make[1]: *** [hart_portaudio_in.lo] Error 1 ilib_compile: The command was: make CFLAGS=" -D__SCILAB_TOOLBOX__ -I/usr/share/scilab//../../include/scilab/ -I/usr/share/scilab//../../include/ -I/usr/lib/hart/hart_0.4.6/src/c/ -I/usr/lib/hart/hart_0.4.6/src/c/../../includes -I/usr/share/scilab//../../include/scilab/scicos/ -I/usr/share/scilab//../../include/scilab/scicos_blocks/ -I/usr/share/scilab//../../include/scilab/ -D_TTY_POSIX_ " CXXFLAGS=" -D__SCILAB_TOOLBOX__ -I/usr/share/scilab//../../include/scilab/ -I/usr/share/scilab//../../include/ -I/usr/lib/hart/hart_0.4.6/src/c/ -I/usr/lib/hart/hart_0.4.6/src/c/../../includes -I/usr/share/scilab//../../include/scilab/scicos/ -I/usr/share/scilab//../../include/scilab/scicos_blocks/ -I/usr/share/scilab//../../include/scilab/ -D_TTY_POSIX_ " LDFLAGS="-lpthread -lstdc++ -lm -lportaudio " FFLAGS="-I/usr/share/scilab//../../include/scilab/ " at line 129 of function ilib_compile called by : at line 94 of function ilib_for_link called by : at line 28 of function tbx_build_src called by : tbx_build_src(names, files, 'c', src_c_path ,libs,ldflags,cflags,fflags,cc,libname); at line 24 of exec file called by : at line 13 of function tbx_builder called by : at line 49 of function tbx_builder_src_lang called by : tbx_builder_src_lang('c', src_dir); at line 3 of exec file called by : at line 13 of function tbx_builder called by : at line 32 of function tbx_builder_src called by : tbx_builder_src(toolbox_dir); at line 18 of exec file called by : exec('SCI/etc/scilab.start',-1);;exec('builder.sce',-1) --> Kindly let me know if i am missing anything....Anybody can please help.. Regards Jegan -------------- next part -------------- An HTML attachment was scrubbed... URL: From mazue.quentin at gmail.com Fri Sep 19 11:05:07 2014 From: mazue.quentin at gmail.com (=?UTF-8?Q?Quentin_Mazu=C3=A9?=) Date: Fri, 19 Sep 2014 02:05:07 -0700 (PDT) Subject: [Scilab-users] Xcos : Inherited values got with To workspace block Message-ID: <1411117507103-4031186.post@n3.nabble.com> Hello, I notice a special behaviour of Xcos and I would like to know the reason. I uploaded below 2 files to reproduce this behaviour : File 1 : Multif_integralV2_1.zcos File 2 : Multif_integralV2_2.zcos In the first file, when you launch the simulation, values of A, B, C and D are sampled at 100Hz untill 5sec and 10Hz after. Only E is sampled at 100Hz along the whole simulation because of the solver specification (RK 4-5). The only difference between file 1 and file 2, is the static block. Why, in this diagram values of B and C are sampled at 100Hz along the whole simulation as the value E? Regards Quentin Mazu? -- View this message in context: http://mailinglists.scilab.org/Xcos-Inherited-values-got-with-To-workspace-block-tp4031186.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From cfuttrup at gmail.com Sat Sep 20 19:38:49 2014 From: cfuttrup at gmail.com (Claus Futtrup) Date: Sat, 20 Sep 2014 19:38:49 +0200 Subject: [Scilab-users] Stockwell transform Message-ID: <541DBBA9.6020803@gmail.com> I have searched Scilab for S transform (Stockwell transform), which is a very nice time-frequency analysis ... but can it be true that it is missing from the Scilab library? Here's open source code available, which I think should be included in Scilab: http://sourceforge.net/projects/fst-uofc/ (The time frequency toolbox seems to not support Stockwell - https://atoms.scilab.org/toolboxes/stftb - neither does the wavelet toolbox ) /Claus From quantparis at numericable.fr Sun Sep 21 17:57:28 2014 From: quantparis at numericable.fr (quantparis at numericable.fr) Date: Sun, 21 Sep 2014 17:57:28 +0200 (CEST) Subject: [Scilab-users] =?iso-8859-1?q?=22scilab_cannot_open_jvm_library?= =?iso-8859-1?q?=22_with_call=5Fscilab=2Cwindows7=2Cvs2010?= Message-ID: Hello I am trying to run call_scilab on windows 7, visual studio 2010Pro the version used is 5.5.0 64bits compile with the include in core,api_scilab,call_scilab and link with api_scilab.lib and call_scilab.lib the compile/link are ok but the code : if (StartScilab(NULL, NULL, NULL) == FALSE) { ?????? cout << "Error while calling StartScilab" << endl; } gives in execution ""scilab cannot open jvm library" with the following code it's the same thing if (StartScilab("C:/Program Files/scilab-5.5.0/bin", NULL, 0) == FALSE) { ?????? cout << "Error while calling StartScilab" << endl; } I try to set a link to another java "c:\Program Files\Java\jre7" with the same message I don't know what to do as I am using the binary version of scilab, a message says "that I must report the bug", scilab works well with it's own interface I am not sure it's really a bug Thank you in advance for suggestion/solution Pascal -------------- next part -------------- An HTML attachment was scrubbed... URL: From Christophe.Dang at sidel.com Mon Sep 22 09:56:45 2014 From: Christophe.Dang at sidel.com (Dang, Christophe) Date: Mon, 22 Sep 2014 09:56:45 +0200 Subject: [Scilab-users] Matlab/Scilab In-Reply-To: References: Message-ID: <3B5FFC67498DFF49AE7271A584867D16F40BEDA0B9@301EX00100.sidel.com> Hello, > De : Temitope Isaiah > Envoy? : mercredi 17 septembre 2014 12:50 > > I am a new user. what is the difference between matlab and scilab? You might have a look at: Alan Edelman, Open Source and Traditional Technical Computing (MIT, 2010) https://www.scilab.org/content/download/395/2850/file/ScilabTec_Keynote.pdf Eike Rietsch, Scilab from a Matlab User's Point of View (INRIA, 2010) http://wiki.scilab.org/Tutorials?action=AttachFile&do=get&target=Scilab4Matlab.pdf Best regards -- Christophe Dang Ngoc Chan Mechanical calculation engineer This e-mail may contain confidential and / or privileged information. If you are not the intended recipient (or have received this e-mail in error), please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden. From clement.david at scilab-enterprises.com Mon Sep 22 12:46:16 2014 From: clement.david at scilab-enterprises.com (=?ISO-8859-1?Q?Cl=E9ment?= David) Date: Mon, 22 Sep 2014 11:46:16 +0100 Subject: [Scilab-users] "scilab cannot open jvm library" with call_scilab, windows7, vs2010 In-Reply-To: References: Message-ID: <1411382776.5440.4.camel@naxos> Hello, That's just an idea but did you try to link explicitly with the scilab provided JVM ? Regards, -- Cl?ment Le dimanche 21 septembre 2014 ? 17:57 +0200, quantparis at numericable.fr a ?crit : > Hello > > I am trying to run call_scilab on windows 7, visual studio 2010Pro > the version used is 5.5.0 64bits > > compile with the include in core,api_scilab,call_scilab > and link with api_scilab.lib and call_scilab.lib > the compile/link are ok but the code : > > if (StartScilab(NULL, NULL, NULL) == FALSE) { > cout << "Error while calling StartScilab" << endl; > } > > gives in execution ""scilab cannot open jvm library" > > with the following code it's the same thing > if (StartScilab("C:/Program Files/scilab-5.5.0/bin", NULL, 0) == > FALSE) { > cout << "Error while calling StartScilab" << endl; > } > > I try to set a link to another java "c:\Program Files\Java\jre7" with > the same > message > > I don't know what to do as I am using the binary version of scilab, > a message says "that I must report the bug", scilab works well with > it's own interface > I am not sure it's really a bug > > Thank you in advance for suggestion/solution > > Pascal > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users From skiba.g at gmail.com Tue Sep 23 08:14:57 2014 From: skiba.g at gmail.com (Grzegorz Skiba) Date: Tue, 23 Sep 2014 08:14:57 +0200 Subject: [Scilab-users] XCos cscope parameter change beafore sim Message-ID: Hi all, I want to change background color and other settings of XCos CSCOPE block beafore simulation starts. I was trying with pre_xcos_simulate hook but without success. This is an example code which I want to setup cscope with. // post_xcos_simulate list_fig=winsid(); for i=1:length(list_fig) h=get_figure_handle(list_fig(i )); axes = h.children; axes.grid = [1,1]; axes.grid_style = [9,10]; poliline = axes.children; poliline.polyline_style = 2; end Thanks for help. Regards Grzegorz -------------- next part -------------- An HTML attachment was scrubbed... URL: From mazue.quentin at gmail.com Tue Sep 23 16:45:47 2014 From: mazue.quentin at gmail.com (=?UTF-8?Q?Quentin_Mazu=C3=A9?=) Date: Tue, 23 Sep 2014 07:45:47 -0700 (PDT) Subject: [Scilab-users] xcos : xcos_simulate(scs_m, 1) or xcos_simulate(scs_m, 4) Message-ID: <1411483547009-4031207.post@n3.nabble.com> Hello, I finished a quite large Xcos-diagram and I have to launch calculation in batch mode from a GUI. I have 2 different procedures : Procedure 1 : 1) Use importXcosDiagram(...) to get the scs_m : import once for all my simulations 2) Use xcos_compile(scs_m) to get the %cpr : done once for all my simulations 3) Use xcos_simulate(scs_m,1) to launch the first simulation. Procedure 2 : 1) Use importXcosDiagram(...) to get the scs_m : import once for all my simulations 2) Do nothing 3) Use xcos_simulate(scs_m,4) to launch the first simulation. All the duration are obtained with tic();...;disp(toc()); I notice that for procedure 1 and 2, the step 1 is fast (around 2-3sec) For procedure 1, step 2 last around 25sec when step 3 last 40sec. => for 1 simulation : total time = 65sec However for procedure 2 step 3 last 50sec. => for 1 simulation : total time = 50sec According to the help, the difference between my two procedures is that in procedure 1 I compile the diagram and then I simulate and in procedure 2 I compile and simulate within the same function. => Consequently why is there a difference of 15sec between this 2 procedures even though they should be the same ? =>After step 3), could I change my input variables (which are not in Xcos context but in Scilab workspace) and then launch a new simulation as in step 3 ? Will my new results be correct ? -- View this message in context: http://mailinglists.scilab.org/xcos-xcos-simulate-scs-m-1-or-xcos-simulate-scs-m-4-tp4031207.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From ecejegan at gmail.com Wed Sep 24 11:28:31 2014 From: ecejegan at gmail.com (Jegan Amirthalingam) Date: Wed, 24 Sep 2014 14:58:31 +0530 Subject: [Scilab-users] Error in installing qrtailab in ubuntu Message-ID: Hi, I am trying to install Qrtailab on ubuntu14.04LTS. I just followed the instalation procedure from http://qrtailab.sourceforge.net/index.html when i am trying to apply 'make' for the Qrtailab i am getting the error...which is attached below.... Requirements for Qrtailab ============= - rtai-kernel installed (version 3.8.13-rtai) - rtai in /usr/realtime -available - Qt4 -version 4.8.6 installed (by compiling the source) - qwt -version 6.1.1 installed (by compiling the source) Kindly let me know if i am missing anything....Anybody can please help.. Regards Jegan -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: error Type: application/octet-stream Size: 60290 bytes Desc: not available URL: From embedded.toolbox at gmail.com Tue Sep 23 17:20:02 2014 From: embedded.toolbox at gmail.com (Embedded Toolbox) Date: Tue, 23 Sep 2014 17:20:02 +0200 Subject: [Scilab-users] block.work in Scilab coded block Message-ID: Hi all, I have uploaded on Atoms a new toolbox called "leftwavedenoise". For this toolbox, I had to code the block simulation function in Scilab. Because I needed a memory in the block simulation function, I used block.work variable to store the data I want to access next time the simulation function is called. I put a scalar into block.work which is in fact a counter. What's strange is that sometimes, this counter does not seems to be incremented and stored as incremented preventing my block from working. You will find the code of the simulation function attached to this mail. If you want to have the full source, check the atoms repository. Any idea on this strange behavior of block.work in scilab code ? Best regards. Alexandre HERISSE. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: wavelet_sim.sci Type: application/x-scilab-sci Size: 1817 bytes Desc: not available URL: From tanthiamhuat at yahoo.com Sat Sep 27 01:53:26 2014 From: tanthiamhuat at yahoo.com (tanthiamhuat) Date: Fri, 26 Sep 2014 16:53:26 -0700 (PDT) Subject: [Scilab-users] microarray data analysis using Scilab Message-ID: <1411775606890-4031212.post@n3.nabble.com> can I check whether Scilab is useful for microarray data analysis? are there some examples? or is R more useful for such purpose on microarray data analysis? we need to consider high dimensional data plotting too.. can Scilab handle it? -- View this message in context: http://mailinglists.scilab.org/microarray-data-analysis-using-Scilab-tp4031212.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From rashmi.19 at gmail.com Sat Sep 27 11:32:49 2014 From: rashmi.19 at gmail.com (Mathseco) Date: Sat, 27 Sep 2014 02:32:49 -0700 (PDT) Subject: [Scilab-users] Simulation of static general equilbiirum model Message-ID: <1411810369224-4031213.post@n3.nabble.com> Hi i'm new to scilab !!! I have a static general equilibrium model with 8 endogenous variable and 8 independent equations. Can anyone guide me how to do simulation of such model in scilab ? I want to get the values of endogenous variable in the model by solving those equations for different values of exogenous variables.Please guide me....Thanks -- View this message in context: http://mailinglists.scilab.org/Simulation-of-static-general-equilbiirum-model-tp4031213.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From mjmccann at ieee.org Sat Sep 27 12:46:10 2014 From: mjmccann at ieee.org (Michael J McCann) Date: Sat, 27 Sep 2014 10:46:10 +0000 Subject: [Scilab-users] Simulation of static general equilbiirum model In-Reply-To: <1411810369224-4031213.post@n3.nabble.com> References: <1411810369224-4031213.post@n3.nabble.com> Message-ID: <54269572.5070707@ieee.org> In general this is not a 'simulation' problem. Static equilibrium involves no dynamics, but I have in the past used analog computing ideas to get to a static equilibrium because the system was intrinsically stable. If you have (or can create) the underlying differential equations and are looking for their equilibrium then you can just let it run till it settles to the steady state. A trick is to ignore the coefficients of the dx/dt terms and make them all the same e.g. unity and then the convergence can be speeded up. When you have done all that you have a sort of successive approximation method for equilbrium but really you should be getting help from someone who will guide you into the usual numerical techniques e.g Newton Raphson. Mike. ============== On 2014-09-27 9:32, Mathseco wrote: > Hi i'm new to scilab !!! > > I have a static general equilibrium model with 8 endogenous variable and 8 > independent equations. > > Can anyone guide me how to do simulation of such model in scilab ? I want to > get the values of endogenous variable in the model by solving those > equations for different values of exogenous variables.Please guide > me....Thanks > > > > -- > View this message in context: http://mailinglists.scilab.org/Simulation-of-static-general-equilbiirum-model-tp4031213.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 > -- Dr.M.J.McCann,MJMcCann-Consulting From grocer.toolbox at gmail.com Sat Sep 27 12:55:38 2014 From: grocer.toolbox at gmail.com (Eric Dubois) Date: Sat, 27 Sep 2014 12:55:38 +0200 Subject: [Scilab-users] Simulation of static general equilbiirum model In-Reply-To: <1411810369224-4031213.post@n3.nabble.com> References: <1411810369224-4031213.post@n3.nabble.com> Message-ID: Hi. Well, in Scilab you will have to write a function with the text of your equations transfroemd so that your endogenous variables appear as corrdinates of a vector (such as param(1),..., param(8) since you have 8 endogenous variables) that takes your endogenous variables as a vector of parameters; you can thereafter use Scilab function fsolve that solves a system of n non linear equations with n unknown variables. This a very manual way to proceed. In particular, you have to handle the time dimension by hand. I am currently working on a somehow industrialized version of that (not achieved; for insatnce it does deal yet with dynamic models and coefficients must be dela manually), that could work in your case. If you are interested in them, I can communicate them to you. Eric. 2014-09-27 11:32 GMT+02:00 Mathseco : > Hi i'm new to scilab !!! > > I have a static general equilibrium model with 8 endogenous variable and 8 > independent equations. > > Can anyone guide me how to do simulation of such model in scilab ? I want > to > get the values of endogenous variable in the model by solving those > equations for different values of exogenous variables.Please guide > me....Thanks > > > > -- > View this message in context: > http://mailinglists.scilab.org/Simulation-of-static-general-equilbiirum-model-tp4031213.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 rashmi.19 at gmail.com Sat Sep 27 16:33:02 2014 From: rashmi.19 at gmail.com (Mathseco) Date: Sat, 27 Sep 2014 07:33:02 -0700 (PDT) Subject: [Scilab-users] Simulation of static general equilbiirum model In-Reply-To: References: <1411810369224-4031213.post@n3.nabble.com> Message-ID: <1411828382458-4031216.post@n3.nabble.com> could you please elaborate little more on how can i apply fsolve function here as I am a beginner in scilab?? Thanks -- View this message in context: http://mailinglists.scilab.org/Simulation-of-static-general-equilbiirum-model-tp4031213p4031216.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From grocer.toolbox at gmail.com Sat Sep 27 17:18:40 2014 From: grocer.toolbox at gmail.com (Eric Dubois) Date: Sat, 27 Sep 2014 17:18:40 +0200 Subject: [Scilab-users] Simulation of static general equilbiirum model In-Reply-To: <1411828382458-4031216.post@n3.nabble.com> References: <1411810369224-4031213.post@n3.nabble.com> <1411828382458-4031216.post@n3.nabble.com> Message-ID: For instance, suppose you have the very simple model: log(c)=a*log(R)+b*un R=c*C+G c and R are your endogenous variables, un and G your exogenosu ones. Then define the function: function resid=model(param) resid(1)=log(param(1))-a*log(param(2))-b*un resid(2)=param(2)-c*param(1)-G endfunction provided that un and G are the values of your exogenous variables at the simulation date and that you have guesstimate of 100 and 110 for C and R , then x=fsolve([100;110],model) should do the trick Help fsolve for more details on the working of fsolve. Eric. 2014-09-27 16:33 GMT+02:00 Mathseco : > could you please elaborate little more on how can i apply fsolve function > here as I am a beginner in scilab?? Thanks > > > > -- > View this message in context: > http://mailinglists.scilab.org/Simulation-of-static-general-equilbiirum-model-tp4031213p4031216.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 rashmi.19 at gmail.com Sat Sep 27 17:40:29 2014 From: rashmi.19 at gmail.com (Mathseco) Date: Sat, 27 Sep 2014 08:40:29 -0700 (PDT) Subject: [Scilab-users] Simulation of static general equilbiirum model In-Reply-To: References: <1411810369224-4031213.post@n3.nabble.com> <1411828382458-4031216.post@n3.nabble.com> Message-ID: <1411832429236-4031218.post@n3.nabble.com> Thank you so much for replying...i'll try like you suggested.... -- View this message in context: http://mailinglists.scilab.org/Simulation-of-static-general-equilbiirum-model-tp4031213p4031218.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From rashmi.19 at gmail.com Sat Sep 27 18:11:10 2014 From: rashmi.19 at gmail.com (Mathseco) Date: Sat, 27 Sep 2014 09:11:10 -0700 (PDT) Subject: [Scilab-users] Simulation of static general equilbiirum model In-Reply-To: References: <1411810369224-4031213.post@n3.nabble.com> <1411828382458-4031216.post@n3.nabble.com> Message-ID: <1411834270756-4031219.post@n3.nabble.com> I tried to write a function solve_m on my own but not getting it right and getting lot of errors... I have 8 endogenous variables i.e.w,ws,X,Y,alx,aly,asx,asy... function [w,ws,X,Y,alx,aly,asx,asy]=Solve_m(L,S,Px,Py,t,alpha,beeta,A,B) alx-(1/(A*(ws/w)*(alpha/(1-alpha)))^(alpha-1))=0; asx-1/(A*(ws/w)*(alpha/(1-alpha)))^(alpha)=0; aly-(1/(B*(ws/w)*(beeta/(1-beeta)))^(beeta-1))=0; asy-(1/(B*(ws/w)*(beeta/(1-beeta)))^(beeta))=0; Px-((alx*w)+(asx*ws))=0; Py-(((aly*w)+(asy*ws))/(1+t))=0; L-((alx*X)+(aly*Y))=0; S-((asx*X)+(asy*Y))=0; endfunction Then i called function Solve_m() by providing all the values for exogenous variables...But m getting error Warning: obsolete use of '=' instead of '=='. Px-((alx*w)+(asx*ws))=0; ! at line 3 of function Solve_m called by : endfunction Can you help where am making mistake ? Thanks -- View this message in context: http://mailinglists.scilab.org/Simulation-of-static-general-equilbiirum-model-tp4031213p4031219.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From grocer.toolbox at gmail.com Sat Sep 27 18:25:54 2014 From: grocer.toolbox at gmail.com (Eric Dubois) Date: Sat, 27 Sep 2014 18:25:54 +0200 Subject: [Scilab-users] Simulation of static general equilbiirum model In-Reply-To: <1411834270756-4031219.post@n3.nabble.com> References: <1411810369224-4031213.post@n3.nabble.com> <1411828382458-4031216.post@n3.nabble.com> <1411834270756-4031219.post@n3.nabble.com> Message-ID: Hi. fsolve solves f(x)=0 where f is your function. So you have to remove the '=0' from your function. ?ric. PS : in a function the '=' is used to define the value of a variable in the lhs. 2014-09-27 18:11 GMT+02:00 Mathseco : > I tried to write a function solve_m on my own but not getting it right and > getting lot of errors... > I have 8 endogenous variables i.e.w,ws,X,Y,alx,aly,asx,asy... > > function [w,ws,X,Y,alx,aly,asx,asy]=Solve_m(L,S,Px,Py,t,alpha,beeta,A,B) > alx-(1/(A*(ws/w)*(alpha/(1-alpha)))^(alpha-1))=0; > asx-1/(A*(ws/w)*(alpha/(1-alpha)))^(alpha)=0; > aly-(1/(B*(ws/w)*(beeta/(1-beeta)))^(beeta-1))=0; > asy-(1/(B*(ws/w)*(beeta/(1-beeta)))^(beeta))=0; > Px-((alx*w)+(asx*ws))=0; > Py-(((aly*w)+(asy*ws))/(1+t))=0; > L-((alx*X)+(aly*Y))=0; > S-((asx*X)+(asy*Y))=0; > endfunction > > Then i called function Solve_m() by providing all the values for exogenous > variables...But m getting error Warning: obsolete use of '=' instead of > '=='. > Px-((alx*w)+(asx*ws))=0; > ! > at line 3 of function Solve_m called by : > endfunction > > Can you help where am making mistake ? > > Thanks > > > > -- > View this message in context: > http://mailinglists.scilab.org/Simulation-of-static-general-equilbiirum-model-tp4031213p4031219.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 rashmi.19 at gmail.com Sat Sep 27 19:25:41 2014 From: rashmi.19 at gmail.com (Mathseco) Date: Sat, 27 Sep 2014 10:25:41 -0700 (PDT) Subject: [Scilab-users] Simulation of static general equilbiirum model In-Reply-To: References: <1411810369224-4031213.post@n3.nabble.com> <1411828382458-4031216.post@n3.nabble.com> <1411834270756-4031219.post@n3.nabble.com> Message-ID: <1411838741330-4031221.post@n3.nabble.com> @Eric : Thanks a lot for replying and guiding me... Actually the problem i'm facing is: in my 8 equations its not like of form f(x)=0; There are more than one endogenous variable in my all eight equations ? and also the function i have written above is my own function and i tried calling in this function ...and u told about fsolve that it solves f(x)=0.... Please guide... -- View this message in context: http://mailinglists.scilab.org/Simulation-of-static-general-equilbiirum-model-tp4031213p4031221.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From rashmi.19 at gmail.com Sat Sep 27 22:53:10 2014 From: rashmi.19 at gmail.com (Mathseco) Date: Sat, 27 Sep 2014 13:53:10 -0700 (PDT) Subject: [Scilab-users] Simulation of static general equilbiirum model In-Reply-To: <1411838741330-4031221.post@n3.nabble.com> References: <1411810369224-4031213.post@n3.nabble.com> <1411828382458-4031216.post@n3.nabble.com> <1411834270756-4031219.post@n3.nabble.com> <1411838741330-4031221.post@n3.nabble.com> Message-ID: <1411851190389-4031222.post@n3.nabble.com> If i do some steps manually then need to set this function to zero and want to calculate value of 'r', Can anybody tell me the code to write for it... (except r here..all other variables are exogenous in this function) L*((Px*A*(1-alpha))^(1/alpha))*r^(-1/alpha)+(S*((Py*B*(1-beeta))^(1/beeta))*r^(-1/beeta))-K=0; -- View this message in context: http://mailinglists.scilab.org/Simulation-of-static-general-equilbiirum-model-tp4031213p4031222.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From mori at fis.unam.mx Sun Sep 28 01:59:14 2014 From: mori at fis.unam.mx (amorales) Date: Sat, 27 Sep 2014 16:59:14 -0700 (PDT) Subject: [Scilab-users] Error 21 in execution of scilab -f Message-ID: <1411862354265-4031223.post@n3.nabble.com> HI: With scilab-5-3-3 on Debian 7.6 32 bit, the Script: N=fscanfMat("data_espectro_Ne_DK.ods_parcial.dat"); N1=N(:,1); N2=N(:,2); started with scilab -f name_of_the_script gives: Startup execution: loading initial environment N1=N(:,1); !--error 21 Invalid index. at line 2 of exec file called by : exec('SCI/etc/scilab.start',-1);;exec('calibracion_modificado.sce',-1) But started with scilab and the command exec("name_of_the_script") on the scilab windows runs as expected. I assume that the result should be the same. Why not? Thanks. -- View this message in context: http://mailinglists.scilab.org/Error-21-in-execution-of-scilab-f-tp4031223.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From grocer.toolbox at gmail.com Sun Sep 28 10:03:58 2014 From: grocer.toolbox at gmail.com (Eric Dubois) Date: Sun, 28 Sep 2014 10:03:58 +0200 Subject: [Scilab-users] Simulation of static general equilbiirum model In-Reply-To: <1411851190389-4031222.post@n3.nabble.com> References: <1411810369224-4031213.post@n3.nabble.com> <1411828382458-4031216.post@n3.nabble.com> <1411834270756-4031219.post@n3.nabble.com> <1411838741330-4031221.post@n3.nabble.com> <1411851190389-4031222.post@n3.nabble.com> Message-ID: Hi As expalined peviously you hav to write a function with a vetor of size 8 (the number of endogenous variables) as input and a vetcor of size 8 (the number of equations) as output, each corrdinates of this vector being the residual of an equation (look at the example, it seems to me easy to tarnspsoe to your case...) It should look like: function resid=Solve_m(param) resid(1)=param(4)-(1/(A*(param(2)/param(1))*(alpha/(1-alpha)))^(alpha-1)); resid(2)=param(7)-1/(A*(param(2)/param(1))*(alpha/(1-alpha)))^(alpha) [etc.]; endfunction then sol=fsolve(Solve_m) w=sol(1). Eric. 2014-09-27 22:53 GMT+02:00 Mathseco : > If i do some steps manually then need to set this function to zero and want > to calculate value of 'r', Can anybody tell me the code to write for it... > (except r here..all other variables are exogenous in this function) > > > L*((Px*A*(1-alpha))^(1/alpha))*r^(-1/alpha)+(S*((Py*B*(1-beeta))^(1/beeta))*r^(-1/beeta))-K=0; > > > > > > > -- > View this message in context: > http://mailinglists.scilab.org/Simulation-of-static-general-equilbiirum-model-tp4031213p4031222.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 rashmi.19 at gmail.com Sun Sep 28 15:56:50 2014 From: rashmi.19 at gmail.com (Mathseco) Date: Sun, 28 Sep 2014 06:56:50 -0700 (PDT) Subject: [Scilab-users] Simulation of static general equilbiirum model In-Reply-To: References: <1411810369224-4031213.post@n3.nabble.com> <1411828382458-4031216.post@n3.nabble.com> <1411834270756-4031219.post@n3.nabble.com> <1411838741330-4031221.post@n3.nabble.com> Message-ID: <1411912610921-4031225.post@n3.nabble.com> @Eric : Thank you so much ...my function works as you told..Sorry i ask so many ques as i'm just a beginner in scilab ...i'll be highly grateful if you could help me in one more ques....This is the function which i have written : clear; function resid=Solve_m(param) resid(1)=param(5)-(1/((A*((param(2)/param(1))*(alpha/(1-alpha))))^(alpha-1))); resid(2)=(param(7)*A*(((param(2)/param(1))*(alpha/(1-alpha)))^alpha))-1; resid(3)=(param(8)*B*(((param(2)/param(1))*(beeta/(1-beeta)))^beeta))-1; resid(4)=(param(6)*B*(((param(2)/param(1))*(beeta/(1-beeta)))^beeta))-1; resid(5)=((param(5)*param(1))+(param(7)*param(2)))-Px; resid(6)=((param(6)*param(1))+(param(8)*param(2)))-(Py*(1+t)); resid(7)=((param(5)*param(3))+(param(6)*param(4)))-L; resid(8)=((param(7)*param(3))+(param(8)*param(4)))-S; endfunction //constants A=10; B=10; t=0.2; Px=1; Py=1; alpha=0.3; beeta=0.1; L=500; S=200; sol=fsolve([1,10,1280,1200,0.2,0.06,0.1,0.09],Solve_m); w=sol(1); ws=sol(2); X=sol(3); Y=sol(4); alx=sol(5); aly=sol(6); asx=sol(7); asy=sol(8); I have calculated the same values manually just to check whether what i'm doing through scilab is correct or not because i need to use this for more complicated models. But unfortunately, my manual calculated values and the one i got through above function is not coming same...Could you help wht can be the reason? (I have double check the calculated manual values) , Thanks -- View this message in context: http://mailinglists.scilab.org/Simulation-of-static-general-equilbiirum-model-tp4031213p4031225.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From grocer.toolbox at gmail.com Sun Sep 28 16:25:28 2014 From: grocer.toolbox at gmail.com (Eric Dubois) Date: Sun, 28 Sep 2014 16:25:28 +0200 Subject: [Scilab-users] Simulation of static general equilbiirum model In-Reply-To: <1411912610921-4031225.post@n3.nabble.com> References: <1411810369224-4031213.post@n3.nabble.com> <1411828382458-4031216.post@n3.nabble.com> <1411834270756-4031219.post@n3.nabble.com> <1411838741330-4031221.post@n3.nabble.com> <1411912610921-4031225.post@n3.nabble.com> Message-ID: Hi The function does not seem to match the problem you exposed. For instance, I Would have written: resid(2)=param(7)-1/(A*(param(2)/param(1))*(alpha/(1-alpha)))^(alpha) You can simply check that your function si 0 at the solution you calculated manually: Solve_m(solution) I this is not 0 (or very small numbers), then either the function does not replicate your problem and you must cahnge it until it is the case or your solution is wrong. I this is 0, come back to me. ?ric. 2014-09-28 15:56 GMT+02:00 Mathseco : > @Eric : Thank you so much ...my function works as you told..Sorry i ask so > many ques as i'm just a beginner in scilab ...i'll be highly grateful if > you > could help me in one more ques....This is the function which i have written > : > clear; > function resid=Solve_m(param) > > resid(1)=param(5)-(1/((A*((param(2)/param(1))*(alpha/(1-alpha))))^(alpha-1))); > resid(2)=(param(7)*A*(((param(2)/param(1))*(alpha/(1-alpha)))^alpha))-1; > resid(3)=(param(8)*B*(((param(2)/param(1))*(beeta/(1-beeta)))^beeta))-1; > resid(4)=(param(6)*B*(((param(2)/param(1))*(beeta/(1-beeta)))^beeta))-1; > resid(5)=((param(5)*param(1))+(param(7)*param(2)))-Px; > resid(6)=((param(6)*param(1))+(param(8)*param(2)))-(Py*(1+t)); > resid(7)=((param(5)*param(3))+(param(6)*param(4)))-L; > resid(8)=((param(7)*param(3))+(param(8)*param(4)))-S; > endfunction > > //constants > A=10; > B=10; > t=0.2; > Px=1; > Py=1; > alpha=0.3; > beeta=0.1; > L=500; > S=200; > > sol=fsolve([1,10,1280,1200,0.2,0.06,0.1,0.09],Solve_m); > w=sol(1); > ws=sol(2); > X=sol(3); > Y=sol(4); > alx=sol(5); > aly=sol(6); > asx=sol(7); > asy=sol(8); > > I have calculated the same values manually just to check whether what i'm > doing through scilab is correct or not because i need to use this for more > complicated models. But unfortunately, my manual calculated values and the > one i got through above function is not coming same...Could you help wht > can > be the reason? (I have double check the calculated manual values) , Thanks > > > > -- > View this message in context: > http://mailinglists.scilab.org/Simulation-of-static-general-equilbiirum-model-tp4031213p4031225.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 rashmi.19 at gmail.com Sun Sep 28 18:00:41 2014 From: rashmi.19 at gmail.com (Mathseco) Date: Sun, 28 Sep 2014 09:00:41 -0700 (PDT) Subject: [Scilab-users] Simulation of static general equilbiirum model In-Reply-To: References: <1411810369224-4031213.post@n3.nabble.com> <1411828382458-4031216.post@n3.nabble.com> <1411834270756-4031219.post@n3.nabble.com> <1411838741330-4031221.post@n3.nabble.com> <1411912610921-4031225.post@n3.nabble.com> Message-ID: <1411920041376-4031227.post@n3.nabble.com> @ Eric : I changed the equations as u told it shld be written... I checked my manual solution too, the function is coming to be zero. There is one more thing..in this case, since i have worked out manual solution,so i know the guesstimates for my all 8 endogenous variables so i put those as argument in the function fsolve..but if i put some other values which are not close to the solutions then it is showing error.... -- View this message in context: http://mailinglists.scilab.org/Simulation-of-static-general-equilbiirum-model-tp4031213p4031227.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From grocer.toolbox at gmail.com Sun Sep 28 19:17:43 2014 From: grocer.toolbox at gmail.com (Eric Dubois) Date: Sun, 28 Sep 2014 19:17:43 +0200 Subject: [Scilab-users] Simulation of static general equilbiirum model In-Reply-To: <1411920041376-4031227.post@n3.nabble.com> References: <1411810369224-4031213.post@n3.nabble.com> <1411828382458-4031216.post@n3.nabble.com> <1411834270756-4031219.post@n3.nabble.com> <1411838741330-4031221.post@n3.nabble.com> <1411912610921-4031225.post@n3.nabble.com> <1411920041376-4031227.post@n3.nabble.com> Message-ID: I suspect that your problem has data with too different orders of magnitude. Indeed, when I calaulate the numerical Jacobian at your satrting values, it has eigen values with a ratio of more than a million: in econometric tets you have a huge multiocolinaeraity problem. Check what happens if you redefine your problem so that variables have the same order of magnitude. ?ric. 2014-09-28 18:00 GMT+02:00 Mathseco : > @ Eric : I changed the equations as u told it shld be written... I checked > my > manual solution too, the function is coming to be zero. > There is one more thing..in this case, since i have worked out manual > solution,so i know the guesstimates for my all 8 endogenous variables so i > put those as argument in the function fsolve..but if i put some other > values > which are not close to the solutions then it is showing error.... > > > > -- > View this message in context: > http://mailinglists.scilab.org/Simulation-of-static-general-equilbiirum-model-tp4031213p4031227.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 rashmi.19 at gmail.com Sun Sep 28 23:04:08 2014 From: rashmi.19 at gmail.com (Mathseco) Date: Sun, 28 Sep 2014 14:04:08 -0700 (PDT) Subject: [Scilab-users] Simulation of static general equilbiirum model In-Reply-To: References: <1411828382458-4031216.post@n3.nabble.com> <1411834270756-4031219.post@n3.nabble.com> <1411838741330-4031221.post@n3.nabble.com> <1411912610921-4031225.post@n3.nabble.com> <1411920041376-4031227.post@n3.nabble.com> Message-ID: <1411938248038-4031229.post@n3.nabble.com> @Eric : Thanks a lot for answering my queries !!! yes you are right my data has problem i.e. diffrt order of magnitude..i think i shld modify my model then see if the problem persists or not !! -- View this message in context: http://mailinglists.scilab.org/Simulation-of-static-general-equilbiirum-model-tp4031213p4031229.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From mori at fis.unam.mx Sun Sep 28 23:08:46 2014 From: mori at fis.unam.mx (amorales) Date: Sun, 28 Sep 2014 14:08:46 -0700 (PDT) Subject: [Scilab-users] Nightmare with double quotes. Message-ID: <1411938526364-4031230.post@n3.nabble.com> Hi: Both commands were written on the same scilab window. Do you see the difference? -->write(6,string(?Variable x:?)) !--error 2 Invalid factor. -->write(6,string("Variable x:")) Variable x: This can be a nightmare if you don't know that there are two kinds of double quotes. By writing both commands on emacs you can see the difference. -- View this message in context: http://mailinglists.scilab.org/Nightmare-with-double-quotes-tp4031230.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From rei.listas at yahoo.com Mon Sep 29 00:15:18 2014 From: rei.listas at yahoo.com (Reinaldo) Date: Sun, 28 Sep 2014 15:15:18 -0700 Subject: [Scilab-users] Calculus and Scilab Message-ID: <1411942518.78805.YahooMailNeo@web121605.mail.ne1.yahoo.com> Hi Scilab users, I would like to plot the following 3D function in order to calculate the volume of that prism. "Let f(x,y) be a real function defined to f(x,y) = 3 - x - y, which domain region on OXY plain is limited by those functions: y = x; X-axis; and x = 1. Plot f(x,y)". Do you know if there is a Scilab tutorial for Calculus? Thank you in advance. All best, Reinaldo. -------------- next part -------------- An HTML attachment was scrubbed... URL: From Serge.Steer at inria.fr Mon Sep 29 09:50:05 2014 From: Serge.Steer at inria.fr (Serge Steer) Date: Mon, 29 Sep 2014 09:50:05 +0200 Subject: [Scilab-users] Calculus and Scilab In-Reply-To: <1411942518.78805.YahooMailNeo@web121605.mail.ne1.yahoo.com> References: <1411942518.78805.YahooMailNeo@web121605.mail.ne1.yahoo.com> Message-ID: <54290F2D.4010900@inria.fr> You can use the int2d function For yopur example, the domain is defined by a single triangle: function z=f(x,y),z=3-x-y,endfunction X=[0;1;1]; Y=[0;0;1]; [I,e]=int2d(X,Y,f); Le 29/09/2014 00:15, Reinaldo a ?crit : > Hi Scilab users, > > I would like to plot the following 3D function in order to calculate > the volume of that prism. > > "Let f(x,y) be a real function defined to f(x,y) = 3 - x - y, which > domain region on OXY plain is limited by those functions: y = x; > X-axis; and x = 1. > > Plot f(x,y)". > > Do you know if there is a Scilab tutorial for Calculus? > > Thank you in advance. > > All best, > Reinaldo. > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users -------------- next part -------------- An HTML attachment was scrubbed... URL: From Christophe.Dang at sidel.com Mon Sep 29 10:10:17 2014 From: Christophe.Dang at sidel.com (Dang, Christophe) Date: Mon, 29 Sep 2014 10:10:17 +0200 Subject: [Scilab-users] Nightmare with double quotes. In-Reply-To: <1411938526364-4031230.post@n3.nabble.com> References: <1411938526364-4031230.post@n3.nabble.com> Message-ID: <3B5FFC67498DFF49AE7271A584867D16F40BF9A50C@301EX00100.sidel.com> Hello > De : amorales > Envoy? : dimanche 28 septembre 2014 23:09 > > [? vs. "...] > This can be a nightmare if you don't know that there are > two kinds of double This kind of Unicode trap usually happens whe copying/pasting, some system automatically modify the characters to match typographic standards. If you want to make a joke to some colleagues, you might provide them som code with a cyrillic letter that looks like a roman letter, e.g. ? -- 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 Mon Sep 29 10:03:23 2014 From: Christophe.Dang at sidel.com (Dang, Christophe) Date: Mon, 29 Sep 2014 10:03:23 +0200 Subject: [Scilab-users] Simulation of static general equilbiirum model In-Reply-To: <1411920041376-4031227.post@n3.nabble.com> References: <1411810369224-4031213.post@n3.nabble.com> <1411828382458-4031216.post@n3.nabble.com> <1411834270756-4031219.post@n3.nabble.com> <1411838741330-4031221.post@n3.nabble.com> <1411912610921-4031225.post@n3.nabble.com> <1411920041376-4031227.post@n3.nabble.com> Message-ID: <3B5FFC67498DFF49AE7271A584867D16F40BF9A4EE@301EX00100.sidel.com> Hello, > De : De la part de Mathseco > Envoy? : dimanche 28 septembre 2014 18:01 > > but if i put some other values which are not close to the solutions > then it is showing error.... I'm not in econometrics and Eric's answers are very accurate, but as a more general advice: be aware that the solving of non-linear equations is a step-by-step procedure which aims is to minimise the residual. The problem is when you have a local minimum, which is different from the global minimum. You might have a look at https://en.wikipedia.org/wiki/Mathematical_optimization 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 santi_0926 at hotmail.com Sat Sep 27 01:20:07 2014 From: santi_0926 at hotmail.com (Santiago Chialvo) Date: Fri, 26 Sep 2014 20:20:07 -0300 Subject: [Scilab-users] ./ Operator Question Message-ID: Hi, first of all, sorry for my english, it's not good enough. I'm using Scilab 5.5.0 Version, and I found a problem that I don't understand how it works. First of all, when I do the operationR = A/B; With A = Scalar and B = Vector, the result that gives me is a R vector that satisfy:R*B = A;But, my question is, how does it works? I mean, we have R(1)*B(1) + R(2)*B(2) .... + R(N)*B(N) = A;Where we know the value of the components of B, and the value of A, but it's only 1 equation with N unknowns!How does it works, to have the values of R? Thanks,Santiago. -------------- next part -------------- An HTML attachment was scrubbed... URL: From rashmi.19 at gmail.com Mon Sep 29 11:16:03 2014 From: rashmi.19 at gmail.com (Mathseco) Date: Mon, 29 Sep 2014 02:16:03 -0700 (PDT) Subject: [Scilab-users] Simulation of static general equilbiirum model In-Reply-To: <3B5FFC67498DFF49AE7271A584867D16F40BF9A4EE@301EX00100.sidel.com> References: <1411828382458-4031216.post@n3.nabble.com> <1411834270756-4031219.post@n3.nabble.com> <1411838741330-4031221.post@n3.nabble.com> <1411912610921-4031225.post@n3.nabble.com> <1411920041376-4031227.post@n3.nabble.com> <3B5FFC67498DFF49AE7271A584867D16F40BF9A4EE@301EX00100.sidel.com> Message-ID: <1411982163944-4031237.post@n3.nabble.com> @dang ok thanks a lot for your suggestion ..yes its really true...its needs to be done stepwise and carefully too.I will follow ur advice... -- View this message in context: http://mailinglists.scilab.org/Simulation-of-static-general-equilbiirum-model-tp4031213p4031237.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From Christophe.Dang at sidel.com Mon Sep 29 11:13:51 2014 From: Christophe.Dang at sidel.com (Dang, Christophe) Date: Mon, 29 Sep 2014 11:13:51 +0200 Subject: [Scilab-users] ./ Operator Question In-Reply-To: References: Message-ID: <3B5FFC67498DFF49AE7271A584867D16F40BF9A611@301EX00100.sidel.com> Hello, > De Santiago Chialvo > Envoy? : samedi 27 septembre 2014 01:20 > > when I do the operation > >R = A/B; > [...] > R(1)*B(1) + R(2)*B(2) .... + R(N)*B(N) = A; > > [...] but it's only 1 equation with N unknowns! Maybe the solution is in the help page: http://help.scilab.org/docs/5.5.0/en_US/slash.html " If the condition number of A is smaller than 1/(10*%eps) [...], the LU factorization with row pivoting is used. If not[...], then X is the minimum-norm solution which minimizes ||A*X-B|| using a complete orthogonal factorization of A (i.e. X is the solution of a linear least squares problem)." -- 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 antoine.monmayrant at laas.fr Mon Sep 29 11:22:12 2014 From: antoine.monmayrant at laas.fr (Antoine Monmayrant) Date: Mon, 29 Sep 2014 11:22:12 +0200 Subject: [Scilab-users] Nightmare with double quotes. In-Reply-To: <1411938526364-4031230.post@n3.nabble.com> References: <1411938526364-4031230.post@n3.nabble.com> Message-ID: <542924C4.3080601@laas.fr> On 09/28/2014 11:08 PM, amorales wrote: > Hi: > Both commands were written on the same scilab window. Do you see the > difference? > > -->write(6,string(?Variable x:?)) > !--error 2 > Invalid factor. > > > > -->write(6,string("Variable x:")) > Variable x: > > > This can be a nightmare if you don't know that there are two kinds of double > quotes. > By writing both commands on emacs you can see the difference. > > > > > -- > View this message in context: http://mailinglists.scilab.org/Nightmare-with-double-quotes-tp4031230.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 > I would report this as a bug: the error message is not clear, it's even misleading. I can understand that Scilab does not support all the unicode characters, but at least the error message should help the user finding what the problem is. Antoine From rei.listas at yahoo.com Tue Sep 30 04:00:18 2014 From: rei.listas at yahoo.com (Reinaldo) Date: Mon, 29 Sep 2014 19:00:18 -0700 Subject: [Scilab-users] Plotting a graph ... In-Reply-To: <1411941149.2164.YahooMailNeo@web121603.mail.ne1.yahoo.com> References: <1411941149.2164.YahooMailNeo@web121603.mail.ne1.yahoo.com> Message-ID: <1412042418.21711.YahooMailNeo@web121602.mail.ne1.yahoo.com> Hi Scilab users, I plotted a graph, as follows: clear; clc; function f=myfunction(x) f = 3*cosh(x/3) endfunction // Plot scf(1); clf(1); xdata = linspace ( -5 , 5 , 100 ); ydata = myfunction ( xdata ); plot ( xdata , ydata ); xlabel("$-5\le x\le 5$","fontsize",4,"color","red"); ylabel("y","fontsize",4,"color","red"); title("Function","color", "red","fontsize",4); legend("y = 3 cosh(x/3)"); However, the y-axis starts from 3 to 9. How could I set y-axis from -1 to 9? In addition, how could I change the colors of following functions f(x), g(x) and h(x)? clear; clc; function f=myfunction1(x) f = x^3-3*x endfunction function g=myfunction2(x) g = -x endfunction function h=myfunction3(x) h = -x^2 endfunction // Plot scf(1); clf(1); xdata = linspace ( -2 , 2 , 100 ); ydata1 = myfunction1 ( xdata ); ydata2 = myfunction2 ( xdata ); ydata3 = myfunction3 ( xdata ); plot ( xdata , [ydata1; ydata2; ydata3]); xlabel("$-2\le x\le 2$","fontsize",4,"color","red"); ylabel("y","fontsize",4,"color","red"); title("Function","color", "red","fontsize",4); legend("f(x) = x^3-3x", "g(x) = -x","h(x) = -x^2"); // <- How could I show correctly the exponentials of those polinomial functions? I don't like to use on legends "^". Thank you in advance. All best, Reinaldo. -------------- next part -------------- An HTML attachment was scrubbed... URL: From rei.listas at yahoo.com Tue Sep 30 04:00:41 2014 From: rei.listas at yahoo.com (Reinaldo) Date: Mon, 29 Sep 2014 19:00:41 -0700 Subject: [Scilab-users] Calculus and Scilab In-Reply-To: <1411942518.78805.YahooMailNeo@web121605.mail.ne1.yahoo.com> References: <1411942518.78805.YahooMailNeo@web121605.mail.ne1.yahoo.com> Message-ID: <1412042441.11585.YahooMailNeo@web121604.mail.ne1.yahoo.com> Hi Scilab users, I would like to plot the following 3D function in order to calculate the volume of that prism. "Let f(x,y) be a real function defined to f(x,y) = 3 - x - y, which domain region on OXY plain is limited by those functions: y = x; X-axis; and x = 1. Plot f(x,y)". Do you know if there is a Scilab tutorial for Calculus? Thank you in advance. All best, Reinaldo. -------------- next part -------------- An HTML attachment was scrubbed... URL: From clement.david at scilab-enterprises.com Tue Sep 30 08:06:57 2014 From: clement.david at scilab-enterprises.com (=?ISO-8859-1?Q?Cl=E9ment?= David) Date: Tue, 30 Sep 2014 08:06:57 +0200 Subject: [Scilab-users] block.work in Scilab coded block In-Reply-To: References: Message-ID: <1412057217.1935.2.camel@naxos> Hello, The work field is not supported for scifunc_m block. Did you try to store data on the state (z) field ? Regards, -- Cl?ment Le mardi 23 septembre 2014 ? 17:20 +0200, Embedded Toolbox a ?crit : > Hi all, > > > I have uploaded on Atoms a new toolbox called "leftwavedenoise". > > For this toolbox, I had to code the block simulation function in > Scilab. > > > Because I needed a memory in the block simulation function, I used > block.work variable to store the data I want to access next time the > simulation function is called. > > > I put a scalar into block.work which is in fact a counter. > > > What's strange is that sometimes, this counter does not seems to be > incremented and stored as incremented preventing my block from > working. > > > You will find the code of the simulation function attached to this > mail. > > If you want to have the full source, check the atoms repository. > > > Any idea on this strange behavior of block.work in scilab code ? > > > Best regards. > > Alexandre HERISSE. > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users From mazue.quentin at gmail.com Tue Sep 30 08:46:44 2014 From: mazue.quentin at gmail.com (=?UTF-8?Q?Quentin_Mazu=C3=A9?=) Date: Mon, 29 Sep 2014 23:46:44 -0700 (PDT) Subject: [Scilab-users] Plotting a graph ... In-Reply-To: <1412042418.21711.YahooMailNeo@web121602.mail.ne1.yahoo.com> References: <1412042418.21711.YahooMailNeo@web121602.mail.ne1.yahoo.com> Message-ID: <1412059604809-4031244.post@n3.nabble.com> Hi, you can use the following example to change the y axis values : scf(); X = linspace ( -5 , 5 , 100 ); Y = 3*cosh(X/3); plot(X,Y); //Change the range of the Y axis a=get("current_axes");//get the handle of the newly created axes a.data_bounds=[-5,-1;5,9];//New bounds -- View this message in context: http://mailinglists.scilab.org/Scilab-users-Plotting-a-graph-tp4031240p4031244.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From communication at scilab-enterprises.com Tue Sep 30 09:43:11 2014 From: communication at scilab-enterprises.com (Scilab Communications) Date: Tue, 30 Sep 2014 09:43:11 +0200 Subject: [Scilab-users] ScilabTEC 2015 - Call for Papers is open Message-ID: <542A5F0F.9030904@scilab-enterprises.com> Is this email not displaying correctly? View it in your browser ScilabTEC ScilabTEC brings together during a two-day conference, those involved in the world of computation and numerical simulation in order to promote the exchange and innovation between the fields of education, research and industry. SUBMIT YOUR ABSTRACT ONLINE Deadline for abstract submission: 02 January 2015 The Conference Commitee welcomes abstracts on the main scientific domains using Scilab/Xcos for numerical computation such as automotive, aeronautics, space, energy, defense, telecommunications, biomedical, finance, transportation, environment, etc. The purpose of the presentation is to show the full potential of Scilab/Xcos for solving real life problems. In particular, Scilab industrial applications and new Scilab external modules presentations will be greatly appreciated. ScilabEnterprises Communication Department, Scilab Enterprises | communication at scilab-enterprises.com 143bis rue Yves Le Coz - 78000 Versailles | www.scilab-enterprises.com - www.scilab.org scilabtec -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/png Size: 18184 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/png Size: 14302 bytes Desc: not available URL: From vu.hoanh at gmail.com Tue Sep 30 07:30:02 2014 From: vu.hoanh at gmail.com (hoanhvu) Date: Mon, 29 Sep 2014 22:30:02 -0700 (PDT) Subject: [Scilab-users] EXCEPTION_STACK_OVERFLOW error when using readxls Message-ID: <1412055002711-4031242.post@n3.nabble.com> Greetings, I am using readxls to read an Excel sheet. The resulting error is seen below. I tried to increase the stack size by using the function stacksize (and gstacksize) to no avail The problem persists regardless. I am grasping for straws and would be grateful for any help. Regards, Hoanh Warning !!! Scilab has found a critical error (EXCEPTION_STACK_OVERFLOW) with "xls_open" function. Save your data and restart Scilab. !--error 1 Incorrect assignment. at line 5 of function readxls -- View this message in context: http://mailinglists.scilab.org/EXCEPTION-STACK-OVERFLOW-error-when-using-readxls-tp4031242.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From Christophe.Dang at sidel.com Tue Sep 30 11:23:33 2014 From: Christophe.Dang at sidel.com (Dang, Christophe) Date: Tue, 30 Sep 2014 11:23:33 +0200 Subject: [Scilab-users] Plotting a graph ... In-Reply-To: <1412059604809-4031244.post@n3.nabble.com> References: <1412042418.21711.YahooMailNeo@web121602.mail.ne1.yahoo.com> <1412059604809-4031244.post@n3.nabble.com> Message-ID: <3B5FFC67498DFF49AE7271A584867D16F40BF9AC61@301EX00100.sidel.com> Hello, > De Quentin Mazu? > Envoy? : mardi 30 septembre 2014 08:47 > >> De Reinaldo >> Envoy? : mardi 30 septembre 2014 04:00 >> >> How could I set y-axis from -1 to 9? > //Change the range of the Y axis > a=get("current_axes");//get the handle of the newly created axes > a.data_bounds=[-5,-1;5,9];//New bounds Indeed, in Scilab, you should become familiar with handles which allow the "fine tuning" of a lot of things. > In addition, how could I change the colors of following functions f(x), g(x) and h(x)? In the same way as Quentin told you, you have to get the handle of the drawings (polylines) with something like h = gce() // get current entity please have a look at http://help.scilab.org/docs/5.5.0/en_US/gce.html http://help.scilab.org/docs/5.5.0/en_US/polyline_properties.html This can somtimes be a bit tricky. First of all, h = gce() should be placed right after plot(...). And in your case, gce() points to a "compound", which child is a matrix containing the three polylines. To get familiar with it, you should try in the console // ********** plot ( xdata , [ydata1; ydata2; ydata3]); h = gce(); h.children h.children(1) h.children(1).foreground = 0; // turns the first curve to black // ********** The colours are refered by numbers, and you can have the correspondance table with getcolor() > legend("f(x) = x^3-3x", "g(x) = -x","h(x) = -x^2"); > // <- How could I show correctly the exponentials of those polinomial functions? In the same way as you did for xlabel: enclose it inside $...$ 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 mazue.quentin at gmail.com Tue Sep 30 11:34:11 2014 From: mazue.quentin at gmail.com (=?UTF-8?Q?Quentin_Mazu=C3=A9?=) Date: Tue, 30 Sep 2014 02:34:11 -0700 (PDT) Subject: [Scilab-users] Xcos : Inherited values got with To workspace block In-Reply-To: <1411117507103-4031186.post@n3.nabble.com> References: <1411117507103-4031186.post@n3.nabble.com> Message-ID: <1412069651080-4031264.post@n3.nabble.com> Does anyone can help me about this topic? -- View this message in context: http://mailinglists.scilab.org/Xcos-Inherited-values-got-with-To-workspace-block-tp4031186p4031264.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From clement.david at scilab-enterprises.com Tue Sep 30 12:39:56 2014 From: clement.david at scilab-enterprises.com (=?ISO-8859-1?Q?Cl=E9ment?= David) Date: Tue, 30 Sep 2014 12:39:56 +0200 Subject: [Scilab-users] Xcos : Inherited values got with To workspace block In-Reply-To: <1412069651080-4031264.post@n3.nabble.com> References: <1411117507103-4031186.post@n3.nabble.com> <1412069651080-4031264.post@n3.nabble.com> Message-ID: <1412073596.1935.28.camel@naxos> Hello Quentin, Basically this is the way model.dep_ut flags works. On you first file, event is propagated as all the path is synchronous eg. all the blocks does not "depends on t" but might "depends on u". On the second file, the static switch "depends on t and u" so the to workspace blocks that inherit the events are not sampled on the same event than on the file 1. Note 1: inheriting an event lead to such misunderstanding (and even more with dynamic events), I strongly suggest you to explicitly sample the to workspace blocks. Note 2: even if the period seems to be the same 100Hz then 10Hz, the signal might not be synchronous on a more complex model. To have a deeper view, use "Simulation -> Trace" to log the execution on the Scilab console. -- Cl?ment Le mardi 30 septembre 2014 ? 02:34 -0700, Quentin Mazu? a ?crit : > Does anyone can help me about this topic? > > > > -- > View this message in context: http://mailinglists.scilab.org/Xcos-Inherited-values-got-with-To-workspace-block-tp4031186p4031264.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 Tue Sep 30 14:22:14 2014 From: clement.david at scilab-enterprises.com (=?ISO-8859-1?Q?Cl=E9ment?= David) Date: Tue, 30 Sep 2014 14:22:14 +0200 Subject: [Scilab-users] XCos cscope parameter change beafore sim In-Reply-To: References: Message-ID: <1412079734.1935.31.camel@naxos> Hello, Nice idea and it works fine. Using the attached file I'm able to cleanup all opened graphic windows at simulation start and to update plot properties at the end of the simulation. To check, I just used : exec setup_plot.sce xcos SCI/modules/xcos/demos/Command.zcos // start the simulation on the Xcos window -- Cl?ment Le mardi 23 septembre 2014 ? 08:14 +0200, Grzegorz Skiba a ?crit : > Hi all, > > > I want to change background color and other settings of XCos CSCOPE > block beafore simulation starts. I was trying with pre_xcos_simulate > hook but without success. This is an example code which I want to > setup cscope with. > > > // post_xcos_simulate > list_fig=winsid(); > for i=1:length(list_fig) > h=get_figure_handle(list_fig(i)); > axes = h.children; > axes.grid = [1,1]; > axes.grid_style = [9,10]; > poliline = axes.children; > poliline.polyline_style = 2; > end > > > Thanks for help. > > Regards Grzegorz > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users -------------- next part -------------- A non-text attachment was scrubbed... Name: setup_plot.sce Type: application/x-scilab-sce Size: 518 bytes Desc: not available URL: From mazue.quentin at gmail.com Tue Sep 30 15:13:07 2014 From: mazue.quentin at gmail.com (=?UTF-8?Q?Quentin_Mazu=C3=A9?=) Date: Tue, 30 Sep 2014 06:13:07 -0700 (PDT) Subject: [Scilab-users] xcos : xcos_simulate(scs_m, 1) or xcos_simulate(scs_m, 4) In-Reply-To: <1411483547009-4031207.post@n3.nabble.com> References: <1411483547009-4031207.post@n3.nabble.com> Message-ID: <1412082787692-4031267.post@n3.nabble.com> Any help about this topic? Regards Quentin Mazu? -- View this message in context: http://mailinglists.scilab.org/xcos-xcos-simulate-scs-m-1-or-xcos-simulate-scs-m-4-tp4031207p4031267.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From skiba.g at gmail.com Tue Sep 30 15:51:30 2014 From: skiba.g at gmail.com (Grzegorz Skiba) Date: Tue, 30 Sep 2014 15:51:30 +0200 Subject: [Scilab-users] XCos cscope parameter change beafore sim In-Reply-To: <1412079734.1935.31.camel@naxos> References: <1412079734.1935.31.camel@naxos> Message-ID: Thanks for help your Cl?ment, Is there any chance to do the same at simulation start? I can scan scs_m object in the pre_xcos_simulate and find CSCOPE blocks and change its rpar/ipar parameters - but this way I can only change block parameters not the plot properties like grid_style or polyline_style. Maybe it is possible to create graphics window in pre_xcos_simulation ,change default parameters and than somehow force xcos to use created windows instead of creating new with CSCOPE init procedure ? Regards Grzegorz 2014-09-30 14:22 GMT+02:00 Cl?ment David < clement.david at scilab-enterprises.com>: > Hello, > > Nice idea and it works fine. > > Using the attached file I'm able to cleanup all opened graphic windows > at simulation start and to update plot properties at the end of the > simulation. > > To check, I just used : > > exec setup_plot.sce > xcos SCI/modules/xcos/demos/Command.zcos > // start the simulation on the Xcos window > > > -- > Cl?ment > > Le mardi 23 septembre 2014 ? 08:14 +0200, Grzegorz Skiba a ?crit : > > Hi all, > > > > > > I want to change background color and other settings of XCos CSCOPE > > block beafore simulation starts. I was trying with pre_xcos_simulate > > hook but without success. This is an example code which I want to > > setup cscope with. > > > > > > // post_xcos_simulate > > list_fig=winsid(); > > for i=1:length(list_fig) > > h=get_figure_handle(list_fig(i)); > > axes = h.children; > > axes.grid = [1,1]; > > axes.grid_style = [9,10]; > > poliline = axes.children; > > poliline.polyline_style = 2; > > end > > > > > > Thanks for help. > > > > Regards Grzegorz > > > > _______________________________________________ > > 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 clement.david at scilab-enterprises.com Tue Sep 30 15:52:06 2014 From: clement.david at scilab-enterprises.com (=?ISO-8859-1?Q?Cl=E9ment?= David) Date: Tue, 30 Sep 2014 15:52:06 +0200 Subject: [Scilab-users] xcos : xcos_simulate(scs_m, 1) or xcos_simulate(scs_m, 4) In-Reply-To: <1411483547009-4031207.post@n3.nabble.com> References: <1411483547009-4031207.post@n3.nabble.com> Message-ID: <1412085126.1935.38.camel@naxos> Hello Quentin, First, The difference is due to the fact that calling xcos_simulate will always force a do_eval call even with needcompile=1. Then, when you update the Scilab variable you have to push these variables in the Xcos context and you can use a similar approach to the PID optimization example [1]. [1]: http://wiki.scilab.org/Xcos/Examples/PID -- Cl?ment Le mardi 23 septembre 2014 ? 07:45 -0700, Quentin Mazu? a ?crit : > Hello, > > I finished a quite large Xcos-diagram and I have to launch calculation in > batch mode from a GUI. > > I have 2 different procedures : > > Procedure 1 : > 1) Use importXcosDiagram(...) to get the scs_m : import once for all my > simulations > 2) Use xcos_compile(scs_m) to get the %cpr : done once for all my > simulations > 3) Use xcos_simulate(scs_m,1) to launch the first simulation. > > > Procedure 2 : > 1) Use importXcosDiagram(...) to get the scs_m : import once for all my > simulations > 2) Do nothing > 3) Use xcos_simulate(scs_m,4) to launch the first simulation. > > All the duration are obtained with tic();...;disp(toc()); > > I notice that for procedure 1 and 2, the step 1 is fast (around 2-3sec) > For procedure 1, step 2 last around 25sec when step 3 last 40sec. => for 1 > simulation : total time = 65sec > However for procedure 2 step 3 last 50sec. => for 1 simulation : total time > = 50sec > > According to the help, the difference between my two procedures is that in > procedure 1 I compile the diagram and then I simulate and in procedure 2 I > compile and simulate within the same function. > > => Consequently why is there a difference of 15sec between this 2 procedures > even though they should be the same ? > > =>After step 3), could I change my input variables (which are not in Xcos > context but in Scilab workspace) and then launch a new simulation as in step > 3 ? Will my new results be correct ? > > > > > > -- > View this message in context: http://mailinglists.scilab.org/xcos-xcos-simulate-scs-m-1-or-xcos-simulate-scs-m-4-tp4031207.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 Tue Sep 30 16:26:50 2014 From: clement.david at scilab-enterprises.com (=?ISO-8859-1?Q?Cl=E9ment?= David) Date: Tue, 30 Sep 2014 16:26:50 +0200 Subject: [Scilab-users] XCos cscope parameter change beafore sim In-Reply-To: References: <1412079734.1935.31.camel@naxos> Message-ID: <1412087210.1935.42.camel@naxos> Yes, you can perform anything on the pre_xcos_simulate hook. If you want to set some specific scope attribute I suggest you to fix the scope ID on block's parameters, create and setup it on the pre_xcos_simulation hook. If a scope with the same ID is already displayed, it will be re-used at simulation time. -- Cl?ment Le mardi 30 septembre 2014 ? 15:51 +0200, Grzegorz Skiba a ?crit : > Thanks for help your Cl?ment, > > > Is there any chance to do the same at simulation start? I can scan > scs_m object in the pre_xcos_simulate and find CSCOPE blocks and > change its rpar/ipar parameters - but this way I can only change block > parameters not the plot properties like grid_style or polyline_style. > Maybe it is possible to create graphics window in > pre_xcos_simulation ,change default parameters and than somehow force > xcos to use created windows instead of creating new with CSCOPE init > procedure ? > > > Regards Grzegorz > > > > > > 2014-09-30 14:22 GMT+02:00 Cl?ment David > : > Hello, > > Nice idea and it works fine. > > Using the attached file I'm able to cleanup all opened graphic > windows > at simulation start and to update plot properties at the end > of the > simulation. > > To check, I just used : > > exec setup_plot.sce > xcos SCI/modules/xcos/demos/Command.zcos > // start the simulation on the Xcos window > > > -- > Cl?ment > > Le mardi 23 septembre 2014 ? 08:14 +0200, Grzegorz Skiba a > ?crit : > > Hi all, > > > > > > I want to change background color and other settings of XCos > CSCOPE > > block beafore simulation starts. I was trying with > pre_xcos_simulate > > hook but without success. This is an example code which I > want to > > setup cscope with. > > > > > > // post_xcos_simulate > > list_fig=winsid(); > > for i=1:length(list_fig) > > h=get_figure_handle(list_fig(i)); > > axes = h.children; > > axes.grid = [1,1]; > > axes.grid_style = [9,10]; > > poliline = axes.children; > > poliline.polyline_style = 2; > > end > > > > > > Thanks for help. > > > > Regards Grzegorz > > > > > _______________________________________________ > > 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 From mazue.quentin at gmail.com Tue Sep 30 16:52:39 2014 From: mazue.quentin at gmail.com (=?UTF-8?Q?Quentin_Mazu=C3=A9?=) Date: Tue, 30 Sep 2014 07:52:39 -0700 (PDT) Subject: [Scilab-users] xcos : xcos_simulate(scs_m, 1) or xcos_simulate(scs_m, 4) In-Reply-To: <1412085126.1935.38.camel@naxos> References: <1411483547009-4031207.post@n3.nabble.com> <1412085126.1935.38.camel@naxos> Message-ID: <1412088759673-4031271.post@n3.nabble.com> Hello Clement, Thanks for you answer. Regarding the example you gave me (http://wiki.scilab.org/Xcos/Examples/PID) : 1) It uses the function scicos_simulate instead of xcos_simulate. ->Are these two functions equivalent or not? ->What should be the best syntax for next version of scilab? ->Which one should be the fastest? 2) This example supposed that values are defined in Xcos context. It is not my case. The context is empty and I change the Xcos input variables by using a scilab script as following : my_input1 = 10; my_input2 = [5;1;3] my_input3 = ... ->Is it a good practice? ->Will it impact my simulation time? Regards Quentin Mazu? -- View this message in context: http://mailinglists.scilab.org/xcos-xcos-simulate-scs-m-1-or-xcos-simulate-scs-m-4-tp4031207p4031271.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From rashmi.19 at gmail.com Tue Sep 30 19:36:33 2014 From: rashmi.19 at gmail.com (Mathseco) Date: Tue, 30 Sep 2014 10:36:33 -0700 (PDT) Subject: [Scilab-users] Simulation of static general equilbiirum model In-Reply-To: <1411982163944-4031237.post@n3.nabble.com> References: <1411834270756-4031219.post@n3.nabble.com> <1411838741330-4031221.post@n3.nabble.com> <1411912610921-4031225.post@n3.nabble.com> <1411920041376-4031227.post@n3.nabble.com> <3B5FFC67498DFF49AE7271A584867D16F40BF9A4EE@301EX00100.sidel.com> <1411982163944-4031237.post@n3.nabble.com> Message-ID: <1412098593182-4031272.post@n3.nabble.com> can somebdy please tell me what can be the reason for getting error 98 in fsolve function line....it means prob with initial guess values am putting or smthing else? Thanks -- View this message in context: http://mailinglists.scilab.org/Simulation-of-static-general-equilbiirum-model-tp4031213p4031272.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com.