The 7th International Workshop on tokamak Operation, April 12-16 2010, Daejeon, KOREA

2009
2008

2007
2006
2005
2004
2003
2002

Sulhee Baek
KSTAR Research Center

1998

KSTAR

Korea Superconducting Tokamak Advanced Research

The 7th International Workshop on tokamak Operation, April 12-16 2010, Daejeon, KOREA

Outline Introduction
 Operator interface
 Data access tools

 Misc. tools
 Summary2The 7th International Workshop on tokamak Operation, April 12-16 2010, Daejeon, KOREA

3

KSTAR
Introduction

Operator interface

Data access tools

Misc. tools

Summary•

KSTAR (Korea Superconducting Tokamak Advanced Research) is notan Accelerator but a Tokamak, Nuclear fusion research device.

•Refer to the invited talk, O-25, “Operational Results and Experience ofKSTAR Integrated Control System” by Mi-Kyung Park.

The 7th International Workshop on tokamak Operation, April 12-16 2010, Daejeon, KOREA

4KSTAR control system
Operator interface

Introduction

Machine Control
OPIs

Machine Operation
PCS
Experimental
Data Display
Control/Display
Data Display

OPIs

EPICS CA

Data access tools

Summary

Supervisory/Discharge Control

InterlockControl Network(xxx.xx.100.xxx)

MDSplus API
GPFS

Data Analysis
serverAccessControlOPIs

CA Viewer
OPIs

XML-RPC

Misc. tools

RDBServerStandby
serverDMZSANCA Gateway

ChannelArchiver

MDSPlusServer•Main Storage System•Backup System•Permanent Backup

Web_portal(xxx.xx.101.xxx) M(xxx.xx.102.xxx) ERITIBM x3650
Linux ServerTMS

VMS/CLS/HDSHRS

Plant Systems / EPICS IOCs

OthersIBM x3650
Linux Server

Heatings Fueling

MPS

Synchronized Op.

Diagnostics

GEP/CWF

Sub-Interlock

The 7th International Workshop on tokamak Operation, April 12-16 2010, Daejeon, KOREA

5

Data access interface
Introduction•Operator interface

Data access tools

EPICS Channel Access (CA) API:––Live data access API
Search and Connect Procedure•

Misc. tools

MDSPlus API:––Experimental data access API
Data Hierarchy – Trees, Nodes, and Models••–Summaryhierarchy of model trees ( )hierarchy of shot trees ( )Basic Procedure for a Channel Access ClientInitialize CA  Search  Do get or put  Monitor  Give CA achance to work  Clear a channel  Close CA•

XML-RPC:–––

Archived operation data service protocol
A remote procedure call protocol which uses XML toencode its calls and HTTP as a transport mechanism
Archive data server’s calls return following information••••archiver.info: version informationarchiver.archives: the archives that this data server
can accessarchiver.names: channel names and start/end timesarchiver.values: values from the archive identified by
the key for a given list of channel names and acommon time range–Basic Procedure for a MDSplus connection

mdsconnect  mdsopen  result = mdsvalue mdsput  mdsclose  mdsdisconnect

The 7th International Workshop on tokamak Operation, April 12-16 2010, Daejeon, KOREA

6KSTAR OPI Panels
Introduction•Operator interfaceData access tools

Misc. tools

SummaryDevelopment tools– Qt (KWT, QtCATool), MEDM, EDM
 KSTAR Widget Toolkit (KWT) is a development toolkit to make Qtapplication for the EPICS-based control system.

•Total number of the panels–about 150 EA including sub-panels

Tokamak Monitoring System OPI

MenuWindow and Operator Interfaces for the KSTAR operation
Supervisory Control System OPI

The 7th International Workshop on tokamak Operation, April 12-16 2010, Daejeon, KOREA

7KSTAR Widget Toolkit (KWT)
Introduction•Misc. tools

Summary•

Principal of the Qt-CA Interface•Screenshot of the KWT(Qt) IDE

Performance
Stable EPICA CA communication
Easy & fast development
Usability
Consistency of appearance

Features of KWT library––––•

Data access tools

Requirements of KSTAR OPI
–––––

•

Operator interface

Intuitive C++ class library
Portability across desktop and embedded operating systems
Integrated development tools with cross-platform IDE
High runtime performance and small footprint on

Inheritance Hierarchy of Library Properties–––

Qt -4.3.2
QWT-5.0.0rc1
EPICS base-3.14.8.2

The 7th International Workshop on tokamak Operation, April 12-16 2010, Daejeon, KOREA

8Live data tools
Introduction•–

Plot 10 ch at a time
Application and Plug-in widget

Poped up at the mouse right-click

Debugging utilities––Singleplot

camonitor
Probe (Motif Channel Monitoring program)

Operator interface utilities–––

MEDM (Motif Editor and Display Manager)
EDM (Extensible Display Manager)
DM2K

Gateway–•

SummarySingleplot••

Misc. tools

StripTool, StripToolLegend (customized StripTool)
Multiplot (Multiwaveplot)•••

Data access tools

Run-time chart––•

Operator interface

Gateway

CA Interfaces to other tools and languages–JCA (Java Channel Access)Multiplot

StripTool

The 7th International Workshop on tokamak Operation, April 12-16 2010, Daejeon, KOREA

9

Archived operation data tools
Introduction

Operator interface

Data client
program

1. Data request(XML-RPC)

Data access tools

Misc. tools

Summary

Archiveviewer, Archivesheet

4. Data transfer(HTTP)

Control network

Http
Web server
3. Data extraction
GPFS

2. Data request

Data
extraction
programConfig.File(XML)ArchiveExport

Storage area network

ChannelArchiverServerArchivesheet

Machine network

Archived
data1

Archived
data2

Archived
data3•Continuous operation data
•Plant monitoring dataSoftware

Remark•Core module for Channel Archiver server•Acquire data via CA and store it
ArchiveDataServer •Retrieve the operational data based on
information extracted from index file andrequests from OPI
ArchiveExport•Command-line archive data retrieval toolArchiveviewer•Plot data in 2-D chart
Archivesheet•Display data in a spread sheet
ArchiveEngine

Library
Xml-rpc, Xerces,
Channelarchiver
Xml-rpc, Xerces,
Channelarchiver

Language
C/C++
c/cgi

Channelarchiver C/C++
Archiveviewer.jar Java
Developed using C++/Qt
xml-rpc, QtSoftware for Operational Data Management System

Archiveviewer

The 7th International Workshop on tokamak Operation, April 12-16 2010, Daejeon, KOREA

10Experimental data tools
Introduction

Data clientprogram
1. Data request(MDSplus API)

Operator interface

Data access tools

Misc. tools

Summary

jScope, jTraverser

Control network

2. Data transfer(MDSplus API)

Data analysis
serverGPFS

Storage area network

MDSPlusServerExperimental data network

Diagnostics

PCS

Heatings

MPS...

•Pulse-related data
jScopejTraverser

Softwaremdsip

RemarkCore module for the Mdsplus server togenerate the experimental data files
Displaying tool for 2-D plot

Librarymdsip

Language
C/C++

jScopejScope.jar
JavajTraverser Tool to configure MDSplus DB structure jTraverser.jar Java
Software for KSTAR Experimental Data Management System

The 7th International Workshop on tokamak Operation, April 12-16 2010, Daejeon, KOREA

11Common interface
Introduction•

Operator interface

Data access tools

Misc. tools

SummaryInterface library for the commercial S/W
SoftwareRemark

Data to access

IDL

Commercial program for scientificcalculation

Operation data
Experimental data

MATLAB

Commercial program for scientificcalculation

Operation dataExperimental data

Library

Language

Ezca
Mdsconnect,Mdsopen…
Mca

IDL script
IDL script

Mdsconnect,
Mdsopen….

MATLAB script

MATLAB script

Common interface for KSTAR Data Management System

An image generated using MATLAB chart function and MDSplus API

EFIT viewer (one of the IDL applications) using MDSplus API [DIII-D data]

The 7th International Workshop on tokamak Operation, April 12-16 2010, Daejeon, KOREA

12Web-based logbook
Introduction•Data access tools

Misc. tools

SummaryE-logbook––Introduction of the GA DIII-D E-logbook
Functions•••••

Operator interface

Making logbook entry
Search by selection option or SQL
Customized query
Total number of the logbook entries was 7323.

Shot-summary––

Shot-summary generated automatically by theKSTAR shot sequence
Functions••Search by shot number, date, and values
Display searched result as Web page or PDF
KSTAR E-logbook

Shot-summary generation procedure

The 7th International Workshop on tokamak Operation, April 12-16 2010, Daejeon, KOREA

13

Remote participation service
Introduction

Operator interface

Data access tools

Misc. tools

Summary

KSTAR operation•Experimental proposal–•

Domestic•POSTECH•KAIST•KAERI•HANYANG UNIV.
•SNU•

External
•GA
•PPPL
•ORNL
•FAR-TECH•

Device access control to the machine in the
KSTAR network

Video conferencing service–announce
calendarRemote access control service to theexperimental data

Machine access–•Introduced GA DIII-D web-portal package
including various web applications needed forthe nuclear fusion experiment.

Experimental data access–••Program
Advisory
Committee

Web-portal–•

45 experimental proposals were submitted bycollaborators.

•KSTARoperationcommitteeInstitute(H.323)
Externalusers
shotlogbook
runbookmark

kstar2009

clockefitmovie

operation

KSTAR Web-portalGA
PPPL
FAR-TECH
MIT
ORNL
NIFS
JAEA
Domestic POSTECHusers
KAERI
SNU
KAISTetc.
Sum

NFRI•KSTAR Research Center
KSTAR collaboration groups

Webportal Exp. data MachineVideousers
accessaccess conference
5353126192111141
11
2
13
13
5
5
4
3
35164
254
162
3

Summation of the 2009 KSTAR remote participation services

The 7th International Workshop on tokamak Operation, April 12-16 2010, Daejeon, KOREA

14Control system monitoringIntroduction•

Operator interface

Data access tools

Misc. tools

SummarysysMon–Integration of Linux, VxWorks, CA Gateway systemmonitoring packages
sysMonitor OPI

KSTAR IRMIS application

Monitoring panels of the IOC servers•

Monitoring panelof Gateway

Investigation of the control system monitoring tools–IRMIS••–It describes relationships between the elements using
relational database (RDB) implementation instead of thedrawing-based method.
PV crawlers for 15 IOCs were automated to crawl
process variable information from the IOC and for 4IOCs were installed to be operated manually.

SNMP•

Monitoring resources––

CPU load, Free memory, service programs (httpd, sshd, …)User defined programs, disk information
SNMP Monitoring resources

The 7th International Workshop on tokamak Operation, April 12-16 2010, Daejeon, KOREA

15

Configuration management
Introduction•Summary

VDCT (Visual Database Configuration Tool)

CVS Tools: ViewVC (web interface), CVSmonitor (statistics tool)

Remote S/W management–

How it works?
•––•

Misc. tools

Version Control of source code and configuration files: CVS–

•Data access tools

EPICS database configuration–•

Operator interface

remoteopicontrol on the engineering workstation executes a command for remotesvr runningon a opi server, and remotesvr does actions allowed in the opi server.

Communication protocol: XML-RPC
Commands: opiupdate, opipluginupdate, opiinstall, shutdown

Remote service monitoring–servicechecker: A tool to check registeredprocesses on IOCs and OPI servers

Engineerng workstation

remoteopicontrolbin.
code

OPI server

XML-RPC

Remote S/W management tools

KSTAR CVS (ViewVC web interface)remotesvr

The 7th International Workshop on tokamak Operation, April 12-16 2010, Daejeon, KOREA

16Improvement plans
Introduction•

Operator interface

Data access tools

Misc. tools

Summary

KWT– Supporing diverse EPICS DB request type•

KWT widgets request channel response as DBR_DOUBLE type. Changing of DBR_TYPE from
DBR_DOUBLE to DBR_STRING is not difficult but we have to modify all OPIs in that case.

– Adding general scalability features•Qt has various layout widgets but we need new layout widget and policy to makeCAwidgets be scalable with the consistent ratio.

– Enhancing usability for the development of popup panel••To make popup panel as template, all pvnames for the panel is come from the CAGraphicwidget (symbol). So developer has to match the order of widgets. We need better usabilityfor that.

Live data tools– Elaboration of Multiplot (Multiwaveplot) and Singleplot•

Archived operation data tools– Investigation of alternative retrieval tools for Channel Archiver•

Control system monitoring tools– Application of IRMIS and SNMP for control system description and monitoring– MDSPlus crawler development

The 7th International Workshop on tokamak Operation, April 12-16 2010, Daejeon, KOREA17SummaryIntroduction

Operator interface

Data access tools

Misc. tools

Summary•

About 150 OPI panels were developed using KWT and EPICS OPI
tools, and there were no critical problems during a two year operation.

•Some live data tools were developed and used for KSTAR operation.

•We need to find out alternatives of the archiveviewer. Because theoriginal author of the archiveviewer is no longer willing to maintain it.

 The KWT V1.0 was released. (http://kwt.sourceforge.net)

The 7th International Workshop on tokamak Operation, April 12-16 2010, Daejeon, KOREA18KSTAR Operation tools
Introduction

Category

Operator interface

NamePackage ordeveloper

Qt-based OPI development tool-kit with 16 plug-in widgets

NFRI

Description
KWT

Operator
interface

TMS, VMS, SCS, DDS, TSS, Fuel, QDS, MPS, ...

NFRI

KSTAR OPIs

Multiplot (Multiwaveplot)
Singleplot

NFRI

Multi-channel live data plot libraryLive data tools StripToopLegend

Customized StripTool to display seperated
legend window

NFRI(customization)

StripTool, camonitor, probe, MEDM, ...

EPICS extensions

ArchiveEngine, ArchiveDataServer, ArchiveExport

Channel Archiver tools
Archiveviewer

Archived operation data retrieval toolArchivesheet

Archived operation data retrieval and conversion
toolMDSip

Core module for the MDSplus server to generat
e the experimental data files
jScopeExperimental 2-D plotting tool of experimental data (MDSplus)
data tools jTraverse

EPICS
extensions
EPICS
extensions
EPICS
extensions
NFRI

SummaryName

Description
E-logbook

Web-based
applications

Web-based electrical logbook
Web-portal

Web-based portal application
Shot summary

Summarized shot information

Systemmonitoringtools

sysMonControl system monitoring package
IRMIS

Control system describing toolMDSplus

Package ordeveloper
GA
GA, NFRI(customization)
NFRI
NFRI(customization)
EPICS
extensions

SNMP

Distributed server resource monitoring tool
VDCTEPICS database configuration tool

EPICS
extensions

CVS, ViewVC, CVSmonitor

Configuration Version control tool of source code andmanagement configuration files
remoteopicontrol, remotesvr, opiupdate,toolsetc.

Remote S/W management tools
Servicechecker

Remote service monitoring tool

NFRI
NFRI

MDSplus

Model-tree browsing tool of experimental data(MDSplus)

MDSplusGeneral purpose interface to experimental data(MDSplus)MDSplus

MDSplus API

Misc. tools

Category

NFRI

Multi-channel live data plot application

Archivedoperation
data tools

Data access tools

 KWT, Multiplot (Multiwaveplot), Singleplot,
StripToolLegend and Archivesheet can be applied to
the EPICS-based control system.

The 7th International Workshop on tokamak Operation, April 12-16 2010, Daejeon, KOREA

1Thank you.

19