MATLAB EMBEDDED IDE LINK 4 Uživatelský manuál Strana 17

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 21
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 16
17
© 2008 Microchip Technology Incorporated. All Rights Reserved. WebSeminar Title Slide 17
Generate code and import files
Code Generation and Build
Picture here shows how to generate and import files from a SIMULINK model once
you have configured RTW settings and saved the model.
It is mandatory to have a project in MPLAB IDE before you generate code from a
model.
‘Generate Code’ generates code from the model specified. ‘Import Generated
Files’ imports all the files that are generated from the model into the active project.
All other dependent files are compiled and object files are archived and imported as
‘matlab_core.a’
By clicking ‘Generate Code and Import Files’ both operations of generating files
and importing them into project in a single step.
Add library files ‘libp33FJxxxxxxx-coff.a’ and ‘libp33FJxxxxxxxx-elf.a’ to the
project and build.
To trace arrays when the MPLAB REAL ICE in-circuit emulator or MPLAB SIM
simulator is the debugger, select Array Snapshot’. Tracing array variables occurs
on a Halt. The data can be loaded in the MATLAB workspace.
To use the data capture facility of the MPLAB REAL ICE in-circuit emulator,
select ‘Data Capture’. The data can be loaded in the MATLAB workspace.
Zobrazit stránku 16
1 2 ... 12 13 14 15 16 17 18 19 20 21

Komentáře k této Příručce

Žádné komentáře