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