Main Content

hasdata

Determine whether data is available to read

Since R2025a

Description

tf = hasdata(mds) returns logical 1 if the datastore object mds has data available to read. When mds does not have data available to read, hasdata returns 0.

Input Arguments

collapse all

Datastore to read, specified as a simulink.multisim.MultisimDatastore object.

Output Arguments

collapse all

Data availability indication, returned as a 1 or 0 of data type logical. When the sdidatastore object has data available to read, tf is 1. When data is not available, tf is 0.

Version History

Introduced in R2025a