From MdsWiki
(Difference between revisions)
Revision as of 21:06, 12 March 2020 (edit) Zack-vii (Talk | contribs) (→Setting up access via java mdsobjects.jar) ← Previous diff |
Revision as of 21:11, 12 March 2020 (edit) Zack-vii (Talk | contribs) (→Setup) Next diff → |
||
Line 37: | Line 37: | ||
=Setup= | =Setup= | ||
+ | You can access MDSplus from Matlab via java or python. Once MAtlab can find the .m files in $MDSPLUS_DIR/matlab you can run | ||
+ | mdstest(0) % to test the java bridge | ||
+ | mdstest(1) % to test the python bridge | ||
+ | |||
+ | |||
== Setting the Matlab Search Path == | == Setting the Matlab Search Path == | ||
Once you have installed the MDSplus software on your desktop computer you can read and write data to and from MDSplus trees using Matlab. The m-file functions for MDSplus operations will be in your MDSplus directory. You should add this folder to your Matlab search path using the Set Path... option from the File menu or via: | Once you have installed the MDSplus software on your desktop computer you can read and write data to and from MDSplus trees using Matlab. The m-file functions for MDSplus operations will be in your MDSplus directory. You should add this folder to your Matlab search path using the Set Path... option from the File menu or via: | ||
Line 49: | Line 54: | ||
By default the Matlab API is bridging thru mdsobjects.jar. | By default the Matlab API is bridging thru mdsobjects.jar. | ||
- | Modern versions of Matlab support java libraries to be imported on-the-fly and you only need to set up the Matlab search path. | + | Modern versions of Matlab support java libraries to be imported on-the-fly and you only need to set the Matlab search path. |
If Matlab complains about unsatisfied links you may need to execute the following lines and restart MATLAB: | If Matlab complains about unsatisfied links you may need to execute the following lines and restart MATLAB: |