Customization > SySim- SysML model execution > Troubleshooting > Troubleshooting (SySim)
  
Troubleshooting (SySim)
If you do not find the answer to your problem in this topic, please see the Known Issues section in the Modeler Release Notes.
SySim isn't generating an item that is included in the SySim Simulation Scenario
This problem can be caused by the item not being stereotyped by the appropriate SySim Stereotype. If this is the case, apply the appropriate Stereotype to the item.
No SySim components are appearing in the Visual Studio Toolbox pane
The SySim components do not appear in the Toolbox until the SySim model execution application has been built the first time.
If you have generated the SySim model execution the first time but have not built the SySim model execution application yet, build the SySim model execution application to make Visual Studio add the SySim components to the Toolbox pane.
SySim is generating code for a Control Block that has been removed from the model
This problem can be caused by generating a SySim Control Block, adding its associated control to the SySim model execution form, and then removing that SySim Control Block from the model. In these circumstances, when the SySim model execution form is reverse engineered to the model, the details of now deleted SySim Control Block are reverse engineered to the model and those details are then generated again.
To resolve this problem, from SySim click the Repair Missing Control Errors button.
A port is not declared in the Visual Basic project
If a port is not declared in your Visual Basic project, it may be due to the port not being stereotyped by the «SySim OutputPort», «SySim InputPort» or «SySim InputOutputPort» stereotype. If this is the case, you must apply the appropriate Stereotype to the port.
Important: You must apply the Stereotype to the underlying port; the port on the SySim Simulation Scenario's Internal Block Diagram maybe a redefinition of the underlying port.
To determine whether a port on the SySim Simulation Scenario's Internal Block Diagram is a redefinition:
Right-click the port, point to Find, and then click In Package Browser.
If Modeler finds the port in the Package pane, the port is not a redefinition and you can apply the Stereotype to the port on the SySim Simulation Scenario's Internal Block Diagram.
If Modeler displays a message stating 'Item not found in Package browser', the port on the SySim Simulation Scenario's Internal Block Diagram is a redefinition and you must locate the port's underlying port.
To locate a redefinition's underlying port:
1. On the SySim Simulation Scenario's Internal Block Diagram, select the port's owning Part.
2. On the Part's Property Pages, click the Data Type tab.
3. Click the Properties button, to open the type's Property Pages.
4. Right-click the background of the Property Pages, point to Find, and then click In Package Browser.
5. Expand the SySim Control Block, and then locate the underlying port.
You can then right-click the underlying port, point to Links > Stereotypes, and then click the appropriate command for applying the «SySim OutputPort», «SySim InputPort» or «SySim InputOutputPort» stereotype.
I cannot record a log of the SySim model execution
To record a log of the SySim model execution to a Microsoft Excel spreadsheet, Microsoft Excel must have the .NET Programmability Support option installed.
To see if Microsoft Excel has the .NET Programmability Support option installed:
1. Open the Windows Control Panel.
2. Click the Uninstall a Program option.
3. Select the Microsoft Office entry, and then click Change.
4. Expand the Microsoft Office entry, and then expand the Microsoft Excel entry.
5. If the .NET Programmability Support option is installed, close the window.
6. If the .NET Programmability Support option is not installed, right-click Run From My Computer, and then click Continue.