Three. Superio two-time development process

Source: Internet
Author: User

1.1 Two-time development flowchart

1.2 Referencing related components

Find the "development package" and refer to the related components inside. Such as:

1.3 Development Device Driver Module 1.3.1 Development Send protocol Driver

Inherit the SuperIO.Device.DeviceSendProtocol interface, overwrite the related FUNCTIONXX interface function, carry on the data packing, "XX" represents 16 binary data, For example: The FUNCTION31 function is called by this.SendProtocol.GetSendCmdBytes (addr, new byte[] {0x32}, NULL, FALSE) function.

interface functions can correspond to interface functions in the receive protocol.

1.3.2 Development Receive Protocol driver

Inherit the SuperIO.Device.DeviceReceiveProtocol interface, overwrite the related FUNCTIONXX interface function, carry on the data packing, "XX" represents 16 binary data, For example: The FUNCTION31 function is called via the this.ReceiveProtocol.GetAnalysisData (data, NULL,-1) function.

interface functions can correspond to interface functions in the Send protocol.

1.3.3 parameter data, real-time data persistence

You can inherit the SuperIO.Device.DeviceParameter and SuperIO.Device.DeviceRealTimeData classes, add new properties to the subclass, override the Saveserializepath property to specify the path to save the data, serialize and deserialize To save and get data.

Two times developers can SuperIO.SerializeOperation.SerializeOperation types to customize data persistence classes.

1.3.4 Development Run device driver

Inherit the SuperIO.Device.RunDevice1 abstract class, overriding the corresponding function interface to complete the corresponding function.

See the following development examples for specific function descriptions.

1.3.5 Create ContextMenu Menu

The context menu is displayed through the ShowContextMenu function of the device interface, which is displayed when you right-click in the list of software platforms.

1.4 Developing the Graphics display module

The graphical display interface inherits both the form form class and the SuperIO.Show.IGraphicsShow interface for displaying forms and driving data.

Different data can be integrated into an interface to display, viewing more intuitive and convenient.

1.5 Developing data-out modules

For the same type of device, without changing the device driver module, output different formats of data, more for interfacing with other integrated systems.

1.6 Development Service Module

Here you can develop a variety of services for devices, platforms, such as: the platform after the acquisition of data information uploaded to the service center, etc., the use of such interface interface application is more extensive.

1.7 Debug Driver, module

You can inherit the MainForm form, invoke the Debug interface, and debug in the case of an interface;

Yes, through Debugdevice. Getdebuginstance () Gets a debug instance and debugs without an interface.

1.8 Mounting Driver, module

Run the ConfigTool.exe Configuration tool to mount the developed drivers and modules. Such as:

Author qq:504547114

QQ Group: 54256083

Official website: http://www.bmpj.net

Source Article address: http://www.bmpj.net/index.php?m=article&f=view&id=3

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

Three. Superio two-time development process

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.