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

Home » Public Forums » archive » Re: READs and PRINTs under Windows
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: READs and PRINTs under Windows [message #42601] Thu, 17 February 2005 11:52
Eric[2] is currently offline  Eric[2]
Messages: 3
Registered: May 2003
Junior Member
I was just digging through some old emails and evidently I saw this
problem before but forgot about it (I hardly use IDL). I guess the
Windows implementation of IDL VM is slightly f-ed up. Not a huge
deal but annoying and I wish it was better documented (better still
if they actually got it to work).

eric

Benjamin Hornberger wrote:
> I guess the problem is that in the VM you don't have access to stdin
> (command line) and stdout (output log).
>
> I sometimes use
>
> IF ~lmgr(/runtime) THEN ...
>
> to include code which should be executed only in a fully licensed IDL
> environment.
>
> Benjamin
Re: READs and PRINTs under Windows [message #42602 is a reply to message #42601] Thu, 17 February 2005 11:41 Go to previous message
Rick Towler is currently offline  Rick Towler
Messages: 821
Registered: August 1998
Senior Member
> I was just futzing around with IDL VM and .sav programs
> and it seems that the Win2K version of IDL VM doesn't
> like READ and PRINT commands (these same .sav programs
> work fine under linux IDL VM). My question: Is this a
> known problem with IDL or is the problem on my end?
> Any suggestions as to how to fix this problem?

This is a bit of a bugger, isn't it?

My workaround is RHTvmConsole, a simple widget replacement for the PRINT
and READ procedures. You can drop it in with a simple find/replace and
it should handle the basics.

http://www.acoustics.washington.edu/~towler/programs/RHTvmCo nsole.zip


-Rick
Re: READs and PRINTs under Windows [message #42604 is a reply to message #42602] Thu, 17 February 2005 11:27 Go to previous message
Benjamin Hornberger is currently offline  Benjamin Hornberger
Messages: 258
Registered: March 2004
Senior Member
Eric wrote:
> Hi,
>
> I was just futzing around with IDL VM and .sav programs
> and it seems that the Win2K version of IDL VM doesn't
> like READ and PRINT commands (these same .sav programs
> work fine under linux IDL VM). My question: Is this a
> known problem with IDL or is the problem on my end?
> Any suggestions as to how to fix this problem?
>
> Thanks in advance
> eric

I guess the problem is that in the VM you don't have access to stdin
(command line) and stdout (output log).

I sometimes use

IF ~lmgr(/runtime) THEN ...

to include code which should be executed only in a fully licensed IDL
environment.

Benjamin
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Printing color object graphics (PRINTER device?)
Next Topic: Simple typo in iTools manual

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

Current Time: Sun Oct 12 16:54:29 PDT 2025

Total time taken to generate the page: 1.31770 seconds