Automatic display picture conversion method and system

By extracting and mapping element information and attributes of the display screen, automatic conversion from the first platform to the second platform is realized, solving the coupling problem between non-security display screen design and DCS supply products, and improving the picture conversion Efficiency and accuracy.

CN119167889APending Publication Date: 2024-12-20SHANGHAI NUCLEAR ENGINEERING RESEARCH & DESIGN INSTITUTE CO LTD +1
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202411242217.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-05
Publication Date
2024-12-20

AI Technical Summary

Technical Problem

In the prior art, there is a weak coupling between the non-safe display screen design and the DCS supply products, resulting in human errors caused by manual drawing, which is inefficient, and the design and configuration process are separated and cannot be coordinated, resulting in poor configuration. Accurate and multiple iterations.

Method used

By extracting the element information and attributes in the file to be converted, preset the element mapping rules, determine the graph macro encoding, and integrate it into the converted file, automatic conversion and display from the first platform to the second platform is realized, and manual drawing is avoided , improve efficiency.

Benefits of technology

Automatic picture conversion without manual drawing is realized, which improves conversion efficiency and accuracy, reduces intermediate links, and improves configuration efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119167889A_ABST
    Figure CN119167889A_ABST
Patent Text Reader

Abstract

The invention discloses a display picture automatic conversion method and system. The method comprises the steps of obtaining a to-be-converted file formed by a first platform; extracting all element information and element attributes in the to-be-converted file; determining a graph macro code of each piece of element information in the to-be-converted file; according to a preset element mapping rule, determining an element attribute in a second platform corresponding to each element attribute in the to-be-converted file; integrating all the graph macro codes and the element attributes in the second platform corresponding to the element attributes in the to-be-converted file to obtain a converted file; and carrying out picture display on the converted file through the second platform. A to-be-converted file formed by a first platform can be automatically converted into a file which can be displayed by a second platform, and the file is displayed on the second platform.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field, and in particular to a method and system for automatically switching display images. Background Art

[0002] The statements in this section merely provide background information related to the present invention and do not necessarily constitute prior art.

[0003] The display screen is an important human-machine interface resource in nuclear power plants, which enables operators to correctly and quickly understand the working conditions and status of the power plant and take control actions. In the power industry, non-safety-level display screens are generally designed by design institutes using graphic drawing tools and are handed over to DCS (distributed control system) suppliers for configuration through cross-company capital raising business processes. The most notable features of this working method are:

[0004] 1) There is a weak coupling between the design data and the DCS supply products. The DCS supplier artificially understands the upstream funding, which is partially or fully reflected in the product. The funding process is separated from the supply product development and cannot be coordinated;

[0005] 2) A lot of man-hours are spent on DCS configuration. Due to manual drawing, various human errors are inevitable;

[0006] 3) There are a lot of intermediate iterations during the implementation process, such as clarification and document upgrades. Summary of the invention

[0007] In order to solve the above problems, the present invention proposes a method and system for automatically converting display screens, which can automatically convert a file to be converted formed on a first platform into a file that can be displayed on a second platform, and display it on the second platform.

[0008] To achieve the above object, the present invention adopts the following technical solution:

[0009] In a first aspect, a method for automatically switching a display screen is provided, comprising:

[0010] Obtaining a file to be converted formed by the first platform;

[0011] Extract all element information and element attributes from the file to be converted;

[0012] Determine the graphic macro code of each element information in the file to be converted;

[0013] According to a preset element mapping rule, determine the element attribute in the second platform corresponding to each element attribute in the file to be converted;

[0014] Integrate all the image macro codes and the element attributes in the second platform corresponding to the element attributes in the file to be converted to obtain a converted file;

[0015] The converted file is displayed on the screen through the second platform.

[0016] Furthermore, the element mapping rule describes the correspondence between the element attributes in the first platform and the element attributes in the second platform, and the correspondence between the image macro code and the element information in the second plane.

[0017] Furthermore, when the converted file is displayed on the screen through the second platform, the element information to be displayed on the second platform is first determined according to the image macro code of each element information;

[0018] According to the element attributes in the file to be converted corresponding to the element attributes in the second platform, the element information to be displayed on the second platform is displayed through the second platform.

[0019] Further, according to the preset element mapping rules, an element mapping table is constructed; the element mapping table includes element information in the second platform, image macro coding, element attributes in the first platform, and element attributes in the second platform;

[0020] According to the graphic macro code and element attributes of each element information in the file to be converted, the element information and element attributes to be displayed on the second platform are queried from the element mapping table.

[0021] Furthermore, each element information corresponds to a separate image macro code.

[0022] Furthermore, the element attribute ID is used to represent the element attribute of the element in the file to be converted.

[0023] In the second aspect, a display screen automatic conversion system is proposed, comprising:

[0024] A file acquisition module, used to acquire the file to be converted formed by the first platform;

[0025] The element information extraction module is used to extract all element information and element attributes in the file to be converted;

[0026] A graphic macro code determination module, used to determine the graphic macro code of each element information in the file to be converted;

[0027] A mapping module, used to determine the element attribute in the second platform corresponding to each element attribute in the file to be converted according to a preset element mapping rule;

[0028] A converted file generation module, used for integrating all the image macro codes and the element attributes in the second platform corresponding to the element attributes in the file to be converted, to obtain a converted file;

[0029] The second platform is used to display the converted files on the screen.

[0030] In a third aspect, a computer device is provided, the device comprising:

[0031] a processor adapted to execute a computer program;

[0032] A computer-readable storage medium, wherein a computer program is stored in the computer-readable storage medium, and when the computer program is executed by the processor, a method for automatically switching display screens proposed in the first aspect is implemented.

[0033] In a fourth aspect, a computer-readable storage medium is proposed, wherein the computer-readable storage medium stores a computer program, and the computer program is suitable for being loaded by a processor and executing a display screen automatic conversion method proposed in the first aspect.

[0034] In a fifth aspect, a computer program product is proposed, wherein the computer program product includes a computer program, and when the computer program is executed by a processor, the method for automatically switching display screens proposed in the first aspect is implemented.

[0035] Compared with the prior art, the present invention has the following beneficial effects:

[0036] The present invention proposes a method and system for automatically converting a display screen. The method establishes a mapping relationship between element attributes in a first platform and element attributes in a second platform, and a mapping relationship between a graphic macro code and element information in a second plane by presetting element mapping rules in advance. When converting a file to be converted in the first platform to be displayed in the second platform, firstly extract all element information and element attributes in the file to be converted. Then, determine the graphic macro code corresponding to each element information. According to the element mapping rules, determine the element attributes in the second platform corresponding to the element attributes in the file to be converted. Then, form a converted file with the graphic macro code and the determined element attributes in the second platform. Display the converted file through the second platform. Through the simultaneous conversion of element information and element attributes, it is ensured that the screen displayed by the converted file is the same as the screen displayed by the file to be converted, and no manual drawing is required, thereby improving the efficiency of screen conversion.

[0037] Advantages of additional aspects of the present invention will be given in part in the following description, and in part will become obvious from the following description, or will be learned through practice of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS

[0038] The drawings in the specification, which constitute a part of the present application, are used to provide further understanding of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute improper limitations on the present application.

[0039] Figure 1 A flow chart of a method for automatically switching display images disclosed in an embodiment;

[0040] Figure 2 This is an example of a shape sheet of a title element disclosed in an embodiment. DETAILED DESCRIPTION

[0041] The present invention will be further described below in conjunction with the accompanying drawings and embodiments.

[0042] It should be noted that the following detailed descriptions are illustrative and are intended to provide further explanation of the present application. Unless otherwise specified, all technical and scientific terms used herein have the same meanings as those commonly understood by those skilled in the art to which the present application belongs.

[0043] It should be noted that the terms used herein are only for describing specific embodiments and are not intended to limit the exemplary embodiments according to the present application. As used herein, unless the context clearly indicates otherwise, the singular form is also intended to include the plural form. In addition, it should be understood that when the terms "comprise" and / or "include" are used in this specification, it indicates the presence of features, steps, operations, devices, components and / or combinations thereof.

[0044] In the absence of conflict, the embodiments of the present invention and the features of the embodiments may be combined with each other.

[0045] Example 1

[0046] In this embodiment, a method for automatically switching display images is disclosed, such as Figure 1 As shown, including:

[0047] S1: Acquire the file to be converted formed by the first platform.

[0048] The file to be converted includes at least one element, or at least one graphic element, and the file to be converted can only be displayed on the first platform but cannot be directly displayed on the second platform.

[0049] S2: Extract all element information and element attributes in the file to be converted.

[0050] This embodiment obtains all element information of the file to be converted from the shape sheet (shape data) of the file to be converted, and the element information includes the name, coordinates (Pin), size, line type and line width of the element.

[0051] The shape sheet defines the unique behavior and function of the primitive. The SheetTransform, Line Format, and Fill Format in the shape sheet contain information such as the width, height, line type, and line width of the element object (for example, the x-coordinate PinX and the y-coordinate PinY). Figure 2Shown is the shapesheet of the theme element.

[0052] In this embodiment, the element attribute of the element in the file to be converted is represented by the element attribute ID, that is, the element attribute of each element in the file to be converted is obtained by obtaining the element attribute ID of each element in the file to be converted.

[0053] S3: Determine the graphic macro code of each element information in the file to be converted.

[0054] In this embodiment, each element information in the first platform is pre-encoded with a macro code, and the macro code of each element information in the file to be converted can be queried and determined. The macro code is used to associate the element information of the first platform with the element information of the second platform.

[0055] S4: According to a preset element mapping rule, determine the element attribute in the second platform corresponding to each element attribute in the file to be converted.

[0056] Before converting the file to be converted, this embodiment presets element mapping rules, which describe the correspondence between element attributes in the first platform and element attributes in the second platform, and the correspondence between the image macro code and the element information in the second plane.

[0057] In specific implementation, an element mapping table is constructed according to a preset element mapping rule; the element mapping table includes element information in the second platform, image macro coding, element attributes in the first platform, and element attributes in the second platform;

[0058] According to the graphic macro code and element attributes of each element information in the file to be converted, the element information and element attributes to be displayed on the second platform are queried from the element mapping table.

[0059] S5: Integrate all the image macro codes and the element attributes in the second platform corresponding to the element attributes in the file to be converted to obtain a converted file.

[0060] When the converted file is displayed on the screen by the second platform in this embodiment, the element information to be displayed by the second platform is first determined according to the image macro code of each element information;

[0061] According to the element attributes in the file to be converted corresponding to the element attributes in the second platform, the element information to be displayed on the second platform is displayed through the second platform.

[0062] S6: Displaying the converted file on the second platform.

[0063] In nuclear power plants, in order to timely understand the operating conditions and status of the power plants, non-safety-level display screens need to be displayed through a specific display platform. Non-safety-level display screens are usually designed by design institutes using a separate design platform.

[0064] The design platform is a digital design tool customized for engineering design and complex workflows. It is object-oriented and database-driven. It can create standard graphics libraries, device libraries, and template libraries, associate them with properties, and generate necessary drawings. The design platform is based on Visio drawing and enhances the functions of Visio while retaining the original functions.

[0065] The file format output by the design platform is a VSD file, and the file format that can be displayed by a specific display platform such as the NuCON platform is a gbd file, so the files designed by the design platform cannot be directly displayed on a specific display platform such as the NuCON platform. In related technologies, the files designed by the design platform are mainly handed over to the DCS supplier for configuration through the cross-company capital raising business process to form files that can be displayed by a specific display platform. However, the configuration process is carried out separately from the design process of the design platform, and cannot be coordinated. In addition, the files designed by the design platform need to be understood, which may lead to inaccurate understanding, and the configuration process requires manual drawing, and the configuration efficiency is low.

[0066] NuCON platform is a control platform, including graphic configuration software, NuCON library and NuCON graphic display software. Graphic configuration software (GraphicBuilder.exe) is a tool for generating NuCON graphics. Graphics generated by graphic configuration software can be linked with NuCON library for real-time data, accept operation instructions, and complete dynamic display of real-time data. Files generated by graphic configuration software are gbd files (*.gbd), which can be displayed in NuCON graphic display software (GraphicViewer.exe) to provide an operation interface. NuCON library stores gbm files (*.gbm).

[0067] This embodiment takes the design platform as the first platform and the NuCON platform as the second platform as an example to describe in detail a method for automatically converting a display screen disclosed in this embodiment.

[0068] In order to realize the automatic conversion of files designed by the design platform into files that can be directly displayed by specific display platforms such as the NuCON platform, this embodiment presets element mapping rules in advance. The element mapping rules describe the mapping relationship between all elements in the file to be converted and the elements of the target type, and the mapping relationship between all element attributes in the file to be converted and the element attributes of the target type.

[0069] Taking the conversion of the file designed by the design platform into a gbd file that can be displayed on the NuCON platform as an example, the element mapping rules are explained. The element mapping rules describe the mapping relationship between all element attributes in the design platform and the element attributes in the NuCON platform, and the mapping relationship between the image macro code and the element information in the NuCON platform. An element mapping table is constructed according to the element mapping rules, as shown in Table 1. The mapping relationship of the title element part in the element mapping table includes the image library name, image macro code, NuCON parameter and design attribute ID. In the table, the image library name is the element name in the NuCON platform, the image macro code is the code corresponding to the element information in the design platform, and the element information in the NuCON platform can also be determined by the image macro code. The design attribute ID is the element attribute in the design platform, and the NuCON parameter is the element attribute in the NuCON platform.

[0070] Table 1 Mapping relationship of title element parts

[0071]

[0072] This embodiment obtains all element information in the file to be converted from the shape sheet of the file to be converted, and obtains the attribute codes of all elements in the file to be converted. Figure 2 As shown, the element name is the shape sheet (shape data) of the theme.

[0073] The graphic macro code of the subject element is determined to be MH001. Assuming that the attribute code of the element attribute (element attribute code) of the subject element in the design platform is 106265, the element mapping table is looked up to determine that the element attribute in the NuCON platform corresponding to the attribute code of the subject element is $00dnm1.

[0074] According to the image macro code and the determined element attributes in the NuCON platform, a converted file is formed, and when the converted file is displayed through the NuCON platform;

[0075] First, according to the MH001, the element mapping table is looked up to determine that the library name corresponding to MH001 is the title, that is, the element to be displayed on the NuCON platform is the title. In addition, the remaining title information except the title is determined according to the MH001.

[0076] Afterwards, the NuCON platform displays the title according to the element attribute $00dnm1 and the title information.

[0077] In order to achieve the ability to change the converted file without changing the file to be converted, this embodiment first integrates the image macro code and the corresponding element attributes in the second platform to form a converted file (txt file) in the style of a text document, which can be edited; then, the display file (gbd file) of the second platform is generated through the converted file, and the gbd file cannot be edited.

[0078] The effect of the automatic display screen conversion method disclosed in this embodiment is verified by converting the non-safety-level display screen of a single nuclear power plant unit.

[0079] Taking a single nuclear power plant unit with 550 non-safety-level display screens as an example, the non-safety-level display screens of the single nuclear power plant unit are manually configured and automatically converted by using the method disclosed in this embodiment. After comparison, it is determined that the efficiency of automatically converting the non-safety-level display screens of the single nuclear power plant unit by using the method disclosed in this embodiment is improved by 99.8% compared with manual configuration, and when the non-safety-level display screens of the single nuclear power plant unit are automatically converted by using the method disclosed in this embodiment, the automatic conversion accuracy is high, the number of transmissions is minimized, and the design clarification link is omitted.

[0080] The present embodiment discloses a method for automatically converting a display screen. By presetting element mapping rules in advance, a mapping relationship between element attributes in a first platform and element attributes in a second platform, and a mapping relationship between image macro codes and element information in a second plane are established. When converting a file to be converted in the first platform to be displayed in the second platform, all element information and element attributes in the file to be converted are first extracted. Then, the image macro codes corresponding to each element information are determined. According to the element mapping rules, the element attributes in the second platform corresponding to the element attributes in the file to be converted are determined. Afterwards, the image macro codes and the determined element attributes in the second platform are used to form a converted file. The converted file is displayed through the second platform. Through the simultaneous conversion of element information and element attributes, it is ensured that the screen displayed by the converted file is the same as the screen displayed by the file to be converted, and manual drawing is not required, thereby improving the efficiency and accuracy of screen conversion.

[0081] Example 2

[0082] In this embodiment, a display screen automatic conversion system is disclosed, including:

[0083] A file acquisition module, used to acquire the file to be converted formed by the first platform;

[0084] The element information extraction module is used to extract all element information and element attributes in the file to be converted;

[0085] A graphic macro code determination module, used to determine the graphic macro code of each element information in the file to be converted;

[0086] A mapping module, used to determine the element attribute in the second platform corresponding to each element attribute in the file to be converted according to a preset element mapping rule;

[0087] A converted file generation module, used for integrating all the image macro codes and the element attributes in the second platform corresponding to the element attributes in the file to be converted, to obtain a converted file;

[0088] The second platform is used to display the converted files on the screen.

[0089] The present invention also discloses a computer device, which includes:

[0090] a processor adapted to execute a computer program;

[0091] A computer-readable storage medium, wherein a computer program is stored in the computer-readable storage medium, and when the computer program is executed by the processor, a method for automatically switching display screens disclosed in Example 1 is implemented.

[0092] The present invention also discloses a computer-readable storage medium, which stores a computer program. The computer program is suitable for being loaded by a processor and executing a display screen automatic conversion method disclosed in Example 1.

[0093] The present invention also discloses a computer program product, which includes a computer program. When the computer program is executed by a processor, the method for automatically converting a display screen disclosed in Example 1 is implemented.

[0094] The method disclosed in Example 1 can be directly embodied as a hardware processor, or can be executed by a combination of hardware and software modules in the processor. The software module can be located in a mature storage medium in the field such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory, or an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory, and the processor reads the information in the memory and completes the steps of the above method in combination with its hardware. To avoid repetition, it will not be described in detail here.

[0095] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with this embodiment can be implemented in electronic hardware or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0096] Although the above describes the specific implementation mode of the present invention in conjunction with the accompanying drawings, it is not intended to limit the scope of protection of the present invention. Those skilled in the art should understand that various modifications or variations that can be made by those skilled in the art on the basis of the technical solution of the present invention without creative work are still within the scope of protection of the present invention.

Claims

1. A method for automatically switching a display screen, characterized in that: include: Obtaining a file to be converted formed by the first platform; Extract all element information and element attributes from the file to be converted; Determine the graphic macro code of each element information in the file to be converted; According to a preset element mapping rule, determine the element attribute in the second platform corresponding to each element attribute in the file to be converted; Integrate all the image macro codes and the element attributes in the second platform corresponding to the element attributes in the file to be converted to obtain a converted file; The converted file is displayed on the screen through the second platform.

2. A method for automatically switching display images as claimed in claim 1, characterized in that: The element mapping rule describes the correspondence between the element attributes in the first platform and the element attributes in the second platform, and the correspondence between the image macro code and the element information in the second plane.

3. A method for automatically switching display images as claimed in claim 1, characterized in that: When the converted file is displayed on the screen through the second platform, firstly, the element information to be displayed on the second platform is determined according to the image macro code of each element information; According to the element attributes in the file to be converted corresponding to the element attributes in the second platform, the element information to be displayed on the second platform is displayed through the second platform.

4. A method for automatically switching display images as claimed in claim 3, characterized in that: According to the preset element mapping rules, an element mapping table is constructed; the element mapping table includes element information in the second platform, image macro code, element attributes in the first platform and element attributes in the second platform; According to the graphic macro code and element attributes of each element information in the file to be converted, the element information and element attributes to be displayed on the second platform are queried from the element mapping table.

5. The method for automatically switching display images according to claim 1, characterized in that: Each element information corresponds to a separate image macro code.

6. A method for automatically switching display images as claimed in claim 1, characterized in that: The element attribute ID represents the element attribute of the element in the file to be converted.

7. A display screen automatic switching system, characterized in that: include: A file acquisition module, used to acquire the file to be converted formed by the first platform; The element information extraction module is used to extract all element information and element attributes in the file to be converted; A graphic macro code determination module, used to determine the graphic macro code of each element information in the file to be converted; A mapping module, used to determine the element attribute in the second platform corresponding to each element attribute in the file to be converted according to a preset element mapping rule; A converted file generation module, used for integrating all the image macro codes and the element attributes in the second platform corresponding to the element attributes in the file to be converted, to obtain a converted file; The second platform is used to display the converted files on the screen.

8. An electronic device, characterized in that: The device comprises: a processor adapted to execute a computer program; A computer-readable storage medium, wherein a computer program is stored in the computer-readable storage medium, and when the computer program is executed by the processor, a display screen automatic conversion method according to any one of claims 1 to 6 is implemented.

9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and the computer program is suitable for being loaded by a processor and executing the method for automatically switching display screens according to any one of claims 1 to 6.

10. A computer program product, characterized in that The computer program product includes a computer program, and when the computer program is executed by a processor, the method for automatically switching display screens according to any one of claims 1 to 6 is implemented.

Citation Information

Cited By

  • DCS system processing method and system, electronic equipment and storage medium

    CN120892127A