Re: [Scilab-users] GUI save and import data

2016-09-15 Thread Rafael Guerra
Hi Petar, >From the code you provided, you may have consulted the Openeering tutorial >"How to develop a GUI in Scilab". With regards to the detailed example in that tutorial, it seems possible to reuse the newly input GUI input parameters (par variable) if: - the par(k) variable is not rese

Re: [Scilab-users] GUI save and import data

2016-09-15 Thread petarf
Hi Rafael, Thank you for your reply. It is hard for me to explain this but I will try to make it simple and effective. I have master file in which I create GUI and set initial values. Part of the code where I set inital values is: // labels1=["Q","dpTot","rho","n","eta"]; labels2=["m^3/s","Pa","k

Re: [Scilab-users] GUI save and import data

2016-09-13 Thread Rafael Guerra
: Tuesday, September 13, 2016 2:12 PM To: users@lists.scilab.org<mailto:users@lists.scilab.org> Subject: Re: [Scilab-users] GUI save and import data Hi, I managed to write function to place new values from txt. file instead of old values. But now when I run the calculation Q=findo

Re: [Scilab-users] GUI save and import data

2016-09-13 Thread Rafael Guerra
2016 2:12 PM To: users@lists.scilab.org Subject: Re: [Scilab-users] GUI save and import data Hi, I managed to write function to place new values from txt. file instead of old values. But now when I run the calculation Q=findobj("tag","Q"); par(1)=evstr(Q.string); dpTot=

Re: [Scilab-users] GUI save and import data

2016-09-13 Thread petarf
Hi, I managed to write function to place new values from txt. file instead of old values. But now when I run the calculation Q=findobj("tag","Q"); par(1)=evstr(Q.string); dpTot=findobj("tag","dpTot"); par(2)=evstr(dpTot.string); these set of lines do not read new values. String Q is evaluated

Re: [Scilab-users] GUI save and import data

2016-09-12 Thread petarf
I apologise for posting twice. I deleted previous post but nothing happend. Problem was with size/lenght. Thnak you for your help! Regards, Petar -- View this message in context: http://mailinglists.scilab.org/GUI-save-and-import-data-tp4034558p4034564.html Sent from the Scilab users - Mailin

Re: [Scilab-users] GUI save and import data

2016-09-12 Thread petarf
Hi Paul, Thank you for you fast reply. I managed to do something with save option. function saveFile // Gather data Q=findobj("tag","Q"); parameter(1)=evstr(Q.string); dpTot=findobj("tag","dpTot"); parameter(2)=evstr(dpTot.string); rho=findobj("tag","rho"); parameter(3)=evstr

Re: [Scilab-users] GUI save and import data

2016-09-12 Thread Rafael Guerra
:45 PM To: users@lists.scilab.org Subject: Re: [Scilab-users] GUI save and import data Hi Paul, Thank you for your fast replay. Now I have this problem. function saveFile // Gather data //par=[]; Q=findobj("tag","Q"); par(1)=evstr(Q.string); dpTot=findobj

Re: [Scilab-users] GUI save and import data

2016-09-12 Thread petarf
Hi Paul, Thank you for your fast replay. Now I have this problem. function saveFile // Gather data //par=[]; Q=findobj("tag","Q"); par(1)=evstr(Q.string); dpTot=findobj("tag","dpTot"); par(2)=evstr(dpTot.string); rho=findobj("tag","rho"); par(3)=evstr(rho.string); n

Re: [Scilab-users] GUI save and import data

2016-09-12 Thread Paul Bignier
Hi Petar, To write to txt, you may add a button with a callback that will call mopen & mputl. To read, you may combine uigetfile and mgetl functions. Regards, Paul On 09/12/2016 12:25 PM, petarf wrote: Hello, I have created GUI whre you put some data and then it does some calculation as