Go to file
2019-05-10 09:13:09 +02:00
2017-09-01 - Marc Add every computation files and data 2019-03-14 16:40:28 +01:00
2017-11-17 - Marc Update main page with summary of each experiment 2019-03-20 15:21:12 +01:00
2018-01-12 - Marc Add Hans Petter measurements 2019-05-10 09:07:30 +02:00
2018-10-12 - Marc Add link back to main page 2019-03-15 11:48:56 +01:00
2018-10-15 - Marc Integration of geophone to have the displacement 2019-04-02 10:39:37 +02:00
actuators-sensors add actuator suppliers 2019-05-10 09:07:01 +02:00
css Initial Commit 2019-03-14 16:36:39 +01:00
disturbance-measurement Add measurements: LPF, noise induced by all the stages 2019-05-07 10:43:26 +02:00
equipment Add equipment page 2019-05-03 08:41:03 +02:00
Ground Motion Removing ignored files 2019-03-15 12:06:51 +01:00
huddle-test-geophones Add data analysis of 03/05 2019-05-06 10:28:35 +02:00
js Initial Commit 2019-03-14 16:36:39 +01:00
slip-ring-test Add analysis on the new measurements 2019-05-07 18:30:04 +02:00
Spindle Update main page with summary of each experiment 2019-03-20 15:21:12 +01:00
Static Add Hans Petter measurements 2019-05-10 09:07:30 +02:00
static-measurements Complete measurement analysis of 07/05 2019-05-09 09:13:10 +02:00
.gitattributes Add every computation files and data 2019-03-14 16:40:28 +01:00
.gitignore merge 2019-05-10 09:13:09 +02:00
index.html merge 2019-05-10 09:13:09 +02:00
index.org merge 2019-05-10 09:13:09 +02:00
readme.org Add analysis of LPF, and slip-ring noise 2019-05-07 13:51:35 +02:00

Usefull Simulink Real Time commands

Get data from the target computer

We first copy the dat file from the target computer to the host computer:

  tg=slrt;
  f=SimulinkRealTime.openFTP(tg);
  mget(f, 'DATA_001.dat', 'local_folder');
  close(f);

We then import the dat file to the workspace:

  matlab_data = SimulinkRealTime.utils.getFileScopeData('DATA_001.dat');

Commands with the target object

https://fr.mathworks.com/help/xpc/api/simulinkrealtime.target.html

Connect No Yes
Status stopped runing
start Start execution of real-time application on target computer
stop Stop execution of real-time application on target computer
tg.viewTargetScreen Show target computer screen
ping Test communication between development and target computers
reboot Restart target computer
close Close connection between development and target computers
load Download real-time application to target computer
unload Remove real-time application from target computer
addscope Create a scope of specified type
getscope Return scope identified by scope number
remscope Remove scope from target computer
getlog Portion of output logs from target object
importLogData Import buffered logging data to the active session of the Simulation Data Inspector
getsignal Value of signal
getsignalid Signal index from signal hierarchical name
getsignalidsfromlabel Vector of signal indices
getsignallabel Signal label for signal index
getsignalname Signal name from index list
getparam Read value of observable parameter in real-time application
setparam Change value of tunable parameter in real-time application
getparamid Parameter index from parameter hierarchical name
getparamname Block path and parameter name from parameter index
loadparamset Restore parameter values saved in specified file
saveparamset Save real-time application parameter values
startProfiler Start profiling service on target computer
stopProfiler Stop profiling service on target computer
getProfilerData Retrieve profile data object
resetProfiler Reset profiling service state to Ready
getDiskSpace Return free space and total space on the drive, in bytes

FTP access to the target computer

https://fr.mathworks.com/help/xpc/api/simulinkrealtime.openftp.html?s_tid=doc_ta

First run the following commands to have the FTP Object:

  tg=slrt;
  f=SimulinkRealTime.openFTP(tg);

Then, the f object can be used to access the filesystem on the target computer.

cd
dir
mget Used to download data from the target host f.mget('data.dat', 'local_folder')
mkdir
mput
rename
rmdir
close

Low Pass Filter

R = 1KOhm C = 1muF

Fc = 1kHz