DMCopyData Procedure
Copies a named dataset in the current PV‑WAVE session.
Usage
DMCopyData, data_name, new_var_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 of the data you wish to copy.
new_var_name—A string containing a new variable name.
Discussion
This function cannot be used to copy data to another domain. Both datasets (the original and new ones) will exist after this function is called.
Storage for the domain and data are automatically created if they do not already exist. If data with the new_var_name already exists, it is overwritten. The data name and domain name are used to uniquely identify a dataset stored on the JWAVE server. Normally, these names are set in the JWAVE client application.
To be valid, the domain name and data name must begin with a letter. The name is not case-sensitive, and may contain letters, underscores, and numbers.
Examples
This command makes a copy of data named STUFF from the default domain ($GLOBAL) and stores it in data named STUFF_COPY (in the same domain).
DMCopyData, ['$GLOBAL', 'STUFF' ], 'STUFF_COPY'
See Also