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

Home » Public Forums » archive » Keyword UNAME not allowed in call to: CW_FSLIDER
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
Keyword UNAME not allowed in call to: CW_FSLIDER [message #85711] Thu, 29 August 2013 04:57 Go to next message
Søren Frimann is currently offline  Søren Frimann
Messages: 13
Registered: November 2010
Junior Member
Hi all,

I'm having a very weird problem in IDL.

I have a large widget base program which is calling the IDL function CW_FSLIDER, among others using the keyword uname.

However IDL complains that % Keyword UNAME not allowed in call to: CW_FSLIDER

This has worked for me before on a linux machine running IDL 7. I am now on a mac running IDL 8.2

I have checked the documentation, and even the .pro file in the lib directory, and UNAME is a valid keyword, and it is also used appropriately. I'm really at a loss on what could be wrong.

Cheers,
Søren
Re: Keyword UNAME not allowed in call to: CW_FSLIDER [message #85713 is a reply to message #85711] Thu, 29 August 2013 05:25 Go to previous messageGo to next message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Søren Frimann writes:

> I'm having a very weird problem in IDL.
>
> I have a large widget base program which is calling the IDL function CW_FSLIDER, among others using the keyword uname.
>
> However IDL complains that % Keyword UNAME not allowed in call to: CW_FSLIDER
>
> This has worked for me before on a linux machine running IDL 7. I am now on a mac running IDL 8.2
>
> I have checked the documentation, and even the .pro file in the lib directory, and UNAME is a valid keyword, and it is also used appropriately. I'm really at a loss on what could be wrong.

My guess is "something else". :-)

Are you sure the widget ID you are using is pointing to the widget you
think it is? This kind of thing is almost certain to turn out to be a
programmer error.

Cheers,

David


--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
Sepore ma de ni thue. ("Perhaps thou speakest truth.")
Re: Keyword UNAME not allowed in call to: CW_FSLIDER [message #85717 is a reply to message #85713] Thu, 29 August 2013 05:49 Go to previous messageGo to next message
Søren Frimann is currently offline  Søren Frimann
Messages: 13
Registered: November 2010
Junior Member
Den torsdag den 29. august 2013 14.25.28 UTC+2 skrev David Fanning:
> Søren Frimann writes:
>
>
>
>> I'm having a very weird problem in IDL.
>
>>
>
>> I have a large widget base program which is calling the IDL function CW_FSLIDER, among others using the keyword uname.
>
>>
>
>> However IDL complains that % Keyword UNAME not allowed in call to: CW_FSLIDER
>
>>
>
>> This has worked for me before on a linux machine running IDL 7. I am now on a mac running IDL 8.2
>
>>
>
>> I have checked the documentation, and even the .pro file in the lib directory, and UNAME is a valid keyword, and it is also used appropriately. I'm really at a loss on what could be wrong.
>
>
>
> My guess is "something else". :-)
>
>
>
> Are you sure the widget ID you are using is pointing to the widget you
>
> think it is? This kind of thing is almost certain to turn out to be a
>
> programmer error.
>
>
>
> Cheers,
>
>
>
> David
>
>
>
>
>
> --
>
> David Fanning, Ph.D.
>
> Fanning Software Consulting, Inc.
>
> Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
>
> Sepore ma de ni thue. ("Perhaps thou speakest truth.")

Unfortunately I'm not sure of anything. I have no experience on writing widget based idl programs, and is merely using somebody else's code :-(

the only thing I know for sure is that it did work once upon a time, but I'll try to have a look at what you're suggesting.

I am however still very puzzled about the way in which this is failing. If I try to call CW_FSLIDER from the prompt it will complain that the widget specifier is invalid (clear enough, I'm not giving it a proper input). If I then give it the uname keyword it'll mention nothing about the invalid widget specifier, but go straight to uname not allowed in call to CW_FSLIDER. I still think that is very strange :-|
Re: Keyword UNAME not allowed in call to: CW_FSLIDER [message #85719 is a reply to message #85717] Thu, 29 August 2013 06:04 Go to previous messageGo to next message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Søren Frimann writes:

> Unfortunately I'm not sure of anything. I have no experience on writing widget based idl programs, and is merely using somebody else's code :-(

Ah, then forget about debugging and start thinking about strategies for
getting back at the SOB. ;-)

> the only thing I know for sure is that it did work once upon a time, but I'll try to have a look at what you're suggesting.
>
> I am however still very puzzled about the way in which this is failing. If I try to call CW_FSLIDER from the prompt it will complain that the widget specifier is invalid (clear enough, I'm not giving it a proper input). If I then give it the uname keyword it'll mention nothing about the invalid widget specifier, but go straight to uname not allowed in call to CW_FSLIDER. I still think that is very strange :-|

My guess is the widget ID doesn't point to the widget you think it does.
You might be able to use WIDGET_INFO and its various keywords to gather
information about the widget and see if you can figure out what is going
on. The CW_FSLIDER widget should be a base widget (use the TYPE
keyword). There is no question the code assigns a UNAME to this widget,
so the reason you can't find it appears not to be the fault of the
CW_FSLIDER program itself. :-)

Cheers,

David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
Sepore ma de ni thue. ("Perhaps thou speakest truth.")
Re: Keyword UNAME not allowed in call to: CW_FSLIDER [message #85753 is a reply to message #85719] Mon, 02 September 2013 06:37 Go to previous message
Søren Frimann is currently offline  Søren Frimann
Messages: 13
Registered: November 2010
Junior Member
For those who are interested I tried running the widget on my old linux machine using idl 8.2, and it works flawlessly. It thus seems that some IDL widget programming is platform specific.

Also, thank you for the additional info David :-)

Cheers,
Søren

Den torsdag den 29. august 2013 15.04.27 UTC+2 skrev David Fanning:
> Søren Frimann writes:
>
>
>
>> Unfortunately I'm not sure of anything. I have no experience on writing widget based idl programs, and is merely using somebody else's code :-(
>
>
>
> Ah, then forget about debugging and start thinking about strategies for
>
> getting back at the SOB. ;-)
>
>
>
>> the only thing I know for sure is that it did work once upon a time, but I'll try to have a look at what you're suggesting.
>
>>
>
>> I am however still very puzzled about the way in which this is failing. If I try to call CW_FSLIDER from the prompt it will complain that the widget specifier is invalid (clear enough, I'm not giving it a proper input). If I then give it the uname keyword it'll mention nothing about the invalid widget specifier, but go straight to uname not allowed in call to CW_FSLIDER. I still think that is very strange :-|
>
>
>
> My guess is the widget ID doesn't point to the widget you think it does.
>
> You might be able to use WIDGET_INFO and its various keywords to gather
>
> information about the widget and see if you can figure out what is going
>
> on. The CW_FSLIDER widget should be a base widget (use the TYPE
>
> keyword). There is no question the code assigns a UNAME to this widget,
>
> so the reason you can't find it appears not to be the fault of the
>
> CW_FSLIDER program itself. :-)
>
>
>
> Cheers,
>
>
>
> David
>
> --
>
> David Fanning, Ph.D.
>
> Fanning Software Consulting, Inc.
>
> Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
>
> Sepore ma de ni thue. ("Perhaps thou speakest truth.")
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: write_csv header problems
Next Topic: Question about projection for Google Earth

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

Current Time: Wed Oct 08 09:15:25 PDT 2025

Total time taken to generate the page: 0.00598 seconds