| Data Acquisition Toolbox™ | ![]() |
save file save file obj1 obj2...
file | The MAT-file name. |
obj1 obj2... | One or more device objects or an array of device objects. |
save file saves all the MATLAB® variables to the MAT-file file. If an extension is not specified for file, then a .MAT extension is used.
save file obj1 obj2... saves the specified device objects to file.
Saving device objects follows these rules:
You can use 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.
Samples associated with a device object are not stored in the MAT-file. You can bring these samples into the MATLAB workspace with the 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.
Values for read-only properties are restored to their default values upon loading. For example, the EventLog property is restored to an empty vector. Use the propinfo function to determine if a property is read only.
Values for the 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 this pathname:
help daq/private/save
![]() | putvalue | set | ![]() |
| © 1984-2008- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |