stopRecording
Description
stopRecording( disables logging
in the application and closes the run in the Simulation Data Inspector. The function
disables the File Log logging, imports (based on the
target_object)AutoImportFileLog flag) the File Log data into the Simulation Data
Inspector in the current run, exports the data to base workspace based on the flag
'ExportToBaseWorkspace', and stops live streaming. Every time that
signal logging and streaming is disabled by using the stopRecording
function, Stop Recording button, or disabling the Enable File
Log block closes a log run on the Speedgoat® target computer.
The stopRecording function operation responds to the setting of the
AutoImportFileLog option. The File Log data from the target is
imported if the AutoImportFileLog option is true when you use the
stopRecording function.
If the model includes an Enable File
Log block, the stopRecording function only stops signal
streaming. The block controls signal logging. Also, if the model includes an Enable File
Log block, the AutoImportFileLog option has no effect.
For more information about the file logging workflow, see Real-Time Signal Logging and Streaming Basics.
Tip
The startRecording function, stopRecording
function, and related buttons are recording controls for streaming to the Simulation
Data Inspector and file log. Other types of streaming (such as streaming to apps or to
Simulink Real-Time explorer) are not affected by these functions and buttons.
Tip
Because logging and streaming operations are time-intensive and are executed as background tasks on the target computer, start and stop actions do not occur instantly. For example, there is a delay between enabling the log operation and recording the first samples. To avoid missing samples related to an event, start logging data before a trigger event that you are observing.
Examples
Input Arguments
Version History
Introduced in R2022aSee Also
Target | File Log | Enable File
Log | import | startRecording