nass-micro-station-measurem.../speedgoat-measurement/index.org

96 lines
4.7 KiB
Org Mode
Raw Normal View History

2019-10-08 10:49:14 +02:00
#+TITLE: Vibrations induced by the translation stage motion
:DRAWER:
#+STARTUP: overview
#+LANGUAGE: en
#+EMAIL: dehaeze.thomas@gmail.com
#+AUTHOR: Dehaeze Thomas
#+HTML_LINK_HOME: ../index.html
#+HTML_LINK_UP: ../index.html
#+HTML_HEAD: <link rel="stylesheet" type="text/css" href="../css/htmlize.css"/>
#+HTML_HEAD: <link rel="stylesheet" type="text/css" href="../css/readtheorg.css"/>
#+HTML_HEAD: <link rel="stylesheet" type="text/css" href="../css/zenburn.css"/>
#+HTML_HEAD: <script type="text/javascript" src="../js/jquery.min.js"></script>
#+HTML_HEAD: <script type="text/javascript" src="../js/bootstrap.min.js"></script>
#+HTML_HEAD: <script type="text/javascript" src="../js/jquery.stickytableheaders.min.js"></script>
#+HTML_HEAD: <script type="text/javascript" src="../js/readtheorg.js"></script>
:END:
2019-04-17 11:17:57 +02:00
* Get data from the target computer
We first copy the =dat= file from the target computer to the host computer:
#+begin_src matlab
2019-04-17 17:24:35 +02:00
tg=slrt;
f=SimulinkRealTime.openFTP(tg);
mget(f, 'DATA_001.dat', 'local_folder');
2019-04-17 17:58:41 +02:00
close(f);
2019-04-17 11:17:57 +02:00
#+end_src
We then import the =dat= file to the workspace:
#+begin_src matlab
matlab_data = SimulinkRealTime.utils.getFileScopeData('DATA_001.dat');
#+end_src
* Commands with the target object
https://fr.mathworks.com/help/xpc/api/simulinkrealtime.target.html
2019-04-17 17:58:41 +02:00
| Connect | No Yes |
| Status | stopped runing |
2019-04-17 17:24:35 +02:00
| start | Start execution of real-time application on target computer |
| stop | Stop execution of real-time application on target computer |
2019-04-17 11:17:57 +02:00
| tg.viewTargetScreen | Show target computer screen |
2019-04-17 17:24:35 +02:00
2019-04-17 17:58:41 +02:00
| ping | Test communication between development and target computers |
| reboot | Restart target computer |
| close | Close connection between development and target computers |
2019-04-17 17:24:35 +02:00
2019-04-17 17:58:41 +02:00
| load | Download real-time application to target computer |
2019-04-17 11:17:57 +02:00
| unload | Remove real-time application from target computer |
2019-04-17 17:24:35 +02:00
2019-04-17 17:58:41 +02:00
| 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 |
2019-04-17 17:24:35 +02:00
* 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:
#+begin_src matlab
tg=slrt;
f=SimulinkRealTime.openFTP(tg);
#+end_src
Then, the =f= object can be used to access the filesystem on the target computer.
2019-10-08 10:49:14 +02:00
- =cd=
- =dir=
- =mget=: Used to download data from the target host. =f.mget('data.dat', 'local_folder')=
- =mkdir=
- =mput=
- =rename=
- =rmdir=
- =close=