Main Content

discard

Delete file log data from target computer

Since R2020b

Description

discard(target_object.FileLog,run_info) deletes file log data for the installed real-time applications on the Speedgoat® target computer.

For information about availability of log data, see list.

example

discard(target_object.FileLog,app_name) deletes all of the file log data for the selected real-time applications on the target computer.

example

discard(target_object.FileLog,run_ids) deletes the file log data for the simulation runs that you select from the real-time applications on the target computer.

example

Examples

collapse all

For target computer object tg with simulation run data available for real-time applications, delete file log data for applications.

  1. Get table of available simulation run information. Delete file log data from applications in the available file logs table.

    my_run_info = list(tg.FileLog);
    discard(tg.FileLog,my_run_info);
  2. Alternatively, you can get the available file log information and delete the file log data in one step.

    discard(tg.FileLog,tg.FileLog.list);

For target computer object tg with simulation run data available for real-time application my_app, delete file log data for application my_app.

discard(tg.FileLog,'my_app');

For target computer object tg with simulation run data available for real-time applications slrt_ex_osc_rt_t and slrt_ex_osc, delete file log data for runs 1 and 2.

  1. Get table of available simulation run information.

    my_run_info = list(tg.FileLog)
    my_run_info = 
    
      3×3 table 
    
                 Application             StartDate          Size  
              __________________    ____________________    _____ 
    
        1.    "slrt_ex_osc_rt_t"     12-Dec-2019 21:59:31    94944 
        2.    "slrt_ex_osc_rt_t"     12-Dec-2019 21:59:45    84736 
        3.    "slrt_ex_osc"          12-Dec-2019 21:59:57    82176
  2. Delete file log data from application runs 1 and 2 in the available file logs table.

    discard(tg.FileLog,1:2);

Input Arguments

collapse all

Provides access to methods that manipulate the target computer properties.

Provides name of real-time application MLDATX file that you built from the model.

Example: 'slrt_ex_osc'

The run_info structure is a MATLAB® table that is structured by Application and RowNames. For information about available log runs, see list.

Identifies the simulation runs to delete from the target computer. The run_ids are rows in the available file logging data table. For information about available log runs, see list.

Version History

Introduced in R2020b