MATLAB XPC TARGET 4 - DEVICE DRIVERS Specifications Page 54

  • Download
  • Add to my manuals
  • Print
  • Page
    / 653
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 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.
Page view 53
1 2 ... 49 50 51 52 53 54 55 56 57 58 59 ... 652 653

Comments to this Manuals

No comments