ElVis Tutorial Eliot Feibush

Preview:

Citation preview

ElVis Tutorial

Eliot Feibush

http://w3.pppl.gov/elvis

ElVis

• Display and interaction – Scientific Data.

• Applications send data to ElVis for display.

• Enhanced graphics with minor changes to existing programs.

• ElVis interfaces: – Subroutine programming (API – data in)– Graphical, interactive (GUI)

• Vector PostScript output.

Example Plots

Fusion Grid Monitor - TRANSP Inputs

Data Monitoring - TRANSP Output

NSTX TF Monitor

Send Data to ElVis

RPLOT

ElVis

Inter-Process Communication

Data Socket

App 2 App 3

...

ElVis

library

Petrel002 Petrel002

myWindowsPC

ElVis Server/Host machine

Socket Connection

• Socket – data stream between 2 programs– Can be on different computers.

• ElVis Title Bar has port number & hostname

ElVis hostname: red-tstElVis Port Number: 7654 (OS resource)

red-tst.pppl.gov

1. Run ElVis on Windows

• Browse to: w3.pppl.gov/elvis

• Click on: Run ElVis

Runs ElVis program on PC.

red-tst.pppl.gov

Run ElVis on Linux

• Browse to: w3.pppl.gov/elvis/download

• Download: elviscdf.jar

java –jar elviscdf.jarred-tst.pppl.gov

Future: Java Web Start -- click on link

2. Run RPLOT to ElVis

xterm

Set 2 environment variables for RPLOTELVIS_SERVER <hostname>

ELVIS_PORT <port number>

7654 is default

petrel002.pppl.gov> /usr/ntcc/bin/rplot

%RPLOT: detected ELVIS_SERVER = “red-tst”.

Vector PostScript Output

• ElVis menubar: File Print– Current GraphWindow – highlighted titlebar– WindowName.ps file to starting directory

• PostScript Viewergv –landscape –scalebase 2 file.ps

[ scalebase 2 matches PostScript coordinates ]

Printing

• lpr –Pprinter

lpr –Pb143-t7300dn

ElVis Features

• Zoom & Scroll – Current view is printed

• Data Readout• Whiteboard• Label Editor• Tile GraphWindows

• Help

SCOPE Display

• Read scope layout file, df.scope• Retrieve data from MDS+ via Servlet• Security Option: Check user’s credential

f(x,i)

• 2-D data

• Indexed in time or other parameter

– Animate 1 or more graphs simultaneously

– Surface plot– Contour plot

Browse for netCDF File Plot 1-D and 2-D variables

FWR

Collaboration

RPLOT

ElVis

App 2 App 3

ElVis 2 ElVis 3

Demonstrated at APS

Summary

1. w3.pppl.gov/elvis Run ElVis

2. Set environment variable(s) for RPLOTELVIS_SERVER <hostname>ELVIS_PORT <port number>

7654 is default

3. Run RPLOT

4. ElVis: FilePrint http://w3.pppl.gov/elvis

Recommended