import
Syntax
Description
import(
imports file log signal data from available simulation runs for the selected real-time
application. You can import file log data from the Speedgoat® target computer when the real-time application is stopped or recording is
stopped.target_object
.FileLog,'app_name
')
For information about the availability of file logging data, see list
.
import(
imports file log signal data for the selected table of available simulation runs. To create
the table, use the target_object
.FileLog,run_info
)list
function.
import(
imports file log signal data for the selected simulation runs.target_object
.FileLog,run_ids
)
If a Simulink Real-Time model has File Log
blocks, when you load the real-time application on the target computer, file logging is
enabled. This default operation is the same as enabling file logging by using the command
startRecording
.
To control file logging with the Enable File Log block, when you load the real-time application on the target computer, disable or enable file logging by using the E (enable/disable) input signal to the block.
If you started the real-time application with the AutoImportFileLog
option enabled, when the MATLAB® development computer is connected to the target computer and the real-time
application stops, the file log data is uploaded to the Simulation Data Inspector. For a
standalone target computer that does file logging when not connected, after connecting the
development and target computers, upload the file logging data for the application by using
the import
function.
The AutoImportFileLog
option has no effect when using the startRecording
function or stopRecording
function.
If a model includes an Enable File
Log block, the AutoImportFileLog
option has no effect. Use the import
function to upload logging data for real-time applications that you build from these models.
For more information about the file logging workflow, see Real-Time Signal Logging and Streaming Basics.
Note: The start
function FileLogMaxRuns
option determines how many runs of file log data are retained
on the target computer. As you add a new log for a simulation run, the oldest log exceeding
the maximum number of runs is removed. To avoid losing file log data, use the
import
function or AutoImportFileLog
option to upload logging data. For more information, see
FileLogMaxRuns
.
Examples
Input Arguments
Version History
Introduced in R2020bSee Also
File Log | Enable File
Log | Target
| list
| discard
| startRecording
| stopRecording