SWTB_Banner_Left_LogoOnly

Using OPC DA with Visual Studio and
Visual Studio.NET - Code Samples

clearpixel

Checkout and Complete Your Order

SWTB_7Button_BlueLine

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.

OPCClient_ExctendedScreenshotOPC 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.

OPCClient_AutomationWrapperOPC 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)

    OPCClient_ShellScriptingScreenshotDescription: 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

OPCServer_CustomServerScreenshotOPC 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:

 

 

OPCClient_OPCWebServiceScreenshotOPC 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.

 

 

 | HOME  | PRODUCTS & SERVICES  | PRODUCT SUPPORT  | ABOUT US  | ACCOUNT SERVICES  | SEARCH

P: 1-888-665-3678 (US-Sales) or 704-849-2773 (Support & International), F: 704-849-6388
148A East Charles Street, Matthews, North Carolina, USA 28105
Copyright Software Toolbox, Inc., 1996-2008, All Rights Reserved Worldwide.