List available file logs copied from target computer
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
Build and Run Real-Time Application
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.
Create File Logs on Target Computer
Start an SSH session by using PuTTY. Log into the target computer as user slrt with
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
List the logs that you created. At the target computer prompt, type:
$ ls applications/slrt_ex_osc/logdata/
Copy File Logs from Target Computer and List Runs
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,
system('pscp -r email@example.com: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:
apps_path — Path to applications folder
(fullfile(pwd,'applications')) (default) | path to applications folder
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.