X
PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 30 Apr 2008 03:17 PM by  anon
I cannot run my application IDL Virtual Machine...
 1 Replies
Sort:
You are not authorized to post a reply.
Author Messages

anon



New Member


Posts:
New Member


--
30 Apr 2008 03:17 PM
    I have created a SAVE file (my_app.sav) containing several PRO files compiles that compose my application. My call the procedure "my_app" to run this application inside IDL. When I run the SAVE file from IDL, entering the following at the command prompt: ------------------------------------------------ RESTORE, 'C:\dir\my_app.sav' my_app ------------------------------------------------ It works very well like this. Since I use several function from ENVI, in the begining of my program I restore the core files and start ENVI in batch mode: -------------------------------------------------------- ENVI, /restore_base_save_files ENVI_BATCH_INIT, log_file = 'batch.log' -------------------------------------------------------- It doesn't block here if I run my program inside IDL. But if I try to use the IDL Virtual Machine... it just refuses to run my code. I tried to open the SAVE file using the IDL VM from several ways... 1) Selecting Start Programs -> IDL 6.4 -> IDL Virtual Machine. I clicked on the splash screen and opened my_app.sav, but then it just opened ENVI and didn't runned my code. 2) Using the Windows command line and I got the same result than before. I think it just restores ENVI files and stops. Why isn't he executing my code? Any suggestions? Thank you in advance, Paulo Resende

    Deleted User



    New Member


    Posts:
    New Member


    --
    30 Apr 2008 03:17 PM
    ENVI is a software separate from IDL. It needs its own license to run, and any IDL program that tries to initialize ENVI (which is what happens when you call "ENVI, /RESTORE..." and "ENVI_BATCH_INIT") needs to be licensed. For such license-only IDL-based programs the IDL Virtual Machine will not work. Such programs need to be run with the command: "C:\my\path\to\idlrt.exe" -novm "C:\my\other\path\to\my_app.sav" # Windows or: /my/path/to/idl -rt=/my/other/path/to/my_app.sav #UNIX Such machines need to have both 'envi' and 'idl_rt' INCREMENT/FEATUREs available in their ITT Visual Information Solutions license. Regards, James Jones ITT Technical Support
    You are not authorized to post a reply.