Main Content

Logging and Profiling

Simulation Data Inspector, Simulink Scope blocks, File Log blocks, target computer access, profiling

To observe the behavior of your real-time application and the target computer on which it is running, use logging and profiling blocks.

Blocks

File LogWrite signal data file log on target computer
Enable File LogEnable or disable file logging of signals on target computer
Enable ProfilerStart and stop execution profiler on target computer
Log EventLog an execution profiling event

Objects

TargetRepresent real-time application and target computer status
Target.FileLogTarget Computer file logger
TargetsConfigure and manage target objects
ProfilerDataData returned from profiler
InstrumentCreate real-time instrument object
slrealtime.instrument.LineStyleCreate real-time instrument LineStyle object

Functions

discardDelete file log data from target computer
getAllFileLogBlocksReturns block paths corresponding to File Log blocks in application
getFileLogDecimationReturns decimation value of File Log block based on block path
getProfilerDataRetrieve profile data object
listGet information about available file logs of signal data
importImport file log data from target computer
resetProfilerReset profiling service state to Ready
setFileLogDecimationSets decimation value on File Log blocks based on block path and input decimation value
slrealtime.fileLogImportAfter copying file logs from target to development computer, import file logs into Simulation Data Inspector
slrealtime.fileLogListAfter copying file logs from target to development computer, list available file logs for import into Simulation Data Inspector
startProfilerStart profiling service on target computer
startRecordingStarts signal data live streaming and File Log logging
stopProfilerStop profiling service on target computer
stopRecordingStops signal data live streaming and File Log logging

Troubleshooting

Troubleshoot Signal Data Logging from Nonvirtual Bus, Fixed-Point, and Multidimensional Signals

Investigate issues that can occur when signal data logging from signals in nonvirtual buses, signals with fixed-point data type, and multidimensional signals.

Troubleshoot Signal Data Logging from Inport in Referenced Model

Investigate issues that prevent some signals from streaming to the Simulation Data Inspector.

Troubleshoot Signal Data Logging from Inport in Referenced Model in Test Harness

Investigate issues that can occur when signal data logging from signals in referenced models in test harnesses.

Troubleshoot Signal Data Logging from Send and Receive Blocks

Investigate issues that can occur when signal data logging from Send and Receive blocks.

Troubleshoot Signals for Streaming or File Logging

Investigate issues related to an error that a signal cannot be streamed or logged.