OAS Data API

Jump straight to: Data class reference

Overview

The OAS Data API assembly provides a Data class with methods for reading and writing real-time Tag values in the Open Automation Software platform.

The assemblies are provided in two flavors:

  • .NET Standard 2.0 compatible
  • Legacy .NET Framework 4 compatible

Only the .NET Standard versions are available on Nuget.

.NET Standard

Assembly: OASData.dll
Namespace: OASData
Target Framework: .NET Standard v2.0

Nuget

NuGet Package Manager

Install-Package OASIOT.OASData

.NET CLI

dotnet add package OASIOT.OASData

Assembly Reference

You can reference the OAS assemblies directly in your Dotnet project.

Windows: C:\Program Files\Open Automation Software\OAS\Controls\NetStandard\OASData
Linux: <oas_installation_directory>/OAS/Controls/NetStandard/OASData

Usage

C#

using OASData;

var oasData = new Data();

VB

Imports OASData

Dim oasData As Data = New Data()

.NET Framework (Legacy)

Assembly: OPCSystemsDataConnector.dll
Namespace: OPCSystemsDataConnector
Target Framework: .NET Framework v4

Assembly Reference

You can reference the OAS assemblies directly in your Dotnet project.

Windows: C:\Program Files\Open Automation Software\OAS\Controls\NetFramework\OPCSystemsDataConnector
Linux: <oas_installation_directory>/OAS/Controls/NetFramework/OPCSystemsDataConnector

Tips

If you want to move the assemblies out of the OAS installation directory, make sure you also move with it all of the related dependent assemblies in the same folder. By default, Visual Studio will include all of the dependent assemblies in the build output.

Usage

C#

using OPCSystemsDataConnector;

var oasData = new OPCSystemsData();

VB

Imports OPCSystemsDataConnector

Dim oasData As OPCSystemsData = New OPCSystemsData()