comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Error in IDL
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Error in IDL [message #78010] Fri, 21 October 2011 09:37 Go to next message
shaheda shahi is currently offline  shaheda shahi
Messages: 7
Registered: October 2011
Junior Member
Hi,
I get the error in running the program as "Attempt to call
undefined procedure/function".
So, I have added the path of the program to the default path using '!
path'. Even it gives the same error. I tried 'resolve_all' command
also. It says that '
% Compiled module: RESOLVE_ALL.
% Attempt to call undefined procedure/function: 'DEFAULT'.
% Error occurred at: RESOLVE_ALL_BODY 290 /usr/local/itt/idl71/lib/
resolve_all.pro
% RESOLVE_ALL 351 /usr/local/itt/idl71/lib/
resolve_all.pro
% $MAIN$
% Execution halted at: $MAIN$

So, what can I do in this case? Should I need to add the default
routine in the library?
Please help me out.

Thank you.

-Shaheda
Re: Error in IDL [message #78078 is a reply to message #78010] Mon, 24 October 2011 10:26 Go to previous messageGo to next message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
shaheda shahi writes:

> I have tried getting the path from 'file_which' also.
> It prints blank space????

If you wanted to see a list of the directories that are on
your IDL path, you can type this:

IDL> Print, Transpose(StrSplit(!Path, $
Path_Sep(/search_path),/Extract))

Is the directory that contains this program file on that
list?

Cheers,

David

--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
Re: Error in IDL [message #78079 is a reply to message #78010] Mon, 24 October 2011 10:18 Go to previous messageGo to next message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
shaheda shahi writes:

> I have tried getting the path from 'file_which' also.
> It prints blank space????

Yes. It is blank because it is not finding the routine
on your IDL path. :-)

If the routine were on your IDL path, it would print
the location.

Here are some examples of ways you can add the Coyote
directory to your path. You need to do something like
this with the directory that contains your program.

http://www.idlcoyote.com/code_tips/installcoyote.php

Cheers,

David


--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
Re: Error in IDL [message #78080 is a reply to message #78010] Mon, 24 October 2011 09:38 Go to previous messageGo to next message
shaheda shahi is currently offline  shaheda shahi
Messages: 7
Registered: October 2011
Junior Member
On Oct 24, 8:23 pm, David Fanning <n...@dfanning.com> wrote:
> shaheda shahi writes:
>>    The program calls for a function.
>> This program is already run many times in another
>> account. I created a new account and I am using it.
>> It was running even in the new account after
>> me adding the '!path". Now, this is also not helping.
>
> Then I would say the file is not on your IDL path,
> despite your attempt to put it there. You would
> not be the first person to set an IDL path up
> incorrectly. :-)
>
> When you can locate the file with FILE_WHICH, then
> you will know it is on your IDL path.
>
> Cheers,
>
> David
> --
> David Fanning, Ph.D.
> Fanning Software Consulting, Inc.
> Coyote's Guide to IDL Programming:http://www.idlcoyote.com/
> Sepore ma de ni thui. ("Perhaps thou speakest truth.")

Hi David Fanning,
I have tried getting the path from 'file_which' also.
It prints blank space????

-Shaheda
Re: Error in IDL [message #78082 is a reply to message #78010] Mon, 24 October 2011 08:23 Go to previous messageGo to next message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
shaheda shahi writes:

> The program calls for a function.
> This program is already run many times in another
> account. I created a new account and I am using it.
> It was running even in the new account after
> me adding the '!path". Now, this is also not helping.

Then I would say the file is not on your IDL path,
despite your attempt to put it there. You would
not be the first person to set an IDL path up
incorrectly. :-)

When you can locate the file with FILE_WHICH, then
you will know it is on your IDL path.

Cheers,

David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
Re: Error in IDL [message #78084 is a reply to message #78010] Mon, 24 October 2011 08:09 Go to previous messageGo to next message
shaheda shahi is currently offline  shaheda shahi
Messages: 7
Registered: October 2011
Junior Member
On Oct 22, 6:29 am, David Fanning <n...@dfanning.com> wrote:
> shaheda shahi writes:
>> So, what can I do in this case? Should I need to add the default
>> routine in the library?
>
> Is your routine a procedure or a function? Can you give us
> an example of how you are calling it?
>
> Cheers,
>
> David
>
> --
> David Fanning, Ph.D.
> Fanning Software Consulting, Inc.
> Coyote's Guide to IDL Programming:http://www.idlcoyote.com/
> Sepore ma de ni thui. ("Perhaps thou speakest truth.")

Hi David Fanning,
The program calls for a function.
This program is already run many times in another
account. I created a new account and I am using it.
It was running even in the new account after
me adding the '!path". Now, this is also not helping.


-Shaheda
Re: Error in IDL [message #78103 is a reply to message #78010] Fri, 21 October 2011 18:29 Go to previous messageGo to next message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
shaheda shahi writes:

> So, what can I do in this case? Should I need to add the default
> routine in the library?

Is your routine a procedure or a function? Can you give us
an example of how you are calling it?

Cheers,

David


--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
Re: Error in IDL [message #78119 is a reply to message #78078] Thu, 27 October 2011 05:05 Go to previous message
shaheda shahi is currently offline  shaheda shahi
Messages: 7
Registered: October 2011
Junior Member
On Oct 24, 1:26 pm, David Fanning <n...@dfanning.com> wrote:
> shaheda shahi writes:
>>     I have tried getting the path from 'file_which' also.
>> It prints blank space????
>
> If you wanted to see a list of the directories that are on
> your IDL path, you can type this:
>
>    IDL> Print, Transpose(StrSplit(!Path, $
>           Path_Sep(/search_path),/Extract))
>
> Is the directory that contains this program file on that
> list?
>
> Cheers,
>
> David
>
> --
> David Fanning, Ph.D.
> Fanning Software Consulting, Inc.
> Coyote's Guide to IDL Programming:http://www.idlcoyote.com/
> Sepore ma de ni thui. ("Perhaps thou speakest truth.")

Dear David Fanning,
The problem is solved.
I use to run IDL in linux. First, I usually run SSW then IDL.
Now attempted to run as SSWIDL. The program works..:-P
Simple mistake.
SSW batch and SSWIDL batch will be different?? I should check
that now.

Thank you.

-Shaheda
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Function to find value in IDL
Next Topic: Re: Function to find value in IDL

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 13:42:40 PDT 2025

Total time taken to generate the page: 0.00836 seconds