Main Content

stopRecording

Stops signal data live streaming and File Log logging

Description

example

stopRecording(target_object) disables logging in the application and closes the run in the Simulation Data Inspector. The function disables the File Log logging, imports 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.

The stopRecording function operation responds to the setting of the AutoImportFileLog option. The File Log data from the target is imported if the AutoImportFileLog flag option is true when you use the stopRecording function.

For more information about the file logging workflow, see Signal Logging Basics.

Examples

collapse all

Use the stopRecording function to stop recording on the target computer.

tg = slrealtime;
load(tg,'slrt_ex_osc')
start(tg);
stopRecording(tg);

Input Arguments

collapse all

Provides access to methods that manipulate the target computer properties.

Example: tg

Version History

Introduced in R2022a