X
PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 14 Oct 2003 05:36 PM by  anon
IDLVM - where do the "print" statements go?
 3 Replies
Sort:
You are not authorized to post a reply.
Author Messages

anon



New Member


Posts:
New Member


--
14 Oct 2003 05:36 PM
    Hi all. I've made a .sav file of one of my applications (version 6) that runs fine on my linux system, both in licensed and VM conditions, printing informative little remarks to the standard output. On Windows 2000 (where I am a naive user) if I use idlde and restore the .sav file, all is well -- my "print"s print where I can read them. Where do they go when I use the VM?

    Deleted User



    New Member


    Posts:
    New Member


    --
    23 Oct 2003 02:49 PM
    Kelly, Under Unix, IDL print statements go to stdout. This normally means that the output appears in the Unix terminal from which IDL VM was launched, unless stdout was redirected elsewhere by the user. For Windows applications there is no stdout defined. For DOS there is an stdout, but since IDL VM is a windows only application, it does not have stdout. The result is that the output from the print statement is never seen. There are a few ways around this limitation. The simplest approach is to call JOURNAL at the beginning of the program. With the JOURNAL procedure the user can create a text file which will capture all the output from the print statements. This is useful if you want to examine the output after running a program. It is not a good solution if you want the user to be continuously updated on progress. In this case you would need to rewrite the code to place the text in a text widget instead of using the PRINT statement. Hope this explains it! Molly Bantz (for Atle Borsholm of RSI Tech Support) Product Marketing Specialist Research Systems, Inc. - A Kodak Company 303-544-4418 http://www.rsinc.com

    Deleted User



    New Member


    Posts:
    New Member


    --
    23 Oct 2003 02:49 PM
    EXPLAIN ALL OF THIS TO ME

    Deleted User



    New Member


    Posts:
    New Member


    --
    02 Jun 2010 07:25 AM
    Hi, Is there still no workaround or solution for stdout in windows? I would like capture the output of a print command within a widget! cheers, sh
    You are not authorized to post a reply.