OPCDA.NET Reference Manual
OPCDA.NET New Project Template
Send comments on this topic.
OPCDA.NET Client Component > Application Development > Visual Basic .Net > OPCDA.NET New Project Template

Glossary Item Box

Use the VB Project Wizard for simplified creation of a OPC client Visual Basic Windows application.

The Wizard creates a VB Windows application project with small sample code. The sample code browses the installed OPC servers, connects to the selected server and browses the server's items.

Within minutes you have a custom client application that connects to your OPC server.

 

Action Description  

 

Project Creation

 

1) Start Visual Studio and select File - New - Projects
2) select Project Type Visual Basic and select the OPCDA.NET Client template
3) Enter Project Name and Location, then click OK
The project is created and the small sample code can be compiled and run.

 
Sample Code The wizard created sample code contains only the server access features selected in the GUI. This makes the code easy to understand.

 
OPCDA.NET Assembly The wizard copies the OpcDaNet.dll Wrapper assembly into the project directory.
The project works with this version of the wrapper DLL even if other projects use a different version.

To upgrade the project to a new version of the Wrapper assembly you need to:
- delete the current OpcDaNet.dll reference
- add a reference to the new OpcDaNet.dll file (the file is copied into the project folder)

 

 
Application Configuration See the provided VB sample application for an example on how to use the AppReader class for application specific configuration handling.

 
Deployment To distribute the application you need to copy the files from the BIN subdirectory:
- application.EXE
- application.EXE.CONFIG ( if you use AppReader configuration
- OPCDANET.DLL

 

Copyright © 2002-2018 Advosol Inc. All Rights Reserved.