OPC Studio User's Guide and Reference
Examples
In This Topic

Introduction

OPC Studio products come with large number of examples, in multiple programming languages and tools.

Some of these examples are  installed with the product, and some are included in the documentation. There is also a huge overlap - many (but not all) examples appear both in the product, and are also listed in the documentation. Examples that were written for the documentation are typically somewhat shorter pieces of code, to illustrate a specific point, and are included in the product installation for convenience. Larger standalone examples ship primarily with the product, but pieces of them has been included in this documentation for easier understanding.

Additional examples can be found in the Knowledge Base.

We are continuously adding new examples, and extending our coverage of programming languages tools. If you think that an example is missing, let us know and we will try to add it.

Examples by Product

Visit the following subchapters for examples related to the product of your interest.

Examples in the Documentation

The various simple examples that are scattered throughout the documentation are all summarily accessible from here.

Only examples that are able to "stand alone", i.e. have a function of their own that can be individually described and demonstrated, are listed. Small code snippets that only form a part of a larger article are not considered for this index.

Examples in the Product and on the Web

Larger examples are installed with the product. Such examples are provided for OPC “Classic” (COM-based) specifications, OPC XML-DA, and OPC Unified Architecture (OPC UA).

The OPC Studio installation contains usage examples in various programming languages. The examples are being updated and enhanced more frequently than the base product, so if you like them, please check for newer builds of OPC Studio from time to time.

Note that the examples are separated between .NET, COM and Python.

For those who want to use the command-line interface, a "Command Prompt From Here" links are installed into example folders that are related to command prompt, such as JScript Examples in WSH, PHP Console Examples, and VBScript Examples in WSH (Windows Script Host). These links allow you to switch from the Windows Explorer to a CMD window with the current directory set to the chosen place, for quick experiments and exploration.

Table of Contents 

See Also

Additional Resources

Knowledge Base

Concepts