Benutzer-Werkzeuge

Webseiten-Werkzeuge


realtime_control_environment_setup

Unterschiede

Hier werden die Unterschiede zwischen zwei Versionen angezeigt.

Link zu dieser Vergleichsansicht

Beide Seiten der vorigen RevisionVorhergehende Überarbeitung
Nächste ÜberarbeitungBeide Seiten der Revision
realtime_control_environment_setup [24.07.2019 21:46] – [Run Simulink in Realtime] Guoping Zhaorealtime_control_environment_setup [24.07.2019 22:02] – [Run Simulink in Realtime] Guoping Zhao
Zeile 187: Zeile 187:
  
 ===== Run Simulink in Realtime ===== ===== Run Simulink in Realtime =====
 +
 +In order to run the simulink in realtime (on the target machine) with EtherCAT, the EtherCAT Init block is needed. The configure file, PCI bus number, and the PCI slot number has to be configured correctly according to the setup. 
 +
 +{{:ethercatinitblock.png?500|}}
 +
 +In addition, the solver of the simulink model has to be configured as "Fixed-step" and "discrete". The "fixed-step size" has to be configured the same as the EtherCAT communication frequency. E.g. 0.001 denote 1kHz control frequency. 
  
 {{:simulinkmodelconfig2.png?800|}} {{:simulinkmodelconfig2.png?800|}}
 +
 +And the "System target file" in the "Code Generation" has to be configured as "slrt.tlc"
  
 {{:simulinkmodelconfig1.png?800|}} {{:simulinkmodelconfig1.png?800|}}
  
-{{:ethercatinitblock.png?500|}}+
  
  
  
  
realtime_control_environment_setup.txt · Zuletzt geändert: 27.11.2022 22:58 von 127.0.0.1


Warning: Undefined variable $orig_id in /is/htdocs/wp1019470_OPI92FFHXV/www/wikiLehre/lib/plugins/openas/action.php on line 232