reloadData
Reload data signal of root inports of model on target computer
Syntax
Description
reloadData(
reloads the data signal to the specified root inport of the model running on the Speedgoat® target computer. The data source can be a target_stimulation_object, inport, loadSource)timeseries object or a Parquet file name.
reloadData(
reloads the data signal for the specified Playback block.
The data source can be a target_stimulation_object, playback, loadSource)timeseries object, a Simulink.SimulationData.Dataset object, pairs of port numbers and timeseries objects, or pairs of port numbers and Parquet file names.
reloadData(
reloads the data to the specified tunable parameter. The data source can be a target_stimulation_object, blockPath, {parameter_name, loadSource})timeseries object or a Parquet file name.
Parquet file usage has some limitations:
Only Parquet file format is supported for file-based loading. Other formats (MAT, CSV, XLSX) are not accepted.
File-based loading is supported only through the
reloadDatafunction at runtime. Parquet files cannot be specified at build time.Each inport, Playback block port, or parameter maps to a single Parquet file.
These tips can help with Parquet file usage:
If the filename does not include a path, MATLAB® searches the current folder and the MATLAB path.
The Parquet file is transferred from the development computer to the target computer during the
reloadDatacall. Ensure the development computer has sufficient access to the file.