Three (of many) ways to use X windows with IDL follow. You must first setup IDL in system-specific ways (see below).
NOTE THAT VERSATERM MAY NOT WORK AT PPPL AFTER September, 2005, SINCE TELNET IS CONSIDERED INSECURE!!!
% DEVICE: Unable to open X Windows display.
Is your DEVICE environment variable set correctly?
Some window managers automatically set this information, but if not, you can
do it manually. You will need to know your computers TCP/IP number,
e.g., 198.35.2.251, or the name, such as mything.pppl.gov. See the
architecture-specific information below. Additionally, most X-window systems
(but not MacX and eXodus) need permission to send their X windows to your X
display. For example, if you have logged into sunfire14 to run IDL, you will
have to type
xhost sunfire14.pppl.govin a login window, or give permission through some security menu, to allow X windows from sunfire14.pppl.gov to be displayed at your display.
IDL will be in your path, so simply type idl
to the system prompt.
NSTX users new to Unix should read
/p/nstxusr1/util/init_files/AAA_Whats_Here.txt.
To have access to NSTX-support (and some other user-written routines),
you will need additional
directories added to your IDL_PATH environmental variable.
If you are running the csh or tcsh shells,
place the following in your
.cshrc UNIX startup file:
module load nstx/mdsplus
and to set your DISPLAY environmental variable (if the system doesn't do so already, as when using ssh):
sunfire14.pppl.gov% setenv DISPLAY mything.pppl.gov:0
(substituting your
TCP/IP identifier for mything.pppl.gov).
If you are running bash, include the following line in your .bashrc file:
if [ -f /nstxusr1/MDSbashSetup ]; then . /nstxusr1/MDSbashSetup; fi
If you want to use Tektronix graphics on Unix, rather than X, once you are
in IDL, type the following:
IDL> SET_PLOT,'tek'
IDL> DEVICE, /TEK4100
You may wish to put these in your IDL startup file ($HOME/.idl_startup).
General VMS users should use Europa:
a) If NOT using an X-window for IDL output, simply:
EUROPA$ setup idl
EUROPA$ idl
b) Otherwise:
EUROPA$ setup nstx ! defines the symbol set_display
EUROPA$ set_display mything.pppl.gov
EUROPA$ setup idl x
EUROPA$ idl
or, if you prefer to use the IDL Development Environment on VMS:
EUROPA$ setup nstx ! defines the symbol set_display
EUROPA$ set_display mything.pppl.gov
EUROPA$ setup idlde ! only runs in X-windows
EUROPA$ idlde
(substituting your
TCP/IP identifier for mything.pppl.gov).
Note that everything but the "idl" or the "idlde" command can go in your
login.com file.
NOTE: If you used Secure Shell (ssh) to move to the VMS computer, you will NOT need to manually set your DISPLAY. ssh needs it's own TCP/IP number, so changing it will not work.
You have some options. See Limiting "Flashing" when using IDL at PPPL.
Your monitor, or X-server, is probably set for 24-bit color (millions of colors), and the IDL routines are trying to work with 8-bit color. Do the following immediately upon entering IDL:
IDL> Device, Pseudo_Color=8, Decomposed=0
See
http://NSTX.pppl.gov/nstx/Software/IDL/simplecolors.html for
an easy way to plot with named colors in IDL.
Excellent advice on using color in IDL is provided at
Fanning Consulting IDL Pages .
The page on
Limiting "Flashing" when using IDL at PPPL is also relevant.
If the IDL documention convention has been followed, you may get documentation on individual routines by typing:
IDL> doc_library,'routine_name'
Please mail comments on this page to bdavis.