Open Automation Software
Moving Data From Anywhere to Anywhere
1-303-679-0898

Example Source Code

Download Source Code Examples

If you are are looking for programmatic examples on access configuration, realtime, or historical data refer to the Programmatic Interface section.  The .NET WinForm VB and C# examples below also demonstrate all of these methods.

Web

Web HMI Demo – Web HTML source of online example at www.opcwebhmi.com:
https://www.opcsystems.com/OPC/Examples/html_hmi_demo.zip

Web HMI Image Example – Web HTML source of image example demonstrating how to incorporate graphics in a web application.  See Web HMI Graphics on the step by step instructions:
https://www.opcsystems.com/OPC/Examples/HTML_HMI_ImageExample.zip

Web HMI Basic Examples – Web HTML examples of HMI, trend, and alarm:
https://www.opcsystems.com/OPC/Examples/web_examples.zip

REST API Sample Client (Web) – A sample client that demonstrates how to use JQuery to make calls and receive data from the OAS REST API:
https://www.opcsystems.com/OPC/Examples/WebRESTClient.zip

.NET

.NET Examples Launcher (WPF) – An application that will launch other example applications.
https://www.opcsystems.com/OPC/Examples/OASExamples.zip

REST API Sample Client (WPF) – A sample client that demonstrates how to use .NET and WPF to make calls and receive data from the OAS REST API:
https://www.opcsystems.com/OPC/Examples/WPFRESTClient.zip

Visual Basic WinForm Example Code for realtime data access and all configurations access:
https://www.opcsystems.com/OPC/Examples/Example.zip

C# WinForm Example Code for realtime data access and all configurations access:
https://www.opcsystems.com/OPC/Examples/CSharpExample.zip

WPF Live Data Dashboard – Framework for creating user interface that is persistent between sessions:
https://www.opcsystems.com/OPC/Examples/HMIDashboardProject.zip

Automated HMI – WPF example of automated setup and self adapting client:
https://www.opcsystems.com/OPC/Examples/AutomatedHMI.zip

Tanks Demo – WPF Tanks Demo with graphic, trend, and alarm:
https://www.opcsystems.com/OPC/Examples/WPFTanksDemo.zip

One Click HMI– WPF application that automatically displays all tag values:
https://www.opcsystems.com/OPC/Examples/OneClickHMI.zip

Navigation – WPF example of all WPF HMI controls:
https://www.opcsystems.com/OPC/Examples/Navigation.zip

Conveyor App– WPF example of 3D model:
https://www.opcsystems.com/OPC/Examples/ConveyorApp.zip

WPF Dashboard– WPF application demonstrating common dashboard controls:
https://www.opcsystems.com/OPC/Examples/OPCWPFDashboard40.zip

WPF Radial Gauge– WPF application demonstrating radial gauge:
https://www.opcsystems.com/OPC/Examples/OPCWPFRadialGauge.zip

WPF Radial Gauges– WPF application demonstrating multiple radial gauges:
https://www.opcsystems.com/OPC/Examples/TestRadialGauge.zip

WPF Linear Gauges– WPF application demonstrating multiple linear gauges:
https://www.opcsystems.com/OPC/Examples/TestLinearGauge.zip

Storyboard– WPF application demonstrating storyboard animation:
https://www.opcsystems.com/OPC/Examples/StoryboardTanks.zip

Symbols– WPF application demonstrating use of HMI symbols:
https://www.opcsystems.com/OPC/Examples/SymbolsApp.zip

PLC Simulation– WPF application simulating PLC I/O:
https://www.opcsystems.com/OPC/Examples/OPCSystemsPLC.zip

C# WPF Tabbed application:
https://www.opcsystems.com/OPC/Examples/OPCSystemsQuickStartWPF40CS2.zip

VB WPF Tabbed application:
https://www.opcsystems.com/OPC/Examples/VBOPCSystemsQuickStartWPF.zip

WPF Custom Open Automation Software Tag Browser – Demonstrates adding a tag browser editor to a custom WPF control:
https://www.opcsystems.com/OPC/Examples/WPFCustomOPCSystemsTagBrowser.zip

WinForm Custom Open Automation Software Tag Browser – Demonstrates adding a tag browser editor to a custom WinForm control:
https://www.opcsystems.com/OPC/Examples/WinFormExampleCustomEditorTagBrowse.zip

Save Trend Config – Demonstrates how to Save and Load a trend configuration:
https://www.opcsystems.com/OPC/Examples/SaveTrendConfig.zip

Keyboard Login – Demonstrates how to use Windows On Screen Keyboard to Log in to Open Automation Software:
https://www.opcsystems.com/OPC/Examples/KeyboardLogin.zip

Multi Line Tab – Creating a WPF application with Multiline Tabs:
https://www.opcsystems.com/OPC/Examples/MultiLineTab.zip

Pens Visibility – How to hide and show pen line in an Open Automation Software Trend:
https://www.opcsystems.com/OPC/Examples/PensVisibility.zip

Trend History Select – How to programmatically display historical data on an Open Automation Software Trend:
https://www.opcsystems.com/OPC/Examples/TrendHistorySelect.zip

Content Control – A demonstration of how to use the events in an Open Automation Software Content Control:
https://www.opcsystems.com/OPC/Examples/ContentControl.zip

Alarms Added – How to use the Open Automation Software Alarm control to fire an event for every new alarm and display that alarm:
https://www.opcsystems.com/OPC/Examples/AlarmsAdded.zip

Add Pens – Programmatically Adding Pens to an Open Automation Software Trend (VB):
https://www.opcsystems.com/OPC/Examples/AddPens.zip

Add Pen C Sharp – C# example of programmatically adding pens to an Open Automation Software Trend:
https://www.opcsystems.com/OPC/Examples/AddPensinCSharp1.zip

C Sharp Data Component – C# example of using the Open Automation Software Data Component:
https://www.opcsystems.com/OPC/Examples/CSharpDataComponentExample.zip

Console App – Example of using the Open Automation Software Data Component in a console app:
https://www.opcsystems.com/OPC/Examples/ConsoleApplication1.zip

Tree View Trend – Example of displaying all Open Automation Software Tags in a tree view and adding / removing tags on an OPC Trend Control:
https://www.opcsystems.com/OPC/Examples/TreeViewTrend.zip