X
PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 22 Feb 2013 04:39 AM by  anon
IDL-IDL Bridge and ENVI API
 2 Replies
Sort:
You are not authorized to post a reply.
Author Messages

anon



New Member


Posts:
New Member


--
22 Feb 2013 04:39 AM
    Hi, I'm built an ENVI extension composed of two files: main.pro login.pro The main.pro contains the widgets logic while the logic.pro has the code to process an image. I used the IDL-IDL bridge functionality to call logic.pro from main.pro but I'm running into an issue when I try to call an ENVI API inside logic.pro. I get the message error: % IDL_IDLBRIDGE Error: Attempt to call undefined procedure/function: 'ENVI_OPEN_FILE'. I'm using IDL8.2 together with ENVI 5. The ENVI_OPEN_FILE call works correctly in main.pro file. Can you help me troubleshooting this issue? Thanks

    Deleted User



    New Member


    Posts:
    New Member


    --
    25 Feb 2013 05:36 PM
    Hi there, Could it be possible that the bridge doesn't have the correct path information so doesn't know where the IDL functions are? Maybe you need to explicitly from the IDL bridge set the token, something like: PREF_SET, 'IDL_PATH', '', /COMMIT or from Windows PREF_SET, 'IDL_PATH', '' PREF_COMMIT Cheers, Fernando

    Deleted User



    New Member


    Posts:
    New Member


    --
    02 Apr 2013 03:45 PM
    When you create an IDL_IDLBridge, only IDL is started, not ENVI. The new IDL session doesn't know anything about the environment of the original process unless you explicitly tell it something, either by copying variable or executing commands. Try executing, for example, ENVI, /RESTORE_BASE_SAVE_FILES, etc., via a call to IDL_IDLBridge::Execute.
    You are not authorized to post a reply.