PutWorkspaceData
Data in Automation server workspace
Synopsis
IDL Method Signature
PutWorkspaceData([in] BSTR varname, [in] BSTR workspace, [in] VARIANT data)
MicrosoftVisual BasicClient
PutWorkspaceData(varname As String, workspace As String, data As Object)
MATLABClient
PutWorkspaceData(h,'varname','
workspace
',data)
Description
PutWorkspaceData(h,'varname','
storesworkspace
',data)data
in theworkspace
of the server attached to handleh
and assigns it tovarname
.The values forworkspace
arebase
orglobal
.
UsePutWorkspaceData
to pass numeric and character array data respectively to the server. DonotusePutWorkspaceData
on sparse arrays, structures, or function handles. Use theExecute
method for these data types.
TheGetWorkspaceData
andPutWorkspaceData
functions pass numeric data as avariant
data type. These functions are especially useful for VBScript clients as VBScript does not support thesafearray
data type used byGetFullMatrix
andPutFullMatrix
.