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 #63887 is a reply to message #63886] Fri, 21 November 2008 08:59 Go to previous messageGo to previous message
Michael Galloy is currently offline  Michael Galloy
Messages: 1114
Registered: April 2006
Senior Member
On Nov 21, 8:22 am, 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

This program (only modified to make ROOT_DIR point to something
reasonable for me), works for me:

IDL> .compile test_sav
% Compiled module: TEST_SAV.
IDL> save, /routines, filename='test_sav.sav'
IDL> exit
Desktop$ idl -vm=test_sav.sav -args 1 2
% Program caused arithmetic error: Floating illegal operand
Desktop$ cat test.txt
12

Mike
--
www.michaelgalloy.com
Tech-X Corporation
Associate Research Scientist
[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 04:23:26 PDT 2025

Total time taken to generate the page: 1.59876 seconds