MATLAB EMBEDDED IDE LINK 4 - FOR USE WITH ECLIPSE Instrukcja Użytkownika

Przeglądaj online lub pobierz Instrukcja Użytkownika dla Nie MATLAB EMBEDDED IDE LINK 4 - FOR USE WITH ECLIPSE. Usable Simulink Embedded Coder Target for Linux - Real Instrukcja obsługi

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 36
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 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
Przeglądanie stron 0
1 2 3 4 5 6 ... 35 36

Podsumowanie treści

Strona 1 - Düsseldorf, Germany

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

Strona 2 - Motivation

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

Strona 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

Strona 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

Strona 5

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

Strona 6

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

Strona 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

Strona 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

Strona 9

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

Strona 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

Strona 11 - Yes, but. .

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

Strona 12

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

Strona 13

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

Strona 14

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

Strona 15

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

Strona 16

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

Strona 17

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

Strona 18 - Softirqs are:

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

Strona 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

Strona 20

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

Strona 21 - ERT_LINUX I/O support

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

Strona 22

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

Strona 23

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

Strona 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

Strona 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

Strona 26

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

Strona 27 - Motor control on Raspberry Pi

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

Strona 28

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

Strona 29 - Hardware

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

Strona 30

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

Strona 31

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

Strona 32 - IRC processing details

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

Strona 33

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

Strona 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

Strona 35 - Thank you!

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

Strona 36

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

Komentarze do niniejszej Instrukcji

Brak uwag