Main Content

Signal Logging with MATLAB

Signal value logging

To log signal values and times, mark signals for logging with the Simulation Data Inspector or add a File Log to your model.

A File Log block collects signal data on the target computer that is sent to the development computer after each simulation run. Or, if the target computer is not connected to the development computer, you can upload the data to the development computer when you connect to the target computer.

Objects

TargetRepresent real-time application and target computer status (Since R2020b)
Target.FileLogTarget Computer file logger (Since R2020b)
InstrumentCreate real-time instrument object (Since R2020b)
slrealtime.instrument.LineStyleCreate real-time instrument LineStyle object (Since R2022b)

Functions

discardDelete file log data from target computer (Since R2020b)
listGet information about available file logs of signal data (Since R2020b)
importImport file log data from target computer (Since R2020b)
openImportDialogGet information about available file logs of signal data (Since R2023b)
slrealtime.fileLogImportAfter copying file logs from target to development computer, import file logs into Simulation Data Inspector (Since R2021a)
slrealtime.fileLogListAfter copying file logs from target to development computer, list available file logs for import into Simulation Data Inspector (Since R2021a)
startRecordingStarts signal data live streaming and File Log logging (Since R2022a)
stopRecordingStops signal data live streaming and File Log logging (Since R2022a)

Topics

Background

MATLAB Interface

Limitations

Troubleshooting

Troubleshooting in Simulink Real-Time

Troubleshoot problems that you encounter while using the Simulink Real-Time product