Main Content

slrealtime.fileLogList

List available file logs copied from target computer

Description

slrealtime.fileLogList() lists the available log files for import that you copied from the applications folder tree on the target computer to the applications folder tree beneath the current folder pwd.

example

slrealtime.fileLogList('Directory',apps_path) lists the available log files for import that you copied from the applications folder tree on the target computer to the applications folder tree beneath the selected folder.

Examples

collapse all

Open model slrt_ex_osc.

In the Simulink Editor, from the Real-Time tab, click Hardware Settings.

In the Simulink Real-Time Options pane, change Max file log runs to 5 and click OK.

Click Run on Target.

After the run ends, close the model and exit MATLAB.

Start an SSH session by using PuTTY. Log into the target computer as user slrt with password slrt. For more information about settings for using PuTTY for an SSH session, see Execute Target Computer RTOS Commands at Target Computer Command Line.

After you log in, load and run the application to generate file logs. The target computer stores up to the maximum number of logs, in this case 5. At the target computer prompt, type:

$ slrealtime load --AppName slrt_ex_osc
$ slrealtime start

Repeat the previous step until you have created several logs. Between each run, you can change parameter values by loading different parameter set files into the application. For more information, see the loadParamSet function.

List the logs that you created. At the target computer prompt, type:

$ ls applications/slrt_ex_osc/logdata/

On the development computer, use pscp (a PuTTY utility) to copy the applications folders from the target computer to an applications folder on the development computer. You can download and install this utility from www.putty.org. In the MATLAB Command Window, type:

system('pscp -r slrt@192.168.7.5:applications C:\work\my_logdata\')

List the file logs that are available to import into the Simulation Data Inspector. In the MATLAB Command Window, type:

slrealtime.fileLogList('Directory','applications')

Input Arguments

collapse all

Provides the path to the applications folder on the development computer to which you have copied the tree of files from the applications folder on the target computer.

Example: (fullfile(pwd,'applications'))

Introduced in R2021a