The interface is exposed through the file SCSRUNLib.dll which is located in the CX-Supervisor installation directory. In order to use the interface classes you must first add a reference to it in your project and then insert an appropriate using or Imports declaration in your class.
Page 9
Referencing the DLL SECTION 1 Introduction...
VB .NET SECTION 2 Examples SECTION 2 Examples These code snippets are provided as an example of how to use the CX- Supervisor .NET Interface. VB .NET ' declare variables CErrorMngtClass errorMngr = new CErrorMngtClass(); object list; ' get list of errors errorMngr.GetErrorLog(out list);...
This method sets a point to a specified value. In circumstances where the point can not be set to a value (i.e. More than allowed maximum) the value returned in the retVal parameter will differ from that specified and represent the actual value the point was set to.
The current value of the point 3-1-8 BrowsePoints This method retrieves a filtered list of the points contained within a CX- Supervisor application. BrowsePoints(ByVal szFilter As String, ByVal szGroup As String, ByVal vtDataTypeFilter As UShort, ByRef pPoints As Object)
Receives a string error message 3-2-2 Restart Causes the CX-Supervisor runtime to be restarted. If a path to a .SR2 file is specified then this is run upon restart. Restart(ByVal szFile As String) Parameters Description szFile Optional path of the SCS application to run.
Name of the device pStatus Receives the status of the device 3-2-6 GetAppId Returns a App ID string that can be used to identify the instance of this runtime. GetAppId(ByRef pAppId As Object) Parameters Description pAppId Receives the App ID...
ListAlarmGroups(ByRef pGroups As Object) Parameters Description pGroups Receives an array of strings representing the names of all the alarm groups 3-3-2 ListAlarms Retrieves a list of all the alarm contained within the given alarm group. ListAlarms(ByVal szName String, ByRef pAlarms Object)
3-3-7 GetAlarmLog This method provides the ability to get a list of all the alarm log entries. The returned array strings each delimitated by tabs will provide time, message and status information. The list matches the order of entries in the log.
Array of objects representing the list of script arguments retVal Returned output parameters 3-4-2 ListScripts Retrieve a list of all the project level scripts contained within a CX-Supervisor application. ListScripts(ByRef pScripts As Object) Parameters Description pScripts Receives an array of strings representing the names of all the...
Revision history Revision history A manual revision code appears as a suffix to the catalog number on the front cover of the manual. Cat. No. W15E-EN-01 The following table lists the changes made to the manual during each revision. The page numbers of a revision refer to the previous version.
Need help?
Do you have a question about the CX-SUPERVISOR 3.1 - NET INTERFACE and is the answer not in the manual?
Questions and answers