Data Acquisition Toolbox | ![]() ![]() |
Save device objects to a MAT-file
Syntax
Arguments
file |
The MAT-file name. |
obj1 obj2 ... |
One or more device objects or an array of device objects. |
Description
saves all MATLAB variables to the MAT-file save file
file
. If an extension is not specified for file
, then a .MAT
extension is used.
saves the specified device objects to save file obj1 obj2
...
file
.
Remarks
Saving device objects follows these rules:
save
in the functional form as well as the command form shown above. When using the functional form, you must specify the filename and device objects as strings.
getdata
function, and then save them to the MAT-file using a separate variable name. You can also log samples to disk by configuring the LoggingMode
property to Disk
or Disk&Memory
.
EventLog
property is restored to an empty vector. Use the propinfo
function to determine if a property is read only.
BufferingConfig
property (if the BufferingMode
property is set to Auto
) and the MaxSamplesQueued
property might not be restored because both these property values are based on available memory.
If you use the help
command to display the M-file help for save
, then you must supply the pathname shown below.
Functions
![]() | putvalue | set | ![]() |