MATLAB EMBEDDED IDE LINK 4 - FOR USE WITH ECLIPSE Manuale Utente

Navigare online o scaricare Manuale Utente per no MATLAB EMBEDDED IDE LINK 4 - FOR USE WITH ECLIPSE. Usable Simulink Embedded Coder Target for Linux - Real Manuale Utente

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 36
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 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
Vedere la pagina 0
1 2 3 4 5 6 ... 35 36

Sommario

Pagina 1 - Düsseldorf, Germany

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

Pagina 2 - Motivation

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

Pagina 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

Pagina 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

Pagina 5

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

Pagina 6

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

Pagina 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

Pagina 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

Pagina 9

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

Pagina 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

Pagina 11 - Yes, but. .

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

Pagina 12

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

Pagina 13

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

Pagina 14

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

Pagina 15

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

Pagina 16

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

Pagina 17

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

Pagina 18 - Softirqs are:

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

Pagina 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

Pagina 20

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

Pagina 21 - ERT_LINUX I/O support

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

Pagina 22

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

Pagina 23

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

Pagina 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

Pagina 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

Pagina 26

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

Pagina 27 - Motor control on Raspberry Pi

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

Pagina 28

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

Pagina 29 - Hardware

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

Pagina 30

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

Pagina 31

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

Pagina 32 - IRC processing details

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

Pagina 33

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

Pagina 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

Pagina 35 - Thank you!

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

Pagina 36

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

Commenti su questo manuale

Nessun commento