Signal Logging Basics
Signal logging acquires signal data during a real-time run and stores it on the target computer. After you stop the real-time application, you transfer the data from the target computer to the development computer for analysis. You can plot and analyze the data, and later save it to a disk on the development computer.
Simulink® Real-Time™ signal logging samples at the base sample time. You can log signals to the Simulation Data Inspector by:
Mark signals for immediate logging to the Simulation Data Inspector.
Connect signals to File Log blocks for buffered logging to the Simulation Data Inspector.
With regards to logging:
Simulink Real-Time Explorer works with multidimensional signals in column-major format.
Some signals are not observable.
How Application is Run Affects Signals Logged
The Run on Target button provides slightly different data
logging support than running the real-time application by using the
When you run the real-time application by using the
start(tg)command, only signals marked for data logging or connected to a File Log block are logged to the Simulation Data Inspector.
When you run the real-time application by using the Run on Target button on the real-time tab in the Simulink Editor or the Start button in the Simulink Real-Time Explorer, signals marked for logging, signals connected to File Log blocks, and signals connected to Scope blocks are logged to the Simulation Data Inspector.