You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Jason Harvey edited this page Feb 19, 2021
·
1 revision
Example Sim Bus in Action
Building
You can build SIM_simbus_example and see it work! The only thing you need is the icd-tools repository or equivalent Sim Bus source code location (see above). For this sim to build right out of the box, you need to have it at your: ${HOME}/repos/icd-tools. Or you can modify the sims/SIM_simbus_example/S_overrides.mk to point to wherever your version is (see here.)
To build, make sure you are in the GUNNS or equivalent environment. Then just do a CP in the SIM_simbus_example folder like any other Trick sim. If it works, you’ll note all the generated Sim Bus stuff in a new thread_safe_bus folder in your sim folder.
Running
Run the sim with:
$ ./S_main* RUN_test/input.py
It should pop up a Sim Control window and a Trick View window with the relevant terms in it, like so:
To see the Sim Bus doing its job, set the potential.mSourcePotential term to 300.0 — this will drive the capacitor.mTemperature to 300.0, and then the Sim Bus will move that value into the tank.mShellTemperature term. We’ve just demonstrated network-network communication via the Sim Bus!