runningthegeneratedequipmentsimulator

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
runningthegeneratedequipmentsimulator [2021/08/28 14:55]
wikiadmin
runningthegeneratedequipmentsimulator [2021/09/02 12:38] (current)
wikiadmin
Line 46: Line 46:
 Any file generated by TransSECS GEM Host will work. This file describes the tool and so can be used as a basis to reproduce the behavior of the tool.  Any file generated by TransSECS GEM Host will work. This file describes the tool and so can be used as a basis to reproduce the behavior of the tool. 
  
-This JSON file can be loaded into a bare simulator.  You can use the GEMTool example for this, or download the SimulatorTool from [[https://ergotech.com/files/examples/SimulatorTool.zip|here]] (this is just the GEMTool example with CEIDs and the simulation specific VIDs removed).+This JSON file can be loaded into a bare simulator.  You can use the GEMTool example for this, or download the SimulatorTool from [[https://ergotech.com/files/examples/SimlatorTool.zip|here]] (this is just the GEMTool example with CEIDs and the simulation specific VIDs removed).
  
 Edit the ToolSimulator.conf file in the MIStudioSuite\TransSECS\resources\ToolSimulator folder  Edit the ToolSimulator.conf file in the MIStudioSuite\TransSECS\resources\ToolSimulator folder 
Line 93: Line 93:
 </code> </code>
  
-Change the //Device ID// and //Port// in the file to match the values in your host:+Change the //Device ID// and //Port// in the file to match the values in your host.  You can see what you've set in your host by clicking on the root of the tree.
  
-{{:pasted:20210828-145027.png}}+{{:pasted:20210828-145027.png?0x100}}
  
-by modifying, and uncommenting the appropriate lines:+Modify and uncomment the appropriate lines in the .conf file:
  
 <code> <code>
Line 114: Line 114:
 The simulator should start and you should see your variables and events in the "VID" and "Send Event" dropdown. The simulator should start and you should see your variables and events in the "VID" and "Send Event" dropdown.
  
-{{:pasted:20210828-144539.png}}+{{:pasted:20210828-144312.png}}
  
 Change your "Tool IP Addr" to be //localhost// (or the IP Address of the system on which you are running the simulator).   Change your "Tool IP Addr" to be //localhost// (or the IP Address of the system on which you are running the simulator).  
Line 120: Line 120:
 {{:pasted:20210828-145027.png}} {{:pasted:20210828-145027.png}}
  
-{{:pasted:20210828-144312.png}}+Build your host application, click the SIM/LIVE button and click on a message.  You'll see it connect to the simulator: 
 + 
 +{{:pasted:20210828-150432.png}} 
 + 
 +Choose an event and press the "Send Event" button.  If you have reports attached to the event, choose a VID, change the value, send the event again and you'll see the updated value.
  
 To improve the simulator you will probably need to add some of the tool's host commands and other special messages such as those for recipe handling.  Simply open the SimulatorTool project,add the messages and rebuild. To improve the simulator you will probably need to add some of the tool's host commands and other special messages such as those for recipe handling.  Simply open the SimulatorTool project,add the messages and rebuild.
  • runningthegeneratedequipmentsimulator.1630180527.txt.gz
  • Last modified: 2021/08/28 14:55
  • by wikiadmin