MATLAB EMBEDDED IDE LINK 4 - FOR USE WITH ECLIPSE User Manual

Browse online or download User Manual for Unknown MATLAB EMBEDDED IDE LINK 4 - FOR USE WITH ECLIPSE. Usable Simulink Embedded Coder Target for Linux - Real

  • Download
  • Add to my manuals
  • Print
  • Page
    / 36
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 0
Usable Simulink Embedded Coder Target for Linux
Michal Sojka, Pavel Píša
Czech Technical University in Prague
Faculty of Electrical Engineering
Department of Control Engineering
16
th
Real-Time Linux Workshop
October 12, 2014
Düsseldorf, Germany
M. Sojka, P. Píša Usable Simulink Embedded Coder Target for Linux RTLWS16 1 / 22
Page view 0
1 2 3 4 5 6 ... 35 36

Summary of Contents

Page 1 - Düsseldorf, Germany

Usable Simulink Embedded Coder Target for LinuxMichal Sojka, Pavel PíšaCzech Technical University in PragueFaculty of Electrical EngineeringDepartment

Page 2 - Motivation

Code generation in SimulinkIExample:Sine WaveProduct3ConstantPi n 1ErrFlagAnalog InputPi n 1 ErrFlagAnalog Outputdouble in1, out1;in1 = adc_read(1);ou

Page 3

Can Simulink generate code that runs on Linux?Yes, but. . .M. Sojka, P. Píša Usable Simulink Embedded Coder Target for Linux RTLWS16 6 / 22

Page 4

Can Simulink generate code that runs on Linux?Yes, but. . .M. Sojka, P. Píša Usable Simulink Embedded Coder Target for Linux RTLWS16 6 / 22

Page 5

Problems of Simulink code generation targets for LinuxIVery good support for popular embedded boards(Raspberry Pi, BeagleBone, . . . )ICan only be ins

Page 6

Problems of Simulink code generation targets for LinuxIVery good support for popular embedded boards(Raspberry Pi, BeagleBone, . . . )ICan only be ins

Page 7 - What is Simulink?

Problems of Simulink code generation targets for LinuxIVery good support for popular embedded boards(Raspberry Pi, BeagleBone, . . . )ICan only be ins

Page 8 - Why people use it?

Problems of Simulink code generation targets for LinuxIVery good support for popular embedded boards(Raspberry Pi, BeagleBone, . . . )ICan only be ins

Page 9

Problems of Simulink code generation targets for LinuxIVery good support for popular embedded boards(Raspberry Pi, BeagleBone, . . . )ICan only be ins

Page 10 - Code generation in Simulink

POSIX timers under preempt_rt LinuxIPOSIX timers use signals to notify user space about theirexpirationISignal delivery path uses sleeping locks under

Page 11 - Yes, but. .

Is there better code generationtarget?YesERT_LINUXM. Sojka, P. Píša Usable Simulink Embedded Coder Target for Linux RTLWS16 9 / 22

Page 12

MotivationINot everybody is a programmerIControl engineers can designcontrol algorithms but cannotprogram them in CIThey use tools like Simulink to si

Page 13

ERT_LINUX code generation targetIGoal: Minimalist target which reuses as much Simulink codeas possible (not that easy)INo Eclipse needed,IUses clock_n

Page 14

ERT_LINUX I/O supportIMF624: PCI data acquisition cardIDigital IO, Analog IO, PWM outICounters (can be used for PWM input!)IIncremental encoder inputI

Page 15

ERT_LINUX I/O supportIMF624: PCI data acquisition cardIDigital IO, Analog IO, PWM outICounters (can be used for PWM input!)IIncremental encoder inputI

Page 16

ERT_LINUX I/O supportIMF624: PCI data acquisition cardIDigital IO, Analog IO, PWM outICounters (can be used for PWM input!)IIncremental encoder inputI

Page 17

Applications/demosM. Sojka, P. Píša Usable Simulink Embedded Coder Target for Linux RTLWS16 12 / 22

Page 18 - Softirqs are:

PMSM motor simulationHardware-in-the-loop (HIL) simulationInfineon TriBoard running a motor control algorithmPCMotor & fault simulationMF624 I/O c

Page 19 - ERT_LINUX

Robot with parallel kinematic structureI4 DC motors, 4 incremental encoders, other I/OsIPresented at Embedded world 2014ISampling period 1 ms but comp

Page 20

Motor control on Raspberry PiIFinal task for students of our real-time course:ICreate software motor controller on an embedded PowerPCboard with VxWor

Page 21 - ERT_LINUX I/O support

M. Sojka, P. Píša Usable Simulink Embedded Coder Target for Linux RTLWS16 16 / 22

Page 22

HardwarePWMGPIOsRaspberry Pi – P1CHBCHAIRCHI DRVLO DRVINHI DRVLO DRVINDCMOTORMotor Power SupplyDIRIAs simple as possibleIFour NOR gates (SN74HCT02)IH-

Page 23

MotivationINot everybody is a programmerIControl engineers can designcontrol algorithms but cannotprogram them in CIThey use tools like Simulink to si

Page 24 - Applications/demos

Incremental encoder (IRC) processingIThe most demanding partIIRC signal: 0 – 20 kHzIEvery edge generates an interrupt (up to 80 k interrupts/sec)IKern

Page 25 - PMSM motor simulation

Incremental encoder (IRC) processingIThe most demanding partIIRC signal: 0 – 20 kHzIEvery edge generates an interrupt (up to 80 k interrupts/sec)IKern

Page 26

IRC processing detailsGPIOsRaspberry PiCHBCHAIRCHard IRQIRQ threadedhandlerIPosition calculation works better if derived from the order ofIRQs than fr

Page 27 - Motor control on Raspberry Pi

Demo: Raspberry Pi motor controllersfIRCInputIRC0int320IRC-displayConvertIRC int32 to RealdoubleIRC-scope-0.01ManualPWMdoublesfPWMwDirOutputPWMwDirMan

Page 28

Demo: Raspberry Pi & CANM. Sojka, P. Píša Usable Simulink Embedded Coder Target for Linux RTLWS16 21 / 22

Page 29 - Hardware

ConclusionIERT_LINUX target worksIUsed in several applicationsIDoes not suffer from serious problems as original MathWorkscode generation targets.ILimi

Page 30

ConclusionIERT_LINUX target worksIUsed in several applicationsIDoes not suffer from serious problems as original MathWorkscode generation targets.ILimi

Page 31

MotivationINot everybody is a programmerIControl engineers can designcontrol algorithms but cannotprogram them in CIThey use tools like Simulink to si

Page 32 - IRC processing details

MotivationINot everybody is a programmerIControl engineers can designcontrol algorithms but cannotprogram them in CIThey use tools like Simulink to si

Page 33

MotivationINot everybody is a programmerIControl engineers can designcontrol algorithms but cannotprogram them in CIThey use tools like Simulink to si

Page 34 - Demo: Raspberry Pi & CAN

What is Simulink?IWidely used tool for design and simulation of dynamic systemsICommercial, non-free program – a part of MatlabIDeveloped by MathWorks

Page 35 - Thank you!

Why people use it?M. Sojka, P. Píša Usable Simulink Embedded Coder Target for Linux RTLWS16 4 / 22

Page 36

Code generation in SimulinkIExample:Sine WaveProduct3ConstantPi n 1ErrFlagAnalog InputPi n 1 ErrFlagAnalog Outputdouble in1, out1;in1 = adc_read(1);ou

Comments to this Manuals

No comments