After copying file logs from target to development computer, list available file logs for import into Simulation Data Inspector
slrealtime.fileLogList() lists the available log files for import
into the Simulation Data Inspector after you have copied the files from the target computer
into the development computer applications folder tree under the current folder
slrealtime.fileLogList workflow when working with a
standalone target computer that does not connect to Simulink Real-Time. If working with a
target computer that connects to Simulink Real-Time on the development computer, use the
function or Import File Log button in the Simulink Real-Time
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 a system utility to copy the applications folders
from the target computer to an applications folder on the development computer. For
example on a Windows® computer, you can use
pscp (a PuTTY utility) or Filezilla. You can download and
install PuTTY from www.putty.org. In the
MATLAB Command Window, type:
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.
Introduced in R2021a