Main Content

getCurrentChecksum

Class: Simulink.data.adapters.BaseMatlabFileAdapter
Namespace: Simulink.data.adapters

Return marker for identifying last change to external file

Since R2022b

Syntax

currentChecksum = getCurrentChecksum(adapterObj)

Description

currentChecksum = getCurrentChecksum(adapterObj) returns a marker for identifying the last change to the external source file. The default implementation returns the timestamp for the last modified date of the file. The cache uses this method to determine if the adapter needs to get updates from the external file.

Custom file adapters must define behavior for the getAdapterName, getSupportedExtensions, and getData methods. In addition, you can choose to override the isSourceValid, supportsReading, getSectionNames, getCurrentChecksum, open, and close methods.

Input Arguments

expand all

Custom file adapter, specified as an object of a class that derives from the Simulink.data.adapters.BaseMatlabFileAdapter base class.

Example: myCustomFileAdapter

Output Arguments

expand all

Current checksum for the external file, returned as a string or character array.

Version History

Introduced in R2022b