Wormhole Example

This is a self-contained example of a simple WormHole application. It contains models to build two separate simulations that will be connected by a wormhole. 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 wormholes via the MSI interconnect. Although not required for a pair of simulators, this permits example to be extended to connect any number of additional simulations.


Download Complete Example:

Click or right-click to Save-As:     wormhole_example_7_27_07.tgz
          ( Older versions:   For Linux or Sun only wormhole_example.tgz
                          For MS-Win under Cygwin also wormhole_example_cygwin.tgz
)

Unpack with:     tar xvfz wormhole_example.tgz

(Older systems may require two steps: gunzip wormhole_example.tgz,   tar xvf wormhole_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.