In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/01 Report--
Today, I would like to share with you how SuperIO derives data-driven knowledge points. The content is detailed and the logic is clear. I believe most people still know too much about this knowledge, so share this article for your reference. I hope you can get something after reading this article. Let's take a look at it.
1.1 the role of the export data interface
In the data integration system project, either they integrate the equipment of other manufacturers, or other manufacturers integrate their own equipment, in the absence of a unified standard, there will be a variety of integrated data formats. In order to meet such scenarios, an API is specially designed for the device to output data. Developers can inherit the interface. After processing the data, the device will automatically transfer the data to the interface and output the data in the specified data format.
1.2 functional description of the interface
The development of the device output interface mainly takes into account the output of various data formats in the integration project, during the integration process or during the integration process. You need to inherit the SuperIO.Export.IExportData API, which includes:
1) ThisKey
Returns the form ID, and it is unique. If the same form exists, it will not be displayed again.
2) ThisName
Form name.
3) UpdateDevice
Update the device data to receive the object instance passed in by the device OnDeviceObjectChangedHandler event.
4) RemoveDevice
Remove the device, and this function interface is called when the device is deleted.
5) Dispose
Release the resource function.
6) FormatDataString
Data formatting interface function. You don't have to use it.
1.3 Development and export data driver
1) add references to SuperIO components.
2) create a new class, inherit the SuperIO.Export.IExportData interface, and implement the interface function.
3) parse the object through the UpdateDevice interface and output the formatted data.
1.4 debugging export data driver
Interface mode testing has a form interface, which must inherit the "SuperIO.UI .mainform" class.
And set the software platform to debug mode "SuperIO.Device.DebugDevice.IsDebug = true;" with code, as shown in the figure:
Initialize the instance in Form_Load, and load the debug graphics display module, mainly to create an instance, such as: this.DebugExportData ((SuperIO.Export.IExportData) _ export) statement. As shown below:
1.5 Mount and export data driver
In the "industrial serial port and network software communication platform _ SuperIO" directory, find the [ConfigTool.exe] application, select the "Export data configuration" tab, click the "Mount Export" button, and mount the export data driver module just developed to the platform. As shown below:
1.6 run under the software platform
When the platform software starts, it will check whether the exported data instance is mounted in the configuration file. If there is an exported data instance, it will automatically load the instance and run under the platform. Information about the exported data instance is not displayed in the interface. After adding or deleting exported data instances through the configuration tool, you should restart the platform software.
These are all the contents of the article "how SuperIO exports data drivers". Thank you for reading! I believe you will gain a lot after reading this article. The editor will update different knowledge for you every day. If you want to learn more knowledge, please pay attention to the industry information channel.
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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.