From MdsWiki
(Difference between revisions)
Revision as of 19:57, 28 July 2008 (edit) Jacob.chancery (Talk | contribs) (→Example Usage) ← Previous diff |
Revision as of 20:00, 28 July 2008 (edit) Jacob.chancery (Talk | contribs) (→Example Usage) Next diff → |
||
Line 19: | Line 19: | ||
mdsdisconnect | mdsdisconnect | ||
- | In the above example we opened shot 42 of mytree and read data from the node with tag name data_node into a matlab variable named somenumbers. To write data simply use the mdsput command: | + | In the above example we opened shot 42 of mytree and read data from the node with tag name data_node into a Matlab workspace variable named somenumbers. Most of the commands above will return some kind of answer when executed. Of importance is the fact that the mdsopen command will return the pulse number if successful and nothing if unsuccessful. |
+ | |||
+ | To write data simply use the mdsput command: | ||
mdsput('\data_node',somenumbers) | mdsput('\data_node',somenumbers) | ||
In the above example somenumbers can be any Matlab variable, including multi-dimensional arrays. | In the above example somenumbers can be any Matlab variable, including multi-dimensional arrays. |