NSTX MDSplus Plotting Tools - Shot Entry Help

Web plotting tools like mdsplotfileinput.php allow inputs for the signals and Y-limits to come from a file. These files will be read from the workstation running the browser using embedded php code and Javascript.

You can create an input file for possible editing and future use by:

  1. setting some inputs on mdsplotfileinput.php,
  2. clicking the "E-mail the current settings on this page" button,
  3. entering your username in the "E-mail files to:" field,
  4. clicking "Go"
  5. saving the emailed file (maybe to a remotely-accessible directory, like a Google Drive,
  6. make a few changes to the saved file, naming it something relevant,
  7. read the new file in via the "Choose File" button,
  8. hit "Go" again and make sure the edits were used.

These input files can be also be created in a text editor or saved as a tab-delimited text files in Excel. The lines that contain the signal names can have 1, 2, or 3 columns, which are an expression containing MDSplus signals, optionally followed by the minimum and maximum Y values of that plot. Lines starting with "#" or "//" are ignored. E.g.

sh1=142000+2
\wf::ip	0.0	1000.
// subtract off 60 for background:
\cameras::ph7_5_favg-60	0	150
t1=0.2
t2=0.5
colors=['red','blue','green']
lines=[0,2,2]

NOTE THAT YOU NEED A <CR> AT THE END OF THIS INPUT FILE.

The user may edit the entries after they have been loaded from a file, or not use a file at all.

MDSplus Scope or jScope input files can be converted to the tab-delimeted text files used by plotting tools like mdsplotfileinput.php by using the IDL routine mk_wtinputfile.pro. E.g.

	IDL> mk_wtinputfile, 'mydiag.scope', 'mydiag.txt'

If you have comments or questions about this page, please send e-mail to nstxops


Edited 29-Jan-2015 by: Bill Davis