transsecscriptingmethodlist
This is an old revision of the document!
Table of Contents
List of Common TransSECS Scripting Methods
This is a quick reference to the methods in the SECS/GEM (TransSECS) API to do common operations on the tool or host instances and their ids (SVIDs,DVIDs,ECIDs,CEIDs, and ALIDs). More extensive examples can be found using the wiki search (search for the method name for more examples). Short examples below are highlighted in a “code” box.
Common Declarations
Be sure to declare the classes used from the API so you can reference these by name in the code.
var TransSecsController = Java.type('com.ergotech.transsecs.secs.TransSecsController');
TransSECSController
TransSECSController is used to get the single running tool or host instance:
TransSecsController.getSingleController()
tool = TransSecsController.getSingleController();
with the tool instance you can do these operations:
status = tool.getWrapper(1).toString(); //get the connection status of the tool for display gemHandler = tool.getGemHandler(); //get the gemHandler to access ids and data sources
GemHandler
With the gemHandler you can access the id servers in the tool to set or get values
eventServer = gemHandler.getServerForName("CEID.STARTED"); //get the server for an event id (CEID) by name vidServer = gemHandler.getServerForName("VID.ProcessState"); //get the the server for a vid by name
transsecscriptingmethodlist.1731872954.txt.gz · Last modified: by wikiadmin
