Quantcast
Viewing all articles
Browse latest Browse all 1794

Migrating from EasyOPC.NET 5.2 to OPC Studio 2024.1 - by: tlaford

I am trying to migrate my code from an antique 2012 version (EasyOPC.NET 5.2) to the modern version (OPC Studio 2024.1) and I could use a little help.

My project is written using Visual Studio 2017 in Visual Basic with .Net Framework 4.7.2. It subscribes to a number of tags on multiple machines and when a tag changes value the program receives a EasyDAItemChangedEvent

I have removed the reference to the old OpcLabs.EasyOpcClassic and added references to the following libraries:
  • OpcLabs.BaseLib
  • OpcLabs.EasyOpcClassic
  • OpcLabs.EasyOpcClassicComponents
  • OpcLabs.EasyOpcClassicCore

I have changed the OpcLabs.EasyOpc.DataAccess.EasyDAItemChangedEventArgs to OpcLabs.EasyOpc.DataAccess.OperationModel.EasyDAItemChangedEventArgs

I updated Timeouts and HoldPeriods from EasyDaClient to EasyDaClient.InstanceParameters

I updated State and ItemDescriptor from EasyDAItemChangedEventArgs to EasyDAItemChangedEventArgs.Arguments

But the following errors still remain:
  1. UpdateRates is not a member of EasyDaClient
  2. Reference required to assembly 'Microsoft.Extensions.Configuration.Abstractions, Version=6.0.0.0, ...' containing the type 'IConfiguration'.
  3. WaitingForInitialData is not a member of DAQuality
  4. ErrorCode is not a member of EasyDAItemChangedEventArgs

Here are some code snippets where the errors occur:


Could someone offer any insight into how to handle these remaining compile errors?

Viewing all articles
Browse latest Browse all 1794

Trending Articles