MATLAB XPC TARGET RELEASE NOTES User's Guide Page 207

  • Download
  • Add to my manuals
  • Print
  • Page
    / 531
  • Table of contents
  • TROUBLESHOOTING
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 206
xPC Target™ Interfac e Bloc ks to Simulink
®
Models
5 Repeat steps 1 through 3 for the remaining parameters y ou want to tag.
For example, for the Controlle r block, enter th e tag
For the PumpSwitch and ValveSwitch blocks, enter the following tags
respectively:
xPCTag(2)=pump_switch;
xPCTag(1)=drain_valve;
To create the To xPC blocks in an user interface model for a block with four
properties, use the followi ng syntax:
xPCTag(1,2,3,4)=label_1label_2label_3label_4;
To create the To xPC blocks for the second and fourth properties in a block
with at least four properties, use the following s yntax:
xPCTag(2,4)=label_1 label_2;
6 From the File menu, click Save as. Ente r a filename for your model. For
example, enter
xpctank1
You next task is to mark block signals if you have not already done so, and
then create the user interface template model. See “Marking Block Signals”
on page 10-9 and “Creating a Custom Graphical Interface” on page 10-3.
Marking Block Signals
Tagging signals in your Simulink model allows the function xpcsliface to
create From xPC Target interface blocks. These interface blocks contain the
signals you connect to display device s in your user interface model.
10-9
Page view 206
1 2 ... 202 203 204 205 206 207 208 209 210 211 212 ... 530 531

Comments to this Manuals

No comments