xPC TargetBox Previous page   Next Page

Creating a Simulink Model for Loop-Back Testing

During the final system test at the manufacturer, a Simulink model was created that does a loop-back test of all I/O options installed on your system. This Simulink model was built into a stand-alone target application and put onto the flash disk of your xPC TargetBox. The stand-alone application is called xpctgtst.rtb and is located in the directory c:\work.

It is good practice to back up this file for later use in case the flash disk is corrupted. Nevertheless, you can create the same Simulink model on which xpctgtst.rtb is based at any time. You can then build and download that target application and redo the entire system test if the original stand-alone test application no longer exists:

  1. On the bottom of the xPC TargetBox, check the configuration label for the I/O options installed in your xPC TargetBox and the base addresses.

  1. Find the jumper codes for your I/O options. Use the table in Configuration Label for I/O Options to determine the jumper settings from the jumper codes.

  1. Enter the command to create the I/O option Simulink model. For example, if you want a model to test I/O option 301 and I/O option 305 with base addresses 0x300 and 0x280, in the MATLAB Command Window on the host PC, type

  1. A Simulink test model is created. This model is the system test model that was used to create the target application initially delivered on the flash disk as a stand-alone application. You can use this model to build and run a target application on the xPC TargetBox.

  1. Save the Simulink test model in a directory outside the MATLAB root directory.


Previous page  Uses for Loop-Back Testing Running the Target Application for Specific I/O Option Testing Next page

Learn more about the latest releases of MathWorks products:

 © 1994-2010 The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS