|
Code Samples from Webcast: Unleashing the Power of OPC Developing custom business and manufacturing software applications
with OPC & Visual Studio .NET
Now that you've attended this Webcast or watched the Webcast Recording and are ready to get started on your project, here are some more resources to help you along the way.
Download Presentation (PDF - 4 Mb)
Code/Application Examples: The links below provide you with the code and/or Visual Studio/Visual Studio.NET projects for the exact examples that were used in the
webcasts. Each of the examples is easily modified to use with any OPC DA server. We have included links to download and install the OPC DA server sample that each client code sample expects to
connect to so that you can get up and going quickly and have success.
Have questions or need help after installing the samples? Submit your questions at our online support center. Just
be sure and reference that you're working with the examples from the OPC with Visual Studio Webcast so we can get the right team member to help you.
OPC DA Client using .NET Extenders - sample download (375 Kb zip
file)
Description: This Visual Studio 2005 project (will also work in VS 2008) example shows the use of .NET extenders to add OPC client capabilities
to any .NET Component how to read/write data from OPC Servers.
Prerequisites:
- OPC Extender.NET - click to download
- TOP Server OPC Server - click to download. If you want to modify
the code for your OPC server you may do so. The sample can be used with any servers such as Kepware, Matrikon, INGEAR, and others. If you choose to use the TOP Server, simply install
accepting the defaults. When finished, launch the OPC Server but do not make any configuration changes.
OPC DA Client using .NET Wrapper Class - sample download (94
Kb zip file)
Description: This Visual Studio 2005 project (will also work in VS 2008) was used in the webcast to connect to an OPC DA Server and read/write data.
Prerequisites:
- SLIK-DAC OPC DA .NET Wrapper Class - click to download
- TOP Server OPC Server - click to download. If you want to modify
the code for your OPC server you may do so. The sample can be used with any servers such as Kepware, Matrikon, INGEAR, and others. If you choose to use the TOP Server, simply install
accepting the defaults. When finished, launch the OPC Server but do not make any configuration changes.
OPC DA Client using Scripts/Batch Job Files - sample download (6 Kb zip file)
Description: These VB scripts were used to run simple
command line jobs to perform read and write functions during the web cast.
Prerequisites:
- OPC Web Client Toolkit - click to download
- When installing the OPC Web Client, it is recommended to simply perform a complete installation.
- A simulation OPC Server is installed with the OPC Web client, which some of the scripts make use of. These scripts make use of this OPC Server:
- LogValueToFile.vbs
- showValue.vbs
- The following scripts take command-line arguments that specify the computer, OPC Server, and the names of OPC Items:
- readBadTag.vbs - reads a non-existent OPC Item from the specified server. Simulates a failure.
- showOne.vbs - displays the value of a single OPC Item
- showMany.vbs - displays the values of multiple OPC Items within the same OPC Server
- writeOne.vbs - writes a value to an OPC Item
OPC DA Server Sample - sample download (91 Kb zip file)
Description: This Visual Studio 2008 sample project was used to build the sample OPC DA Server used in the webcast. If you need a VS2005 version of this please submit a request in our online support center.
Prerequisites:
OPC DA Client via Web Services - sample download (89 Kb zip file)
Description: This Visual Studio 2005 project (will also work in VS 2008) was used to serve up data to web browsers using a web service in the webcast.
Prerequisites:
- OPC Web Client Toolkit - click to download. We recommend doing a full installation of this software.
However, if you choose to customize the installation then please ensure that when installing this software you install the web-service to an IIS server. It does not matter
if the IIS server is on the local computer, or on a remote computer.
- TOP Server OPC Server - click to download. If you want to modify the code for your OPC server you may do so
. The sample can be used with any servers such as Kepware, Matrikon, INGEAR, and others. If you choose to use the TOP Server, simply install accepting the defaults. When finished, launch the OPC Server but do not
make any configuration changes.
|