How to tell if TF Joint Monitoring code is running:
Log onto nstxops
At the prompt type: module load nstx/batch
At the prompt type: tfmonitor status -v
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:
How to Run TF Joint Resistance calculation codes interactively:
Log onto nstxops as yourself (you will need to have X11 forwarding available for debug mode)
At the prompt type: module load nstx/mdsplus
At the prompt type: module load nstx/batch
At the prompt type: idl
For normal operations at the IDL prompt type: tf, <shot_number> or tf, <shot_number>,/debug
For independent interactive use at the IDL prompt type: tf_monitor, <shot_number> or tf_monitor, <shot_number>,/debug
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