Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What is the method of integrating Golden real-time database with ServerSuperIO?

2025-03-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/01 Report--

This article mainly explains "what is the method of ServerSuperIO integrating Golden real-time database". Interested friends may wish to have a look. The method introduced in this paper is simple, fast and practical. Next let the editor to take you to learn "what is the method of ServerSuperIO integrating Golden real-time database"?

17. Support real-time database and save test point data with high concurrency

17.1 Overview

Real-time database system is the background supporting software for the development of real-time control system, data acquisition system and so on. A large number of real-time database systems are used for control system monitoring, advanced control and optimal control, and provide real-time data services and a variety of data management functions for enterprise production management and scheduling, data analysis, decision support and remote online browsing. Real-time database has become the basic data platform of enterprise informatization, which can directly collect and obtain all kinds of data in the process of enterprise operation, and transform it into effective public information for all kinds of business. to meet the needs of real-time information integrity, consistency and security sharing among enterprise production management, enterprise process monitoring and enterprise management. It can establish an information communication bridge between enterprise automation system and management information system.

One of the important characteristics of real-time database is real-time, including real-time data and real-time transactions. Real-time data is the update cycle of IO data on the spot, and the real-time performance of data must be taken into account. The real-time performance of general data is mainly restricted by field equipment, especially for some older systems. Real-time transaction refers to the speed at which the database processes its transactions. It can be event-triggered or timing-triggered. Event trigger is that once the event occurs, it can be dispatched immediately, and this kind of event can be dealt with immediately, but it consumes system resources; timing trigger is to obtain the scheduling right within a certain time range.

The system framework is shown in the following figure:

As the communication framework of the Internet of things, ServerSuperIO is the key node of the systematic construction of the system, and it also needs the support of background persistence service. It is ideal to collect the point data of the sensor in real time and use the real-time database to store the point data in time series.

Storage operations are performed through the persistence API, as shown in the following figure:

The structure is shown below:

ServerSuperIO interfacing with real-time database

The use process is relatively simple, in the process of secondary development of the device driver, inherit the dynamic interface to realize the custom attribute to save the real-time data; through the configuration work, the device driver maps the custom attribute to the Tag tag, and then sets the persistence; after the device communication, the device driver will update the real-time data to the real-time database.

17.2.1 inherit the dynamic interface and set the persistence

The dynamic interface of temporarily storing data in the device driver can define the data such as traffic or signal as the corresponding attribute name, and update the corresponding attribute after each data collection.

The code is as follows:

123456789101112public class DeviceDyn:DeviceDynamic {public DeviceDyn (): base () {} public override string GetAlertState () {throw new NotImplementedException ("No alarm message");} private float Flow {set; get;} private float Signal {set; get;}}

After developing the dynamic data attributes, set this kind of persistence in the initialization of the device driver, as follows:

123456789101112public DeviceDriver (): base () {_ devicePara = new DevicePara (); _ deviceDyn = new DeviceDyn (); / / persist dynamic data with real-time database _ deviceDyn.InitDataPersistence (new RDBPersistence ()); _ protocol = new DeviceProtocol (); _ contextMenuComponent= new ContextMenuComponent ();}

Of course, device driver development includes more than that, as detailed in previous tutorials.

17.2.2 add device drivers

Run the ServerSuperIO.Tool.exe tool and click the basic configuration menu. Configure the developed device driver set in the configuration tool to prove that the current device driver can run on the platform, as shown below:

What is configured above is the basic information of the assembly, which can be used by multiple device driver instances. The device driver runs under the platform and needs to be instantiated (specific communication examples), so it is necessary to mount the device driver. Mounting process: create a service instance and mount the runnable device instance under the service instance. As shown below:

17.2.3 configure tag attribut

Run the "ServerSuperIO.Tool.exe" tool and click the "tag configuration" menu to map the attributes of the runnable device-driven dynamic data interface mounted on the device to the Tag tag. As shown below:

17.2.4 install real-time database

Download the real-time database installation package and secondary development package .rar (download address) and install it. After installation, there are service manager and enterprise manager, as shown below.

17.2.5 configure real-time database parameters

Run the "ServerSuperIO.Tool.exe" tool, click the basic configuration menu, and start the OPC Server service. As shown below:

17.2.6 run the program

You can run the host program of "ServerSuperIO.Host.exe" or "ServerSuperIO.UI.exe", or you can run the main program of your own secondary development.

17.3 points for attention

The name of the ServerSuperIO service instance is the point table name of the real-time database. When configuring the service instance name, use characters and numbers as much as possible.

At this point, I believe you have a deeper understanding of "what is the method of ServerSuperIO integrating Golden real-time database". You might as well do it in practice. Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report