DMGetData Function
Returns a stored dataset in the current PV‑WAVE session.
Usage
values = DMGetData(data_name)
Input Parameters
data_name—A scalar string containing a data name (in the default domain, $GLOBAL) or a 2-element string array containing a domain name and data name.
Returned Value
values—The data values stored under the specified data_name.
Discussion
This function produces an error if there is no data stored in the specified location. Use DMDataExists to test for this condition.
To be valid, the data_name input parameter name must begin with a letter. The name is not case-sensitive, and may contain letters, underscores, and numbers.
Examples
The following command gets data named STUFF from the default domain
($GLOBAL) and stores it in a variable named my_data.
my_data = DMGetData( ['$GLOBAL', 'STUFF' ] )
See Also