X
PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 19 Apr 2013 12:40 AM by  anon
can't run SAV file
 4 Replies
Sort:
You are not authorized to post a reply.
Author Messages

anon



New Member


Posts:
New Member


--
19 Apr 2013 12:40 AM
    Hello I am trying to create simple SAV file. But I have got some problem with it's running. I do next steps: 1. I had create simple function and saved it's as test.pro pro test print, 'hello!' end it's run succesfully. 2. I had add to envi.men next string 0 {MyFunctions} 1 {My Open File} {not used} {test} and it's appear on ENVI menu 3. then I put next command in IDE console: SAVE, FILENAME='D:\1\test.sav' then I copied test.sav from D:\1\test.sav to "save_add" folder. Then I try to run it's from menu, but I got error: % TEST: Incorrect number of arguments. % Execution halted at: $MAIN$ ======== Also I tried to enter next command: SAVE, /ROUTINES, FILENAME='D:\1\test.sav' (the test.sav file size increased from 1.9KB to 9MB) and SAVE, /ROUTINES, 'test', FILENAME = 'D:\1\test.sav' But I got the same error. What's I am doing wrong?

    MariM



    Veteran Member


    Posts:2396
    Veteran Member


    --
    19 Apr 2013 08:30 AM
    It is not clear if you are following all the instructions as described in the ENVI help for creating a .sav file: Sample Code and Instructions > Working with User Functions > Adapting User Functions for ENVI Classic > Creating a Save File It also sounds like you are compiling and creating the .sav file with your ENVI session running which is why the .sav is larger.

    Deleted User



    New Member


    Posts:
    New Member


    --
    21 Apr 2013 11:57 PM
    I am using 4.5 version. Where is this docs located? I tried to do it with next docs http://geol.hu/data/onlin...ctions_for_ENVI.html but it's does not helped.

    Deleted User



    New Member


    Posts:
    New Member


    --
    22 Apr 2013 06:31 AM
    Could you provide step-by-step guide? I can't create SAV and run it's from menu. PRO file_info base = WIDGET_BASE(/COLUMN, xsize=200, ysize=200) button = WIDGET_BUTTON(base, value='Done1', xsize=30, ysize=40) WIDGET_CONTROL, base, /REALIZE XMANAGER, 'widget12', base END then: SAVE, file='D:\1\file_info.sav', /routines and coping it's to save_add folder. It's appear in menu, but nothing is not happens when I run it.

    Deleted User



    New Member


    Posts:
    New Member


    --
    22 Apr 2013 09:14 AM
    Maybe this article will help: https://www.exelisvis.com/Support/HelpArticlesDetail/TabId/219/ArtMID/900/ArticleID/4589/4589.aspx
    You are not authorized to post a reply.