ElVis Tutorial Eliot Feibush .

21
ElVis Tutorial Eliot Feibush http://w3.pppl.gov/elvis

Transcript of ElVis Tutorial Eliot Feibush .

Page 1: ElVis Tutorial Eliot Feibush .

ElVis Tutorial

Eliot Feibush

http://w3.pppl.gov/elvis

Page 2: ElVis Tutorial Eliot Feibush .

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.

Page 3: ElVis Tutorial Eliot Feibush .

Example Plots

Page 4: ElVis Tutorial Eliot Feibush .

Fusion Grid Monitor - TRANSP Inputs

Page 5: ElVis Tutorial Eliot Feibush .

Data Monitoring - TRANSP Output

Page 6: ElVis Tutorial Eliot Feibush .

NSTX TF Monitor

Page 7: ElVis Tutorial Eliot Feibush .

Send Data to ElVis

RPLOT

ElVis

Inter-Process Communication

Data Socket

App 2 App 3

...

ElVis

library

Petrel002 Petrel002

myWindowsPC

ElVis Server/Host machine

Page 8: ElVis Tutorial Eliot Feibush .

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

Page 9: ElVis Tutorial Eliot Feibush .

1. Run ElVis on Windows

• Browse to: w3.pppl.gov/elvis

• Click on: Run ElVis

Runs ElVis program on PC.

red-tst.pppl.gov

Page 10: ElVis Tutorial Eliot Feibush .

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

Page 11: ElVis Tutorial Eliot Feibush .

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”.

Page 12: ElVis Tutorial Eliot Feibush .
Page 13: ElVis Tutorial Eliot Feibush .

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 ]

Page 14: ElVis Tutorial Eliot Feibush .

Printing

• lpr –Pprinter

lpr –Pb143-t7300dn

Page 15: ElVis Tutorial Eliot Feibush .

ElVis Features

• Zoom & Scroll – Current view is printed

• Data Readout• Whiteboard• Label Editor• Tile GraphWindows

• Help

Page 16: ElVis Tutorial Eliot Feibush .

SCOPE Display

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

Page 17: ElVis Tutorial Eliot Feibush .

f(x,i)

• 2-D data

• Indexed in time or other parameter

– Animate 1 or more graphs simultaneously

– Surface plot– Contour plot

Page 18: ElVis Tutorial Eliot Feibush .

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

Page 19: ElVis Tutorial Eliot Feibush .

FWR

Page 20: ElVis Tutorial Eliot Feibush .

Collaboration

RPLOT

ElVis

App 2 App 3

ElVis 2 ElVis 3

Demonstrated at APS

Page 21: ElVis Tutorial Eliot Feibush .

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