MATLAB XPC TARGET 4 - DEVICE DRIVERS Specifikace Strana 54

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 653
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 53
2 RS232 I/O Support
2-24
7 Connect the input and output ports on the RS-232 driver blocks to other
blocks in your Simulink model.
Your model should look similar to the figure shown below.
8 Set the pre-load function for your Simulink model to load the message
structures when you open the model. For example, if you saved the message
structures in the M-file
RS232async_messages, type
set_pram(gcs, ’PreLoadFcn’,’RS232async_messages’)
Note If you do not manually load the message structures before opening
your Simulink model, or have the message structures automatically loaded
with the model, the port connections to the RS-232 blocks breaks.
Your next task is to build and run the target application.
Zobrazit stránku 53
1 2 ... 49 50 51 52 53 54 55 56 57 58 59 ... 652 653

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

Žádné komentáře