Re: Sharing program [message #56249 is a reply to message #56247] |
Tue, 09 October 2007 10:29   |
rpertaub@gmail.com
Messages: 43 Registered: January 2007
|
Member |
|
|
On Oct 8, 1:28 pm, David Fanning <da...@dfanning.com> wrote:
> rpert...@gmail.com writes:
>> Now I am not sure how to export it so
>> that I can run on VM? I tried saving the project as a .sav but that
>> did not work (when I used to small icons on the project bar) but did
>> when I tried a save as from the File menu.
>
> Say what!? As far as I know, it is impossible
> to create a save file from the File menu.
>
>> However that .sav program
>> does not work in VM. It gives me an error about using restore.
>
>> Is restore not a command that is able to be shared?
>
> RESTORE is certainly a command that can be used. Probably
> your program is not finding the file where it expects to find
> it (that is, in the same directory that the SAVE file is
> located). Remember that your start up file, etc. do NOT
> get run on the VM, so everything has to be located in the
> same place if you expect to find it. Of course, your program
> has to be written to look in that place, too. :-)
>
> Cheers,
>
> David
>
> Cheers,
>
> David
> --
> David Fanning, Ph.D.
> Fanning Software Consulting, Inc.
> Coyote's Guide to IDL Programming:http://www.dfanning.com/
Right!
Playing around more, I was able to export and have the .sav file.
However, as you say, my problem is finding my files. I have a series
of procedures one after another, which look for images, process and
save them on the hard disk, and then restore in next procedure to do
some other analysis, and so on. Hence, lots of saving to E drive, and
restoring. I understand this will be a problem in VM, however, I saved
all the images I needed into the project and still it spits out an
error of not being able to find folder at cd.
Where are you supposed to save the images and read them from so that
there is no hic in VM? Is there a special filepath?
Thanks!
RP
|
|
|