Documentation:Tutorial:APIs - MdsWiki
Navigation
Personal tools

From MdsWiki

(Difference between revisions)
Jump to: navigation, search
Revision as of 07:40, 24 October 2022 (edit)
Manduchi (Talk | contribs)

← Previous diff
Revision as of 07:55, 24 October 2022 (edit)
Manduchi (Talk | contribs)

Next diff →
Line 1: Line 1:
In the first lesson we have seen how to create and fill a MDSplus tree. It is worth noting that in the real world most data in the tree will be written by data acquisition or elaboration programs. Only configuration data and set-up parameters will be stored in the tree using TCL or jTraverser. In the first lesson we have seen how to create and fill a MDSplus tree. It is worth noting that in the real world most data in the tree will be written by data acquisition or elaboration programs. Only configuration data and set-up parameters will be stored in the tree using TCL or jTraverser.
-'''IMPORTANT''': please note the this section describes the old data access interface of MDSplus. C++, Java and Python programmers are recommended to use the Object Oriented interface of MDSplus described in the next section. MATLAB programmers may decide to use either the interface described in this chapter or to take advantage of the Java Object Oriented interface since MATLAB allows a direct interface to Java objects (more on this in the next section). There are no plans to port the IDL interface to the new one (IDL does not support a true OO interface), while volunteers are expected to start the porting of the new interface to F90.<br />+This section describes the Application Programming Interfaces of MDSplus. More recent APIs use an Object Oriented (OO) Approach and present a very similar interface, despite the different target languages.
- +* Python, C++ and Java share the same OO organization.
- +* LabVIEW reflects a similar organization in the peculiar LabVIEW context.
-For most users, accessing MDSplus data represents all the required knowledge for using MDSplus. In fact, except for people working in data acquisition, looking at acquired waveforms and developing or running analysis programs are the operations routinely executed by physicists and engineers.+* For backward compatibility, the old C interface is presented, but developers are highly discouraged using it.
 +* The FORTRAN interface is the oldest one and it offers and old style API organization.
 +* MATLAB API allows both OO programming, exporting in MATLAB the MDSplus Java classes, and the old style approach using mdsconnect() and mdsvalue() routines.
 +* An experimental interface to Julia is also presented.

Revision as of 07:55, 24 October 2022

In the first lesson we have seen how to create and fill a MDSplus tree. It is worth noting that in the real world most data in the tree will be written by data acquisition or elaboration programs. Only configuration data and set-up parameters will be stored in the tree using TCL or jTraverser.

This section describes the Application Programming Interfaces of MDSplus. More recent APIs use an Object Oriented (OO) Approach and present a very similar interface, despite the different target languages.

  • Python, C++ and Java share the same OO organization.
  • LabVIEW reflects a similar organization in the peculiar LabVIEW context.
  • For backward compatibility, the old C interface is presented, but developers are highly discouraged using it.
  • The FORTRAN interface is the oldest one and it offers and old style API organization.
  • MATLAB API allows both OO programming, exporting in MATLAB the MDSplus Java classes, and the old style approach using mdsconnect() and mdsvalue() routines.
  • An experimental interface to Julia is also presented.