X
PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 27 May 2015 12:32 AM by  anon
IDL 8.4 : SERIOUS problems with save files
 3 Replies
Sort:
You are not authorized to post a reply.
Author Messages

anon



New Member


Posts:3
New Member


--
27 May 2015 12:32 AM
    Good morning, I am running IDL 8.4 on a windows 2008 server machine. I have two problems with the save files I am creating: 1. Even though I am including the exit, /no_confirm, command before the end command at the end of the program, IDL does not exit. I.e. the save file starts, runs, executes and then just sits there. If I simply run the same code properly, i.e. open, compile, run, then it executes and at the end, exists IDL. From the save file, it does not. Any ideas? 2. Why do the save file ask for a particular workspace? I have a long list of save files I wish to run sequentially. If IDL always has to ask about the name of the workspace/workbench, it undefines the whole point of save files! Thank you for a swift reply, MariLiza

    Deleted User



    New Member


    Posts:7
    New Member


    --
    28 May 2015 12:05 AM
    Hi, I can only comment on your first point. I discovered the same when I migrated from an very old version IDL6.2 to IDL8.2. I too had 'exit /no_confirm' in my program. This worked fine in IDL6.2, but periodically worked in IDL8.2 What I discovered was that if there was a file open in the workspace, then IDL did not exit properly. With no file open, it exitted properly everytime. I thought it was a timing issue, so I placed a delay before the exit command, but that didn't solve it. I did raise a support call, but it didn't get resolved. Lee

    Deleted User



    New Member


    Posts:3
    New Member


    --
    28 May 2015 12:55 AM
    Hi Lee, Thanks for the tip on the open program in the workspace. I wouldn't have thought of it. So basically, I should make sure that there are no open files in the workspace that the save file runs from, I'll try it out of course. Did you need at any point to run more than one IDL simultaneously?in windows of course. Maybe you might know how to tell IDL to always open the same workspace, even if there are two IDL sessions running? When I was using older IDL versions, like IDL 6.3/6.4, I could run 10 different programs at the same time without having to actually be there and tell IDL which workspace to load and so on. This whole workspace business has really completely messed up with the whole "automatization" [if such a work exists] of working with IDL. Thanks MariLiza

    Zachary Norman



    Basic Member


    Posts:173
    Basic Member


    --
    28 May 2015 08:49 AM
    Hi MariLiza, For your first question, I think it would be best if you try the following procedure for creating files with exit in them. I tested this on my Windows machine in IDL 8.4.1. Here is the code and example to test that it works: pro exit_procedure_test exit end Once you save this as a .pro file named 'exit_procedure_test.pro', issue the following commands in the IDLDE (workbench). .f ;this extends to .full_reset_session when typed in the IDL Console .compile exit_procedure_test resolve_all, /CONTINUE_ON_ERROR save, file ='exit_procedure_test.sav', /routine .f ;reset the session once more to clear memory restore, 'exit_procedure_test.sav' exit_procedure_test ;this will run the restored procedure, notice that there is no compiled module statement If this does work, then you may want to apply the same process to your other programs to generate the save files in this method. For your second question, if you are trying to do batch processing with IDL you will need to use IDL from the command prompt, not the IDLDE with the graphical interface. You are asked for a new workspace each time the IDLDE is opened because there are files with your preferences which get saved each time you exit the IDLDE. These files are opened, and remain active, in the first session of the IDLDE that starts. There cannot be multiple instances of the IDLDE accessing and writing these files at the same time. If you have a list of save files that you want to process then you can create a batch script in IDL to restore these save files. This is not the same as a batch script which gets executed by the command prompt, however. You may want to read the following documentation page regarding batch jobs in IDL. I think that it may help provide insight to what you are trying to do. http://www.exelisvis.com/docs/BatchJobs.html
    You are not authorized to post a reply.