Re: How do I save parameters for next run? [message #38820] |
Thu, 01 April 2004 10:38  |
R.Bauer
Messages: 1424 Registered: November 1998
|
Senior Member |
|
|
Craig Markwardt wrote:
>
> Reimar Bauer <R.Bauer@fz-juelich.de> writes:
>>> Folks,
>>>
>>> I am wondering if I can save the user input parameters for the next
>>> run of my program without creating additional files for it's "memory".
>>>
>>> Is it possible? Thanks.
>>>
>>> Yunxiang
>>>
>>
>> Take a look on save and restore
>
> But he asked about not creating additional files. Not too many
> options for that. If running on Unix, it's possible to wrap IDL in a
> script, either Perl or Bourne shell or whatever, and then establish a
> protocol for the script to capture your crucial outputs. Not elegant
> but it could work.
>
> Craig
I read twice things not right. He asked for user input parameters.
But I can't answer how to do it without writing to a file.
Did you know the idl journal command?
> idl
IDL> journal, 'my_user_journal.pro' start the journal file and
IDL> a=10
IDL>
IDL> journal ends recording the user inputs.
IDL> exit
Afterwards this file could be called again by @my_user_journal from the IDL>
prompt, And print,a gives 10.
Reimar
|
|
|
|
|
Re: How do I save parameters for next run? [message #38964 is a reply to message #38820] |
Thu, 01 April 2004 14:10  |
Yunxiang Zhang
Messages: 19 Registered: October 2003
|
Junior Member |
|
|
Hi,
Sorry for the confusion. I just want my stand alone application to have a
small "memory" interactively. For example, I have a program, say,
'mypro.sav' and needs user to input a series of parameters, say p1, p2
...pn through an input gui. Then the program runs perfect. But then if
the next run the user only need to change a small fraction of the
parameters, it would be nice that my program can have a small memory so
that my gui displays the parameters input last time and the user need
only change maybe one parameter and press 'enter' to continue the
rest of the calculations.
The idea comes from my colleagues and I still can't think of a way without
creating some additional log file. Maybe somebody can tell me how to hack
the .sav file so that i can dock some data into a specific region without
breaking the .sav file.
Thanks,
Yunxiang
On Thu, 1 Apr 2004, Reimar Bauer wrote:
> Craig Markwardt wrote:
>
>>
>> Reimar Bauer <R.Bauer@fz-juelich.de> writes:
>>>> Folks,
>>>>
>>>> I am wondering if I can save the user input parameters for the next
>>>> run of my program without creating additional files for it's "memory".
>>>>
>>>> Is it possible? Thanks.
>>>>
>>>> Yunxiang
>>>>
>>>
>>> Take a look on save and restore
>>
>> But he asked about not creating additional files. Not too many
>> options for that. If running on Unix, it's possible to wrap IDL in a
>> script, either Perl or Bourne shell or whatever, and then establish a
>> protocol for the script to capture your crucial outputs. Not elegant
>> but it could work.
>>
>> Craig
>
> I read twice things not right. He asked for user input parameters.
>
> But I can't answer how to do it without writing to a file.
>
> Did you know the idl journal command?
>
>> idl
>
> IDL> journal, 'my_user_journal.pro' start the journal file and
> IDL> a=10
> IDL>
> IDL> journal ends recording the user inputs.
> IDL> exit
>
>
> Afterwards this file could be called again by @my_user_journal from the IDL>
> prompt, And print,a gives 10.
>
>
> Reimar
>
>
>
|
|
|