"Industrial serial and network software Communication Platform (Superio) tutorial" six. Two-time development export Data driven

Source: Internet
Author: User

Superio Download: http://pan.baidu.com/s/1pJ7lZWf1.1 The role of the Export data interface

In the Data Integration System project, either self-integration of other manufacturers of equipment, or other manufacturers to integrate their own home devices, in the absence of uniform standards, there will be a variety of integrated data format. In order to satisfy this kind of scene, specially designed the interface for the output data of the device, the developer can inherit the interface, the device will automatically transfer the data to the interface after processing the data, and it can be output according to the specified data format.

1.2 Interface Function Description

Development of the device output interface, primarily taking into account the output of various data formats in the integration process or in the integration process. The SuperIO.Export.IExportData interface needs to be inherited, and the interfaces include:

1) ThisKey

Returns the form ID, and unique, if the same form exists, the form is not displayed again.

2) Thisname

The form name.

3) Updatedevice

Updates the device data, receiving the device Ondeviceobjectchangedhandler event incoming object instance.

4) Removedevice

Remove the device and call this function interface when the device is deleted.

5) Dispose

Frees the resource function.

6) formatdatastring

Data format interface functions. Can not be used.

1.3 Developing and exporting data-driven

1) Add a reference to the Superio component.

2) Create a new class, Inherit the SuperIO.Export.IExportData interface, and implement the interface functionality.

3) The Updatedevice interface is implemented to parse the object and output the formatted data.

1.4 Debugging export data-driven

Interface mode test is a form interface, must inherit the "Superio.ui." MainForm "class,

and set the software platform to debug mode "SuperIO.Device.DebugDevice.IsDebug = true;" In the code.


Initializes the instance in Form_Load, and loads the debug graphics display module, primarily creating an instance, such as: this. Debugexportdata ((SuperIO.Export.IExportData) _export) statement. Such as:


1.5 Mount Export Data driven

In the "Industrial serial and network software communication platform _superio" directory found in the "ConfigTool.exe" application, select the "Export Data Configuration" tab, click on the "Mount Export" button to attach the exported data driver module just developed to the platform. Such as:


1.6 Running under the software platform

The Platform software detects whether the exported data instance is mounted in the configuration file when it is launched, and 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. You should restart the platform software after you have configured the tool to add or delete operations to the exported data instance.

Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.

"Industrial serial and network software Communication Platform (Superio) tutorial" six. Two-time development export Data driven

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.