Main Content

Logging

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

Functions

enableStart file logging of signal data
disableStop file logging of signal data
listGet information about available file logs of signal data
importImport file log data from target computer
abortAbort file log data import from target computer
discardDelete file log data from target computer
startProfilerStart profiling service on target computer
stopProfilerStop profiling service on target computer
getProfilerDataRetrieve profile data object
resetProfilerReset profiling service state to Ready
slrealtime.fileLogImportImport file logs copied from target computer into Simulation Data Inspector
slrealtime.fileLogListList available file logs copied from target computer

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 Send and Receive Blocks

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

Featured Examples