IDL sav files and console output (IDL 8.2) [message #82002] |
Tue, 13 November 2012 14:29  |
desertdryad
Messages: 39 Registered: August 2011
|
Member |
|
|
HI folks -
I am struggling today with what looks like some fundamental
misunderstandings about using ILD sav files. I'm working on some
legacy code where the desired end product is a sav file IDL
'executable'. There are some things that need to be changed in this
project, and I want ro run the project right from the IDL project, vs.
runnin the sav file - but I can't. I can a newly compiled and
generated sav file just fine, but if I left click on the project
itself in the workbench, it does not run, and I get a 'class not
found' error (the project interfaces with some Java code). But the
sav does not complain. Why / how is that?
Also, one reason I am trying to run the project without using the sav
file, is that I cannot seem to print output from the projects'
procedures to the console, running the sav file. Is that correct?
thank you to anyone who can shed some light on this.
|
|
|
Re: IDL sav files and console output (IDL 8.2) [message #82096 is a reply to message #82002] |
Tue, 13 November 2012 21:11  |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
cyndy writes:
> I am struggling today with what looks like some fundamental
> misunderstandings about using ILD sav files. I'm working on some
> legacy code where the desired end product is a sav file IDL
> 'executable'. There are some things that need to be changed in this
> project, and I want ro run the project right from the IDL project, vs.
> runnin the sav file - but I can't.
No, save files don't really "run" from the Workbench. In fact,
they don't do much there except complicate your life by
confusing you about which programs are already compiled,
etc. I'd try to keep them as far away from your Workbench
as possible. :-)
> I can a newly compiled and
> generated sav file just fine, but if I left click on the project
> itself in the workbench, it does not run, and I get a 'class not
> found' error (the project interfaces with some Java code). But the
> sav does not complain. Why / how is that?
As I say, save files are just there to confuse you. Build them,
then move them far away from you. Save file can be *restored*
from the IDL command line. I really don't know what happens when
you select them from the Workbench. Nothing useful, probably.
And, certainly, nothing good.
> Also, one reason I am trying to run the project without using the sav
> file, is that I cannot seem to print output from the projects'
> procedures to the console, running the sav file. Is that correct?
There is no "console" when a save file is "running", since it is
running from a run-time version of IDL, which by definition
doesn't have a console. So, you aren't going to have anything
printed out anywhere, unless your program writes to a file, or
maybe to a text widget where the user can see it in the GUI.
> thank you to anyone who can shed some light on this.
I think what you probably don't realize is that you have
two different versions of IDL installed, and different things
happen in each. It *is* confusing.
Cheers,
David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thue. ("Perhaps thou speakest truth.")
|
|
|