A Full Stack Data Acquisition, Archive And Access Solution For J-TEXT .

Transcription

�验室International Joint Research Laboratory of Magnetic Confinement Fusion and Plasma PhysicsA full stack data acquisition, archive and accesssolution for J-TEXT based on Web technologiesYuxing Wang and J-TEXT TeamIAEA TM 2019 Daejeon, Korean

Outline Current solution for J-TEXT data acquisition, archive and accesssystem The CFET software system framework based on .NET and Web Data acquisition system Data archive and access system User interface and Data Visualization Future work1/18IFPP CEEE HUST Yuxing Wang

Current solution for J-TEXT Various DAQ programsMDSplusAPIs provided by MDSplusJscope/dwscopeData acquisitionData archiveData accessData visualizationDAQ deviceDAQ deviceProgram1Program2python APIDAQ device2/18matlab APIProgram3IFPP CEEE HUST Yuxing Wang

Main issue of current solution So many DAQ programs, similar but incompatible, almost nosoftware architecture Need installing MDSplus or other software to see the experimentdata New demands are increasing, and unhappy to modify theexisting system3/18IFPP CEEE HUST Yuxing Wang

CFET Software system framework Control system Framework for Experimental Devices Toolkit Thing is something with its owncontrol logic and Resources A CFET Host is a program which containssome CFET Things. A Thing’s Resources can be accessedthrough the Web by URls, and Thingscontact each others by their Resources.4/18IFPP CEEE HUST Yuxing Wang

Unified Data Access (UDA)All resources in CFET system can be accessed by an URL through theWeb like ecei group1 ch1?start 0&stride 100&count 1000&block 1ConfigDAQ Thing 15/18MethodEventCFETHostCFETHostData ManageThingIFPP CEEE HUST Yuxing WangStatusData Server Thing

A simplest DAQ system use CFET6/18IFPP CEEE HUST Yuxing Wang

New DAQ and Data Access system A flexible architecture to facilitate the addition of new featuresand later modifications Acquisition systems should not rely on specific hardware Data storage and archive systems should not depend on aparticular database or file format but have supports for them likeHDF5 Data access should meet all existing needs7/18IFPP CEEE HUST Yuxing Wang

Data acquisition systemDAQ deviceProgram1DAQ deviceDAQ deviceProgram2DAQ deviceDAQ deviceProgram3Program1Program2DAQ deviceProgram3Base ClassUploaderShot 1uploadlocal datadatacollectioncollectionfinish8/18IFPP CEEE HUST Yuxing WangFilesystemsomethingelse?

Architecture of DAQ systemData ServerMDSplusCFET HOST in DAQ IPCHDF5DataCentralCODACEPCIS ThingDAQDevicesimplementLANMDS UploadThingConfigFilesUpload local files to serverFormat fileUpload ThingimplementNI 6 SeriesJY 62022NI ScopeBasic AI ModulerelyAI ThingsrelyData OperatorInterface Binary 9/18HDF5IFPP CEEE HUST Yuxing WangLocalData Files

Build supports for HDF5 format fileCFET Things or derOriginal supports of C#Get raw data and time axiswith different params10/18MetadataIFPP CEEE HUST Yuxing Wang

Data archive and access 0/ecei group1 busolutePath/0/1000StatusStatusTag Manage ThingData Server DB databaseVersion Manageshot- Version No.Tag- PathMappingDataReader11/18IFPP CEEE HUST Yuxing Wang

Some Status of Tag Manage ThingGet Create Time of the file: CreateTime(string tag, int shotNo)MetadataGet continuous data: Data(string tag, int shotNo, ulong start 0, ulong length 0)Get above’s time axis: DataTimeAxis(string tag, int shotNo, ulong start 0, ulong length 0)Get most accurate slice data: DataComplex(string tag, int shotNo, ulong start, ulong stride, ulong count, ulong block 1)data by sampleGet data by time: DataByTimeFuzzy(string tag, int shotNo, double startTime, double endTime, ulong count)data by time12/18IFPP CEEE HUST Yuxing Wang

UI of DAQ system in Web13/18IFPP CEEE HUST Yuxing Wang

Web Scope for data visualization14/18IFPP CEEE HUST Yuxing Wang

Architecture of Web UIFront-endUserInterface Show information of the CODAC system Provide user interface to change state ofCODAC systemDataVisualizationRestful HTTP requestGetPostSetWebsocketAll HTTP requests are UDAWeb APIBack-end Provide CODAC system interfaces Implement internal logicstatusconfigmethodeventAll Things in CFET CODAC system15/18IFPP CEEE HUST Yuxing Wang

Review UI of DAQ system16/18IFPP CEEE HUST Yuxing Wang

How the Web page is built HTML CSS JavaScriptCustom design17/18IFPP CEEE HUST Yuxing Wang

Future work Build support for continuous acquisition Further testing and application are needed to verifyreliability and performance Web Scope need more further development Data and metadata in Restful HTTP protocol need to beimproved18/18IFPP CEEE HUST Yuxing Wang

Thank you for your attentionsIFPP CEEE HUST Yuxing Wang

IFPP CEEE HUST Yuxing Wang Current solution for J-TEXT 2/18 DAQ device DAQ device DAQ device Program1 Program2 Program3 python API matlab API Data acquisition Various DAQ programs Data archive MDSplus Data access APIs provided by MDSplus Data visualization Jscope/dwscope