30 Nov 2012 08:32 PM |
|
Hi
I added some menu to ENVI, however each time I should run both IDL and ENVI. Otherwise my menu is not in toollbar of ENVI
How can I fix it in menu-bar without running IDL.
Thank you
|
|
|
|
Deleted User New Member
Posts:  
04 Dec 2012 08:35 AM |
|
Where did you put your *.pro file? It should be in the 'save_add' directory of your ENVI installation path. What version of ENVI are you using and what is your operating system WIndows 7?
|
|
|
|
Deleted User New Member
Posts:  
04 Dec 2012 08:45 AM |
|
Hi,
Thank you for your comment. Yes I put my file in save_add. When I run ENVI-IDL I can see my menu, but without IDL my menu is not in ENVI.
|
|
|
|
Deleted User New Member
Posts:  
11 Dec 2012 03:25 PM |
|
What version of ENVI are you using?
What is your operating system WIndows 7?
How are you adding your function to the menu ? With ENVI_DEFINE_MENU_BUTTON or some other method?
Can you copy the code here so I can see what it does?
|
|
|
|
Deleted User New Member
Posts:24  
13 Dec 2012 01:53 AM |
|
Hi,
As per my understanding, you are using .pro files; in this case you need to open both IDL & ENVI to see your new tool in ENVI. You can generate .sav file and put the same on “save_add” directory; in this case you don’t need to open IDL to see and use your new tools on ENVI. Below is the steps to generate .sav file from .pro code:
1. Reset IDL using the command given below
.full_reset_session
2. IDL > Run > Complie
3. Resolve all functions and procedures that are called in the application by typing the following command at the IDL command prompt:
RESOLVE_ALL, SKIP_ROUTINES='envi', /CONTINUE_ON_ERROR, /QUIET
4. Create the .sav file by typing the following command at the IDL command prompt:
SAVE, /ROUTINES, FILENAME = 'C:\MyTool\MyScriptTool.sav'
5. File > Exit
6. Put the new newly generated .sav file on “save_add” directory
Let me know how it goes.
Regards,
Partha Ghosh
|
|
|
|
Deleted User New Member
Posts:  
13 Dec 2012 08:34 AM |
|
Hi,
I did the exact thing that you did, but still I cannot see my menu in ENVI without IDL.
So strange.
|
|
|
|
Deleted User New Member
Posts:  
13 Dec 2012 08:55 AM |
|
Maybe you should get in touch with Exelis Technical Support and send them the *.sav file you are using. They also need to know what operating system you are using i.e Windows 7, Mac OS X 10.x.x. They may be able to understand what the problem is.
|
|
|
|