Model review and simulation > SySim- SysML model execution > Modeling a SySim model execution > Including PTC provided SySim control blocks in a SySim simulation scenario (SySim)
Including PTC provided SySim control blocks in a SySim simulation scenario (SySim)
PTC provides some SySim Control Blocks that are generated as input and output controls for the Visual Basic form that is generated for the SySim model execution. These controls include the Graph, Knob, LedBulb, LedDisplay, Meter, NumericSlider, PushButton, SevenSegmentDispaly and Switch SySim control blocks.
For more information about the PTC provided SySim Control Blocks, refer to PTC provided SySim control blocks.
To include a PTC provided SySim control block in a SySim simulation scenario:
1. Expand the SySim Profile package, expand the SySim ControlLibrary package, and locate the provided SySim Control Block that you want to use.
The following input and output controls are available:
2. Open the Internal Block Diagram you created for the SySim Simulation Scenario.
3. Drag the SySim Control Block you want to use to the Internal Block Diagram (a Block Property is created).
4. Set a name for the Block Property, ensuring that the name does not begin with a number.
5. If you want a tooltip to appear for the control that is created for the Block Property in the SySim model execution, set the Description property of the Block Property to the tooltip you want to appear.
6. On the diagram, right-click the Block Property, and select Populate > Nodes > Full Ports.
7. On the diagram, right-click the Block Property, and select Populate > Nodes > Proxy Ports.
8. On the diagram, right-click the Block Property, and select Populate > Nodes > Flow Ports.
Note that when the control is generated, you may have to set up properties of the control in Visual Basic. For more information about the PTC provided SySim Control Blocks, see PTC provided SySim control blocks .
After adding PTC provided controls to the SySim Simulation Scenario, you can create your own SySim Control Blocks and add those to the Internal Block Diagram. See Creating your own SySim control blocks to model controls and behavior.