This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

Import buffered logging data to the active session of the Simulation Data Inspector





importLogData(target_object) imports buffered logging data to the active session of the Simulation Data Inspector immediately. Without using this function, the Simulation Data Inspector imports the data when the stop time is reached for the run of the real-time application. A limitation is that a small gap in the logged data appears in the Simulation Data Inspector at the time that you use the importLogData function.


Import Buffered Log Data to the Simulation Data Inspector

To import buffered logging data into the active session of the Simulation Data Inspector immediately, use these steps.

  1. Open the xpcFileLogging model.

  2. Mark a signal for logging.

  3. Set the logging properties to buffered

  4. Build and download the real-time application

  5. Create a target object with the command:

  6. Run the real-time application.

  7. Open the Simulation Data Inspector and start a new session (Ctrl+n)

  8. Import the buffered logged data into the Simulation Data Inspector


The status message indicates that the log data is being transferred.

Transferring logging data for model xpcFileLogging, please wait ...

Input Arguments

collapse all

Object that represents the target computer. Before calling this function, make sure that you start the target computer with the Simulink® Real-Time™ kernel and apply the required Ethernet link settings.

Example: tg

Introduced in R2018a