comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: simple .sav doesn't work
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: simple .sav doesn't work [message #63892 is a reply to message #63888] Fri, 21 November 2008 08:12 Go to previous messageGo to previous message
R.Bauer is currently offline  R.Bauer
Messages: 1424
Registered: November 1998
Senior Member
loebasboy schrieb:
> On 21 nov, 16:22, loebasboy <stijn....@gmail.com> wrote:
>> Hello,
>>
>> at first I wanted to try out the command line arguments of the idl
>> virtual machine in combination with a simple summation program, just
>> to test it out...
>>
>> PRO test_sav
>>
>> cla = command_line_args(count = count)
>> a = cla[0]
>> b = cla[1]
>>
>> c = a + b
>> header = string(c)
>> file = filepath('test.txt', root_dir='d:')
>> OpenW, lun3, file, /Get_Lun
>> PrintF, lun3, header
>> Free_Lun, lun3
>>
>> END
>
> Sorry for the half message but I hit tab and space too soon.
> To conclude, I thought the problem was with command line arguments but
> when I replaced a and b with simple numbers instead of the cla
> arguments and executed the .sav with virtual machine nothing happend.
> If I run the program in idl with compile and run, it does what is
> supposed to do. What am I doing wrong here? Sorry if this is a very
> stupid question, but it is the end of the week and I'm out of
> options ;)
>
> thanks in advance

command line args don't work with vm mode (at least I think it doesn't)
you have to think on a different way to get your data into the routine

e.g.
env vars
an ini file can be used to build an _extra structure
( http://www.fz-juelich.de/icg/icg-1/idl_icglib/idl_source/idl _html/dbase/read_ini_dbase.pro.html)
a gui

cheers
Reimar
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: How to change the font size in a legend (iPlot)
Next Topic: maximum LUN

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Sat Oct 11 05:38:27 PDT 2025

Total time taken to generate the page: 1.59510 seconds