bdeCreateSimulationObject

Creates a new simulation object from a diagram.

Syntax

simObject = bdeCreateSimulationObject(filename, rootDiagram)

Inputs

filename
The filename of the newly created simulation.
Type: string
rootDiagram (Optional)
The diagram to use for the new simulation.
Type: BDE diagram

Outputs

simObject
The newly created simulation object.
Type: hwscpSimulation

Examples

Create a new simluation object:

          diagram = bdeGetCurrentDiagram();
          simObject = bdeCreateSimulationObject('newSimulation', diagram);
        

          
            simObject = hwscpSimulation