VB.Net CTAPI library + example (VS2005)

Anonymous
Anonymous

Using CTAPI from a VB.Net application (Example + reusable VB Class/Library)

Version
1.0

Requirements
Visual Studio 2005 required to write your own application.

Description
This example shows how to define the CTAPI.dll API calls as a 'Class' in a VB.Net (VS2005) environment.

The example also shows how to use this 'Class' to call CTAPI commands from a VB Application.

In order to use this class definition in your own VB.Net application, simply add the 'CTAPIclass.vb' file to your new VB.Net application, and invoke all the CTAPI commands with a "vbCTAPI." prefix. i.e:

vbCTAPI.ctOpen("","","",0) 'Opens a connection to the local SCADA session.

The attached ZIP file contains:
* 'CTAPIclass.vb' - The Class definition, add this to your new VB.Net application
* 'wbCTAPIvbnet_FullVBNetSource.zip' - Full VB.Net source for example project. Include CTAPI Dlls in the 'DEBUG' folder so debugging will work.
* 'wbCTAPIvbNet.exe' - Compiled example - Needs to be place in BIN folder of Citect to obtain access to CTAPI.dlls
* 'wbCTAPIvbnet_Test_SFX.exe' - Compiled example, packaged in a SFX containing all required CTAPI Dlls. Allows running of app on any PC.
Note: This simple example application is hard-coded to connect to a local SCADA instance.

Author
Warwick Black

Submitter
Warwick Black

Attachments