Change search
CiteExportLink to record
Permanent link

Direct link
Cite
Citation style
  • apa
  • ieee
  • modern-language-association-8th-edition
  • vancouver
  • Other style
More styles
Language
  • de-DE
  • en-GB
  • en-US
  • fi-FI
  • nn-NO
  • nn-NB
  • sv-SE
  • Other locale
More languages
Output format
  • html
  • text
  • asciidoc
  • rtf
Simulering, kodgenerering och implementation av ett realtidssystem
KTH, School of Industrial Engineering and Management (ITM), Machine Design (Dept.).
2012 (English)Independent thesis Advanced level (degree of Master (Two Years)), 20 credits / 30 HE creditsStudent thesisAlternative title
Simulation, code generation and implementation of a real-time system (Swedish)
Abstract [en]

At the School of Industrial Engineering and Management, KTH Stockholm, courses in embedded

systems are developed which the students attending the mechatronics aim attend. In the courses,

the students get to practice control design in real-time. For this purpose there are DC motors that

are controlled by a microcontroller and an interface card that has been developed at the

department. When realizing a system, it is modeled in Matlab/Simulink, in order to implement

the real-time design in Rubus and CodeWarrior. The tutorials/lab exercises used in the courses

are under constant development, and the thought is to develop a summoning tutorial/lab exercise

where the students are supposed to realize a system from modeling to real-time implementation.

The aim of the thesis work has been to examine the possibility to use generated code from

Simulink together with a real-time implementation, and demonstrating this with an application.

Furthermore, the aim has been to model and implement the application as far as time allows. A

model of an elevator has been developed and implemented in Simulink. A PID-regulator controls

the system, and for the behavior of the elevator Stateflow has been used. Code generation with

Real-Time Workshop has been accomplished for the subsystem Elevator controller and included 

in CodeWarrior. A real-time design has been implemented in Rubus and tested in CodeWarrior

along the code from Simulink. The thesis shows that it is possible to implement the generated

code in the same project in CodeWarrior, along with a real-time design made in Rubus.

Abstract [sv]

På institutionen för maskinkonstruktion utformas kurser i inbyggda system, som studenter ska

läsa som går inriktningen i mekatronik. I kurserna ingår att praktiskt tillämpa realtidsreglering.

Till detta använder man sig av dc-motorer, som styrs via en mikrokontroller och ett tillhörande

motorkort som utvecklats på institutionen. För att implementera ett system modelleras systemet i

Matlab/Simulink för att sedan implementera realtidsstyrningen i Rubus och CodeWarrior.

Vidareutveckling av de tutorials man använder sig av sker ständigt, och tanken är att ta fram en

sammanfattande laboration där studenterna får gå från modellering till realtidsimplementering.

Examensarbetet har gått ut på att undersöka möjligheten att använda genererad kod från

Simulink tillsammans med en realtidsimplementering och demonstrera detta i en applikation.

Vidare har syftet varit att så långt som det hinns med, modellera och implementera applikationen

i realtid. En modell av en hiss har tagits fram, som har byggts upp i Simulink. Systemet har

reglerats med en PID-regulator och för att styra hissens beteende har Stateflow använts. Med

hjälp av Real-Time Workshop har kod för delsystemet Elevator controller sedan genererats och

inkluderats i CodeWarrior. Examensarbetet visar att det är möjligt att implementera den

genererade koden i samma projekt i CodeWarrior med en realtidsdesign från Rubus.

Place, publisher, year, edition, pages
2012.
Series
MMK 2012:15 MDA 415
National Category
Engineering and Technology
Identifiers
URN: urn:nbn:se:kth:diva-99291OAI: oai:DiVA.org:kth-99291DiVA: diva2:541820
Uppsok
Technology
Supervisors
Examiners
Available from: 2012-07-24 Created: 2012-07-24 Last updated: 2012-07-24Bibliographically approved

Open Access in DiVA

Jenny Börlin(2246 kB)675 downloads
File information
File name FULLTEXT01.pdfFile size 2246 kBChecksum SHA-512
c85cafe0b1b2a0fb88a037c654931555bdf18da7ed609fd6a5a835a650dd13619c3271ba056f74691f4855d5854fdcd1503d8ed5d72bc83ff9946820841743bd
Type fulltextMimetype application/pdf

By organisation
Machine Design (Dept.)
Engineering and Technology

Search outside of DiVA

GoogleGoogle Scholar
Total: 675 downloads
The number of downloads is the sum of all downloads of full texts. It may include eg previous versions that are now no longer available

urn-nbn

Altmetric score

urn-nbn
Total: 287 hits
CiteExportLink to record
Permanent link

Direct link
Cite
Citation style
  • apa
  • ieee
  • modern-language-association-8th-edition
  • vancouver
  • Other style
More styles
Language
  • de-DE
  • en-GB
  • en-US
  • fi-FI
  • nn-NO
  • nn-NB
  • sv-SE
  • Other locale
More languages
Output format
  • html
  • text
  • asciidoc
  • rtf