OPC Historian .NET Server Toolkit Reference
Server Structure
Send comments on this topic.
Server Development > Server Structure

Glossary Item Box

The HDANSrv OPC HDA server toolkit created OPC Historian server consists of the parts:

Often only the database access classes in the HDAPluginDBANet4.dll .Net plug-in need to be changed to implement a HDA server for a specific user application.

The provided sample implementation is tested for OPC HDA 1.2 compliancy. It reads the data from CSV text data files, with a file for each item.

 

 

 

Error Handling

The database access is done in methods in the HDAPluginDBANet4.dll  layer (user layer). These methods handle access for a single item, while the HDA client may make calls for data of multiple items. The HDAPluginNet4.dll layer (base layer) makes calls into the user layer in a loop for every requested item.
Errors detected in the database access are reported to the base layer by throwing a HDAException with an OPC HResult error code. The base layer catches the exception and returns the error code to the client in the result data of the appropriate item.
All methods that return an array of data are handled this way.
The base layer doesn't catch exceptions for methods with an error code result.

 

 

 

 

Copyright ©2004-2019 Advosol Inc. All Rights Reserved.