An MSI Federation Example

Connect two simulations. Follow the exchange.

Explore the self-contained MSI/CSIM example and its build-and-run instructions. The demonstration connects two simulations and exchanges slider values.

MSI Example

This is a self-contained example of a simple MSI application. It contains models to build two separate simulations that will be connected by MSI. The models contain interactive sliders. Moving one slider will pass the slider values through the wormhole for display within the other simulation.

For generality, this example connects the simulations via the MSI interconnect. This permits the example to be extended to connect any number of additional simulations.


Download Complete Example

Right-click to Save-As: msi_csim_example.tar.gz

Unpack with: tar xvfz msi_csim_example.tar.gz

(Older systems may require two steps: gunzip msi_csim_example.tar.gz,   tar xvf msi_csim_example.tar .)

Content Directories:
        slider1 - The slider1 sim (sender)
        slider2 - The slider2 sim (receiver)
        msi_csim - contains the common files needed by sims and msi, and also contains msi source code.


To Build

Source your customary csim setup file, for example: (Indented-italicized statements are commands to be entered.)
source /proj/csim/setup

Next, source the build.com file:
source build.com


To Run

Source the run.com script:
source run.com

Two Sims and MSI will be started. (One may appear on top of the other, so you may need to move one of the simulation panels aside.) Try moving the sliders. The second slider is connected to the other simulation via a WormHole. You will see the gauge in the second simulation window move as you move the slider in the other simulator. As shown below.

snap1a
snap2


This page is an editorial rewrite of source documentation. Historical status, availability, and platform notes are not independently verified for a current release. Technical examples are reference material, not a live simulator.