Is it possible to have just one host machine for two or more xPC Target machines in xPC Target 3.4 (R008a)?

1 view (last 30 days)
I plan to have several xPC Target machines doing distributive processing, linked by the reflective memory boards and I want to connect these target machines to the same host machine.

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 10 Aug 2010
It it possible to connect multiple target machines simultaneously to one host machine.
In order to download the model to different target machines from a single host perform the following step:
1. From the model, select Simulation > Configuration Parameters. In the left pane, click the xPC Target options node.
2. Select the "Automatically download application after building" option which allows Real-Time Workshop to build and download the target application to the target PC.
3. Uncheck the box "Download to default target PC"
4. Enter the name of the target PC where you want the model to be downloaded to, in the "Specify Target PC name" field.
5. In the field "Name of xPC Target object created by build process" create a new name for every Target PC that will be connected to the host machine. For example, for TargetPC1, the name of the xPC Target object created by build process will be tg1 and for TargetPC2, the name of the xPC Target object created by build process will be tg2.
5. Once the models are downloaded to the different Target machine you can use the following commands to start the models on the targets
tg1.start
tg2.start

More Answers (0)

Products


Release

R2008a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!