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 secondary development of graphical display interface by SuperIO

2025-01-30 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

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

This article mainly introduces the relevant knowledge of what is the method of SuperIO secondary development of graphical display interface, the content is detailed and easy to understand, the operation is simple and fast, and has a certain reference value. I believe you will gain something after reading this SuperIO secondary development graphical display interface method. Let's take a look at it.

1.1 the function of graphic display interface

It is used to display the data of the collection terminal equipment, and the data of different types of devices can be integrated and displayed on different interfaces in many forms. It is convenient to provide users with a variety of more friendly man-machine interface.

1.2 functional description of the interface

Development equipment display container generally refers to the form, mainly in order to meet the display needs of different users, and can be flexibly configured, need to inherit the SuperIO.Show.IGraphicsShow interface. Interfaces include:

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) GraphicsShowClosedHandler

This event is called when the form is closed. There is no close event that comes with the form. The main consideration is that it is not a form, which is not generally the case.

6) MouseRightContextMenuHandler

Mainly use to display the context menu.

7) Dispose

Release the resource function.

For a specific reference example, see: DeviceShowUI project example.

1.3 develop a graphical display interface

1) add references to SuperIO components.

2) create a new Form form, inherit the SuperIO.Show.IGraphicsShow interface, and implement the interface function.

3) parsing the object through UpdateDevice interface, and displaying the data after parsing the object.

1.4 debugging graphic display module

Interface mode testing has a window 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.DebugGraphicsShow ((SuperIO.Show.IGraphicsShow) _ showUIForm) statement. As shown below:

1.5 Mount graphic display module

Find the [ConfigTool.exe] application under the "Industrial Serial Port and Network Software Communication platform _ SuperIO" directory, select the [Interface View configuration] tab, click the [Mount Interface] button, and mount the graphic display module just developed to the platform. As shown below:

1.6 display the interface in the software platform

Run the [SuperIO_Run.exe] application, and the graphical display module just mounted will be displayed in the Interface View menu. Clicking this menu item will display the corresponding interface view.

This is the end of the article on "what is the method of SuperIO secondary development of graphical display interface". Thank you for reading! I believe that everyone has a certain understanding of the knowledge of "what is the method of SuperIO secondary development of graphical display interface". If you want to learn more knowledge, you are welcome to follow 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.

Share To

Internet Technology

Wechat

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

12
Report