Build and run a simple composition with Pipistrelle

Build and run a simple composition using Pipistrelle

Now that we have built our simple Pond component, we need to use this to make and run an Open MI composition using Pipistrelle.  We're going to model the overflowing of a single pond as time goes by. 

This section will show you how to run Pipistrelle, create a composition, create a Pond component set its argument values, save and run the composition and examine the result.

We will set up the Pond to have a capacity of 0 a flow value of 1 and a currentLevel of 70. By setting the currentlevel value of Pond higher than its capacity we will make it overflow by the amount specified by flow in each timestep

Ponds composition

Run the Pipistrelle GUI and follow the instructions in this video to implement the composition design above using Pipistrelle Click to view instructions on building and running a simple composition(Please note: this video caters for a number of different versions of Pipistrelle with very slightly different interfaces.  Although certain details may vary this will make no material difference to what you are doing).

This example uses the C# component but the principles are identical for an OMI 2.0 compliant component developed in any language.

Please note that the latest version of Pipistrelle has bundled some arguments (Trace Status, Trace Convertors and Launch Debugger) into a single argument, Diagnostics.  This makes no material difference to the tutorial.

Once you have successfully completed this simple composition, the next step is to connect two components in a composition  so we have two components communicating with each other...