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

Home » Public Forums » archive » Solution to CURSOR problem
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Solution to CURSOR problem [message #1104] Fri, 06 August 1993 14:22
AMAZUK is currently offline  AMAZUK
Messages: 3
Registered: August 1993
Junior Member
On 2 Aug 1993 18:27:09, I posed this question:

> I am running IDL Version 3.0.0 using VAX/VMS 5.5. I am trying to make
> multiple calls to CURSOR to read in data coordinates. It seems to work
> the first time that I call CURSOR, but each call after that gives erroneous
> results. Has any else had this problem? Is there some procedure that I
> need to use between CURSOR calls?

I should reiterate that I am using a tektronics emulator on a Graph-On
terminal and do not have a mouse.

Many people provided me insight on the "true solution" which is in the
DEVICE procedure. Appendix E. IDL Graphics Devices (in the version 2 manual
this is section E.9.1 The DEVICE Procedure For Tektronics Devices pg E-40)
gives a good explanation of what is going on. The GIN_CHARS keyword is the
"key" and here is the manual's explanation:

(quote)
GIN_CHARS - The number of characters IDL is to read when accepting
a GIN (Graphics Input) report. The default is 5. If your terminal
is strapped to send a carriage return at the end of each GIN report,
set this parameter to 6. If the number of GIN characters is too large,
the IDL CURSOR procedure will not respond until two more keys are
struck. If it is too small, the extra characters sent by the terminal
will appear as input to the next IDL prompt.
(end quote)

So, to correct the problem I was having, I needed to add this to my
code:

set_plot,'tek'
device,gin_chars=6

* RSI, if you are reading this, perhaps you should also put this information
in the CURSOR section since I never would have looked under DEVICE!

Ann

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^
Ann Mazuk Internet: amazuk@dirac2.span.nasa.gov
The Aerospace Corporation SPAN: DIRAC2::AMAZUK
El Segundo, California
* same ole disclaimer: these views are mine - not my employer's or NASA's
------------------------------------------------------------ ----------------
[Message index]
 
Read Message
Previous Topic: Re: rescaling an image
Next Topic: Re: The total function in IDL (RSI read please)

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

Current Time: Wed Oct 08 15:34:44 PDT 2025

Total time taken to generate the page: 0.00419 seconds