MATLAB EMBEDDED IDE LINK 4 - FOR USE WITH ECLIPSE Manual do Utilizador

Consulte online ou descarregue Manual do Utilizador para não MATLAB EMBEDDED IDE LINK 4 - FOR USE WITH ECLIPSE. Usable Simulink Embedded Coder Target for Linux - Real Manual do Utilizador

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 36
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 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
Vista de página 0
1 2 3 4 5 6 ... 35 36

Resumo do Conteúdo

Página 1 - Düsseldorf, Germany

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

Página 2 - Motivation

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

Página 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

Página 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

Página 5

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

Página 6

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

Página 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

Página 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

Página 9

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

Página 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

Página 11 - Yes, but. .

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

Página 12

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

Página 13

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

Página 14

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

Página 15

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

Página 16

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

Página 17

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

Página 18 - Softirqs are:

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

Página 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

Página 20

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

Página 21 - ERT_LINUX I/O support

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

Página 22

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

Página 23

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

Página 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

Página 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

Página 26

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

Página 27 - Motor control on Raspberry Pi

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

Página 28

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

Página 29 - Hardware

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

Página 30

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

Página 31

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

Página 32 - IRC processing details

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

Página 33

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

Página 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

Página 35 - Thank you!

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

Página 36

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

Comentários a estes Manuais

Sem comentários