Documentation:Tutorial - MdsWiki
Navigation
Personal tools

From MdsWiki

Revision as of 08:36, 22 October 2010; Manduchi (Talk | contribs)
(diff) ←Older revision | Current revision | Newer revision→ (diff)
Jump to: navigation, search

The MDSplus tutorial Preface

So, you have heard about MDSplus, and you are maybe curious to discover more about this system. You connect to the www.mdsplus.org site, download the system, install it and then.... you get lost in the large cornucopia of tools and libraries. Now, you will surely try to surf the MDSplus documentation in order to understand which components are useful for what, and you will probably feel a bit disappointed because you can find detailed descriptions of Application Programming Interfaces and scripting languages, but no document where a beginner can start working and understanding the system from scratch.

This is exactly the purpose of this tutorial, which will describe all the steps required to set up a data acquisition system (which is, by the way, the purpose of the MDSplus tool).

We shall start from a very simple application, and then we shall progressively extend it by adding new components and by learning to use new tools, until we'll have built a fully fledged data acquisition system and, above all, we'll have learnt how to use the various tools and libraries of MDSplus. Afterwards, you will be confident enough to look into the technical documentation, use MDSplus for the rapid development of data acquisition systems and, why not, to contribute to the development of MDSplus with new ideas and developments.

This tutorial is organized in the following sections:

  1. Creating and populating MDSplus Trees This section will introduce the very basic concepts of MDSplus, and will show how to create from scratch a MDSplus database, referred to as Tree in the MDSplus jargon. To do this, two MDSplus tools will be used: TCL, which is a script language for creating and manipulating trees, and jTraverser, which is a graphical application for browsing trees.
  2. Reading MDSplus data using jScope This section introduces the concept of remote data access and will illustrate a popular tool, jScope, for the visualization of acquired waveforms, taken from local or remote trees.
  3. Accessing MDSplus data in Fortran, IDL, MATLAB and C (old style) This section illustrates how MDSplus data can be read from programs written in Fortran, IDL and MATLAB. It describes also briefly the C interface to MDSplus data, but C++ programmers are strongly recommended to use the interface described in the following section.
  4. The Object Oriented interface of MDSplus This section describes the actual interface to MDSplus, which is available for C++, Java and Python. The interface for the three languages uses the same classes, which provide a complete interface to the whole MDSplus functionality. Using the MDSplus classes it is possible to manipulate data items, to read and write trees as well as editing them.
  5. Remote data access in MDSplus This section will describe in more detail how MDSplus handle remote data access. It introduces then the classes for remote data access.
  6. Quick data plots This section describes how displaying data in jScope-like panels using the MDSplus classes. This feature is particularly useful using interactive languages like python.
  7. MDSplus events This section describes how using asynchronous events in MDSplus, and the classes for event handling.
  8. Setting up an experiment sequence This section describes how MDSplus can be used to organize a sequence of operations during experiments. It will introduce two tools: jDispatcher and jServer, which combined together allow the quick implementation of distributed data acquisition.
  9. Writing MDSplus devices This section describes how new software can be integrated in the MDSplus framework. The MDSplus distribution provides in fact the support for a variety of hardware devices, but it can be extended by adding the support for new devices. This is accomplished by developing a set of classes/routines with a defined interface. The section will illustrate this using a sample device simulating an Analog To Digital converter.
  10. MDSplus on OSX This section describes how to install MDSplus on OSX systems. There are in fact several differences between what is needed for OSX and the mostly well known recipes for LINUX.