Customization > SySim- SysML model execution > Modeling a SySim model execution > Setting up a model to work with PTC ThingWorx (SySim)
  
Setting up a model to work with PTC ThingWorx (SySim)
Preparing a SysML model for SySim
Modeling a SySim model execution:
Creating a SySim simulation scenario
Including SysML model blocks in a SySim simulation scenario
Including PTC provided SySim control blocks in a SySim simulation scenario
Creating your own SySim control blocks to model controls and behavior
Including your own SySim control blocks in a SySim simulation scenario
Defining SySim control block and SysML model block interaction
Setting up a model to work with PTC ThingWorx
Generating and building a SySim model execution
Working with a SySim model execution
If you want your SySim model execution to work with ThingWorx, you must set up the model accordingly.
Important: You will have to apply the SySim Stereotypes to some item types through the Property Pages: On the Items tab, select Stereotypes in the Show Associated list, and then click the Link button.
To set up a model to work with PTC ThingWorx:
1. For each SySim Simulation Scenario that you want to work with ThingWorx:
a. Apply the «SySim TWSimulator» stereotype to the SySim Simulator Block.
b. Open the Property Pages of the Block, click the SySim TWSimulator tab, and set the tagged values of the Tag Definitions as required. Tell me more...
2. For each SySim Control Block that you want to be available as a Remote Thing in ThingWorx mashups:
a. Apply the «SySim TWRemoteThing» stereotype to the SySim Control Block.
b. Open the Property Pages of the Block, click the SySim TWRemoteThing tab, and set the tagged values of the Tag Definitions as required. Tell me more...
3. If you want the value of a Block Property or output port to be available to ThingWorx mashups:
a. Apply the «SySim TWRemoteProperty» stereotype to the Block Property or output port.
b. Open the Property Pages of the Block Property or output port, click the SySim TWRemoteProperty tab, and set the tagged values of the Tag Definitions as required. Tell me more...
4. For each service (Operation) that you want to be able to trigger from the ThingWorx server:
a. Apply the «SySim TWRemoteService» stereotype to the SySim Block Operation.
b. Open the Property Pages of the Operation, click the SySim TWRemoteService tab, and set the tagged values of the Tag Definitions as required. Tell me more...
5. For each service parameter for which you want to force a ThingWorx type mapping:
a. Apply the «SySim TWServiceParameter» stereotype to the Operation Parameter.
b. Open the Property Pages of the Parameter, click the SySim TWServiceParameter tab, and set the tagged values of the Tag Definitions as required. Tell me more...
6. For each SysML ValueType (DataType) and Interface Block item for which you want to generate a ThingWorx Data Shape:
a. Apply the «SySim TWDataShape» stereotype to the SysML ValueType (DataType) or Interface Block.
b. Open the Property Pages of the SysML ValueType (DataType) or Interface Block, click the SySim TWDataShape tab, and set the tagged values of the Tag Definitions as required. Tell me more...
7. For each member of a SysML ValueType (DataType) and Interface Block item for which you are generating a ThingWorx Data Shape:
a. Apply the «SySim TWDataShapeField» stereotype to the SysML ValueType (DataType) or Interface Block member.
b. Open the Property Pages of the SysML ValueType (DataType) or Interface Block member, click the SySim TWDataShapeField tab, and set the tagged values of the Tag Definitions as required. Tell me more...