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
Target.FileLogTarget Computer file logger
InstrumentCreate real-time instrument object

Functions

discardDelete file log data from target computer
listGet information about available file logs of signal data
importImport file log data from target computer
enableStart file logging of signal data
disableStop file logging of signal data
slrealtime.fileLogImportImport file logs copied from target computer into Simulation Data Inspector
slrealtime.fileLogListList available file logs copied from target computer

Topics

Background

  • Signal Logging Basics
    Acquire signal data while running a real-time application and transfer the data to the development computer for analysis.
  • Parameter Tuning and Data Logging
    This example shows how to use real-time parameter tuning and data logging with Simulink® Real-Time™.

MATLAB Interface

Limitations

Troubleshooting

Troubleshooting in Simulink Real-Time

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