NSTX logo Overview Programming Diagnostics Applications
FAQ Web Tools UNIX & VMS MDSplus
software

    NSTX TF Joint Monitoring HELP

  1. Log onto nstxops

  2. At the prompt type: module load nstx/batch

  3. At the prompt type: tfmonitor status -v

  4. If TF Monitoring code is running properly you should see something like:

Status of TF Monitor Jobs:
Process started at 09:13
idl children ids 28916
vfb pid 28912
Total number of processes 2

If TF Monitoring code is not running you will see something like this:

Status of TF Monitor Jobs:
Process started at
idl children ids
vfb pid
Total number of processes 0

NOTE:  Reasons why the display may not update include: 

  1. No TF current on the previous shot.
  2. No Voltage data on the previous shot.
  3. Indistinguishable TF current flattop region or flattop region too small on the previous shot.
  4. If there is an error TF Monitor should log the error in /usr/pppl/nstxops/bin/db/log/tf_monitor.log and continue waiting for the next shot. (items 1-3 are not considered errors)
  1. Log onto nstxops as nstxops
  2. At the prompt type: module load nstx/batch
  3. At the prompt type: tfmonitor restart
If for some reason there is a problem and the tfmonitor job cannot be restarted.  tfmonitor can be run in an interactive idl session by:
  1. Log onto nstxops
  2. At the prompt type: module load nstx/batch
  3. idl
  4. tf, [shotnumber]    ; to run a particular shot OR
  5. tf                           ;to wait for shots and continue processing  --this will not work if MEMS isn't running properly.  It will never receive the event to process the data
  1. Log onto nstxops as yourself (you will need to have X11 forwarding available for debug mode)

  2. At the prompt type: module load nstx/mdsplus

  3. At the prompt type: module load nstx/batch

  4. At the prompt type: idl

  5. For normal operations at the IDL prompt type: tf, <shot_number>   or    tf, <shot_number>,/debug

  6. For independent interactive use at the IDL prompt type: tf_monitor, <shot_number>   or    tf_monitor, <shot_number>,/debug

  7. NOTE:  If you have run tf_monitor interactively for a particular shot the shot label on the tfmonitor web page may no longer correspond to the last shot but to the shot for which tf_monitor was just run.

See Below for detailed TF_monitor documentation and more program options:

NAME: tf_monitor
 

 PURPOSE:
 Retrieve TF flag data from mdsplus. Calculate Resistances across each
 joint. Write resistances to SQL database and create output file for
 display on the web.
 

 CALLING SEQUENCE:

  IDL> tf_monitor, shot,[debug],[draw_only],[flag_arr=flag_arr],[trend=trend],[web=web],[reload=reload]
  IDL>tf_monitor, 111140,/debug,/draw_only
  IDL> tf_monitor, 110720
  IDL> tf_monitor, 111121,flag_arr=['TFJ_27_27_V','TFJ_27_28_V'],trend="sop"
 

INPUTS:  shot - shot number.

KEYWORD PARAMETERS:
 debug - toggle whether or not to display calculated values for
 voltage, resistance and trend info while processing
 draw_only - prevents application from writing to database if only
 a display is desired (for example if the data is already in the
 database)
 flag_arr - By default this program will output a graph file that contains
 plots of the voltages and trend info for the joints calculated to
 have the min and max resistances. If you wish to override this to show
 instead specific joints, use this keyword as shown above.
 trend - By default this program will choose SOP data from the database
 for non calibration shots. Set trend="max" or trend="soft" or
 trend="eoft" to override the default behavior. This keyword
 has no effect for calibration shots which will always trend
 soft data.
 reload - Causes resistance calculation to overwrite values previously put in the database for that shot.
 

OUTPUTS:
 Resistance values to the SQL Server database in the TF_InnerMon and
 TF_OuterMon tables. Creates a file named tf_monitor.gw and one called
 tf_trend.gw in /w/nstx.pppl.gov/htdocs/nstx/Software/ with output to
 be displayed in elvis either on the web at http://nstx.pppl.gov/nstx/Software/tf_monitor.html
 or using the elvis application by running /p/nstxusr2/user/dmastrov/tf_mon/elvis and loading
 the file located in /w/nstx.pppl.gov/htdocs/nstx/Software/
 
 

NOTE:  If you have run tf_monitor interactively for a particular shot the shot label on the tfmonitor web page may no longer correspond to the last shot but to the shot for which tf_monitor was just run.

 

 

 

 

 

___________________________________________________________________________________

last edited:  28-Feb-2007  ps