From MdsWiki
(Difference between revisions)
Revision as of 19:56, 28 July 2008 (edit) Jacob.chancery (Talk | contribs) (→Example Usage) ← Previous diff |
Revision as of 19:57, 28 July 2008 (edit) Jacob.chancery (Talk | contribs) (→Example Usage) Next diff → |
||
Line 15: | Line 15: | ||
mdsconnect('123.456.7.89') | mdsconnect('123.456.7.89') | ||
mdsopen('mytree',42) | mdsopen('mytree',42) | ||
- | data=mdsvalue('\data_node') | + | somenumbers=mdsvalue('\data_node') |
mdsclose | mdsclose | ||
mdsdisconnect | mdsdisconnect | ||
- | In the above example we opened shot 42 of mytree and read data from the node with tag name data_node. 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 variable named somenumbers. To write data simply use the mdsput command: |
- | mdsput('\data_node',data) | + | mdsput('\data_node',somenumbers) |
- | In the above example data can be any Matlab variable, including multi-dimensional arrays. | + | In the above example somenumbers can be any Matlab variable, including multi-dimensional arrays. |