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

Home » Public Forums » archive » Delay in printing to screen
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
Delay in printing to screen [message #4254] Fri, 19 May 1995 00:00
mscutter is currently offline  mscutter
Messages: 2
Registered: May 1995
Junior Member
I'm running IDL for Windows and want to print information to the screen about the state
of my program, eg my program might contain the lines:

print,'What data file do you want to restore?'
read,datafile
print,'Please wait while restoring data...'
restore,datafile

The problem I have is that the restore procedure, which may take quite a few seconds, is done before the message 'Please wait while restoring data...' is printed to the screen. I'd like it to be printed before the restore procedure is started. I have also
tried using the message command with the keyword 'informational', but experience the
same delay. The Reference Guide says that the !QUIET system variable controls the
printing of informational messages, but I can't find any other references to this
variable or how to change it so that messages are printed immediately to the screen.
Does anyone know if the same thing happens when running IDL under UNIX or if there is
a system variable or 'work around' I can use in Windows to remove this delay time?

Thanks,

Michele Scutter

---

End Of Message
Re: Delay in printing to screen [message #4347 is a reply to message #4254] Fri, 19 May 1995 00:00 Go to previous message
peter is currently offline  peter
Messages: 80
Registered: February 1994
Member
In article 3phbmeINN221@myall.awadi.com.au, mscutter@awadi.com.au (Michele Scutter) writes:
: >I'm running IDL for Windows and want to print information to the screen about the state
: >of my program, eg my program might contain the lines:
: >
: > print,'What data file do you want to restore?'
: > read,datafile
: > print,'Please wait while restoring data...'
: > restore,datafile
: >
: >The problem I have is that the restore procedure, which may take quite a few seconds, is done before the message 'Please wait while restoring data...' is printed to the screen. I'd like it to be printed before the restore procedure is started. I have also


A similar problem arises when plotting complicated graphics under X,
where IDL sends off the plot commands then merrily continues, but the
output of the commands doesn't appear until IDL returns to the prompt
or to the xmanager.

The solution in that case is to place "WAIT, 0" after the plot command,
which appears to sync everything up, flush buffers, whatever. Maybe
it'll help you under Windoze.


--------------------------------
Peter Webb, HP Labs Medical Dept
E-Mail: peter_webb@hpl.hp.com
Phone: (415) 813-3756
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: Yet another bug??
Next Topic: Re: complex math error?

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

Current Time: Wed Oct 08 17:14:52 PDT 2025

Total time taken to generate the page: 0.00625 seconds