Methods, apparatus and readable storage media for split-screen data display
By generating sub-window pages on the terminal device's display screen to display target operating parameters and machine operating data in a split-screen manner, the problem of cumbersome data monitoring operations in existing technologies is solved, and the efficiency and applicability of data retrieval are improved.
Patent Information
- Application Number
- CN202311816555.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-12-26
- Publication Date
- 2025-10-31
- Estimated Expiration
- 2043-12-26
AI Technical Summary
In existing technologies, technicians need to frequently switch industrial control software to avoid port occupation, resulting in cumbersome data monitoring operations, low viewing efficiency, and poor applicability.
By implementing split-screen data display on the terminal device's display screen, at least two sub-window pages are generated to display the target operating parameters and the target machine's operating data, respectively. The display is dynamically updated and scrolled through triggered operations, simplifying data monitoring operations.
It improves the convenience and efficiency of data retrieval, enhances the applicability of data display, and simplifies data monitoring steps.
Smart Images

Figure CN118227427B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of computer technology, and in particular to a method, apparatus, and computer-readable storage medium for split-screen data display. Background Technology
[0002] With the development of computer technology, product development and testing require the application of industrial control software for monitoring and control. Industrial control software can display data to technicians through a screen, and technicians can interact with the equipment under test through the industrial control software.
[0003] In existing technologies, technicians often need to interact with data through different industrial control software. When running one type of industrial control software, other software needs to be shut down to avoid port congestion. Therefore, if technicians need to monitor multiple data simultaneously, the machine needs to frequently switch software or use other devices for backup. Data monitoring is cumbersome, inefficient, and has poor applicability. Summary of the Invention
[0004] This application provides a method, apparatus, and computer-readable storage medium for split-screen data display, which can simplify the operation steps of data monitoring, improve the convenience and efficiency of data retrieval, and has strong applicability.
[0005] One embodiment of this application provides a method for split-screen data display, including:
[0006] In response to the operation parameter display operation, the target operation parameters of the device under test for the target industrial control software test are obtained, and the target operation parameters are displayed on the main window page of the terminal device's display screen. At the same time, the display control that triggers the display of the target machine operation data corresponding to the target operation parameters is displayed on the main window page.
[0007] When a trigger operation is detected on the display control, respond to the trigger operation, obtain the target machine operation data corresponding to the target operation parameters, store the target operation parameters and their corresponding target machine operation data in the same data storage area, and display at least two child window pages in the main window page;
[0008] Display the target operating parameters to the first sub-form page of at least two sub-form pages, and display the target machine operating data to the second sub-form page of at least two sub-form pages.
[0009] This includes obtaining the target operating parameters of the device under test for testing the target industrial control software, including:
[0010] The test data generated by the device under test during the software function test of the target industrial control software is obtained from the target data storage area, and the test data is transformed based on the data parsing strategy that matches the target industrial control software and the device under test to obtain the target operating parameters of the device under test for the test of the target industrial control software; wherein, the target data storage area is the data storage area in the device under test used to store the target operating parameters and the corresponding target machine operating data.
[0011] Prior to obtaining the test data generated by the device under test during software functional testing of the target industrial control software from the target data storage area, the method further includes:
[0012] During the software function test of the above-mentioned target industrial control software, Q interactive data generated by the device under test are obtained. The data frame identifier and data field corresponding to each of the above Q interactive data are obtained to obtain the Q data frame identifiers and Q data fields corresponding to the above Q interactive data, where Q is a positive integer.
[0013] Based on the data set type of each of the Q interactive data, generate the data set type identifier of each of the interactive data to obtain the Q data set type identifiers;
[0014] Based on the aforementioned Q data frame identifiers, the aforementioned Q data fields, and the aforementioned Q data set type identifiers, generate Q test data sets and store the Q test data sets in the aforementioned target data storage area.
[0015] Specifically, based on the data set type of each of the Q interactive data sets mentioned above, data set type identifiers for each interactive data set are generated to obtain Q data set type identifiers, including:
[0016] From the above Q interactive data, one or more first data with a first feature value sent from the above terminal device to the above tested device are obtained to obtain a first data set. The data set type of each first data in the above first data set is determined as a first data set type, and a data set type identifier of each of the above first data is generated as a first data set type identifier.
[0017] From the above Q interactive data, obtain one or more second data with second feature values sent by the above-tested device to the above-terminal device to obtain a second data set, determine the data set type of each second data in the above-mentioned second data set as the second data set type, and generate the data set type identifier of each of the above-mentioned second data as the second data set type identifier.
[0018] The acquisition of the target machine operating data corresponding to the aforementioned target operating parameters includes:
[0019] The test data used to convert the target operating parameters is obtained from the target data storage area, and the target machine operating data corresponding to the target operating parameters is determined by converting the test data used to convert the target operating parameters.
[0020] The above-mentioned display of the target machine's operating data to the second sub-window page of the at least two sub-window pages includes:
[0021] If the number of data M corresponding to the target machine operation data of the above target operation parameters is less than or equal to N, then M of the above target machine operation data will be displayed in the second sub-window page in the order of data generation time, where N is the maximum amount of data that can be displayed on the second sub-window page.
[0022] If the number M of target machine operation data corresponding to the above target operation parameters is greater than N, then the N target machine operation data with the earliest data generation time among the M target machine operation data will be displayed sequentially on the above second sub-window page.
[0023] The second sub-form page also displays a first type of data display control and a second type of data display control; after displaying the target machine's operating data to the second sub-form page of the above at least two sub-form pages, the method further includes:
[0024] When a trigger operation is detected for either the first type of data display control or the second type of data display control, the system responds to the trigger operation, obtains test data with the target data set type identifier as the updated target machine running data, and displays the updated target machine running data on the second sub-window page; the target data set type identifier is either the first data set type identifier or the second data set type identifier.
[0025] If a trigger operation is detected for the first type of data display control and the second type of data display control, then in response to the trigger operation for the first type of data display control and the second type of data display control, test data with the first data set type identifier and the second data set type identifier is obtained as the updated target machine running data, and the updated target machine running data is displayed on the second sub-window page.
[0026] The above methods also include:
[0027] In response to a display operation on the scrolling display control, a display control with the function of scrolling the target machine's operating data is displayed in the second sub-window page.
[0028] If the trigger operation of the scrolling display control is detected and Q is greater than N, then a replacement operation for the N machine running data already displayed on the second sub-window page is responded to, and the i-th target machine running data is replaced with the (i+1)-th target machine running data whose data generation time is after the i-th target machine running data, until the replacement of the N target machine running data displayed on the second sub-window page is completed.
[0029] In response to the display operation of the target machine's running data, the N target machine running data after successful replacement will be displayed on the second sub-window page.
[0030] The aforementioned first sub-window page includes at least two sub-window display pages that are displayed by page turning; the aforementioned display of the target running parameters to the first sub-window page among the aforementioned at least two sub-window pages includes:
[0031] If the number of data K of the target operating parameters is detected to be greater than D, then the K target operating parameters are displayed sequentially in the at least two sub-window display pages included in the first sub-window page according to the data generation time, and the first sub-window display page and the page turning display control of the at least two sub-window display pages are displayed on the first sub-window page, where D is the maximum number of parameters that can be displayed on the first sub-window page.
[0032] The aforementioned page-turning display control includes a previous page display control and a next page display control, and the aforementioned method further includes:
[0033] If the trigger operation of the above-mentioned back page display control is detected, a back page sub-window display page with the same width and height as the above-mentioned first sub-window page is generated according to the above-mentioned test data, and the above-mentioned back page sub-window display page covers the above-mentioned first sub-window page to be displayed on the above-mentioned display screen as the current display page;
[0034] If the triggering operation of the aforementioned previous page display control is detected, the currently displayed page on the aforementioned display screen is closed, so as to display the previous page child form display page that is covered by the aforementioned currently displayed page.
[0035] One embodiment of this application provides a data split-screen display device, comprising:
[0036] The first display module is used to respond to the display operation of the running parameters, obtain the target running parameters of the device under test for testing the target industrial control software, and display the target running parameters on the main window page of the terminal device's display screen. At the same time, the main window page displays the display control that triggers the display of the target machine running data corresponding to the target running parameters.
[0037] The first acquisition module is used to respond to the trigger operation when a trigger operation is detected on the display control, and acquire the target machine operation data corresponding to the target operation parameters. The target operation parameters and their corresponding target machine operation data are stored in the same data storage area, and at the same time, at least two child window pages are displayed in the main window page.
[0038] The second display module is used to display the target operating parameters to the first sub-window page of at least two sub-window pages, and to display the target machine operating data to the second sub-window page of at least two sub-window pages.
[0039] The first display module is specifically used for:
[0040] The test data generated by the device under test during the software function test of the target industrial control software is obtained from the target data storage area, and the test data is transformed based on the data parsing strategy that matches the target industrial control software and the device under test to obtain the target operating parameters of the device under test for testing the target industrial control software.
[0041] The target data storage area is the data storage area in the device under test used to store the target operating parameters and their corresponding target machine operating data.
[0042] The data split-screen display device also includes:
[0043] The second acquisition module is used to acquire Q interactive data generated by the device under test during the software function test of the target industrial control software, and to acquire the data frame identifier and data field corresponding to each interactive data in the Q interactive data, so as to obtain the Q data frame identifier and Q data field corresponding to the Q interactive data, where Q is a positive integer;
[0044] The first generation module is used to generate data set type identifiers for each interactive data according to the data set type of each interactive data in the Q interactive data to obtain Q data set type identifiers;
[0045] The second generation module is used to generate Q test data based on Q data frame identifiers, Q data fields, and Q data set type identifiers, and store the Q test data in the target data storage area.
[0046] The first generation module includes:
[0047] The first acquisition unit is configured to acquire one or more first data with a first feature value sent from the terminal device to the device under test from Q interactive data to obtain a first data set, determine the data set type of each first data in the first data set as the first data set type, and generate a data set type identifier for each first data as the first data set type identifier;
[0048] The second acquisition unit is used to acquire one or more second data with second feature values sent from the device under test to the terminal device from Q interactive data to obtain a second data set, determine the data set type of each second data in the second data set as the second data set type, and generate a data set type identifier for each second data as the second data set type identifier.
[0049] The first acquisition module is specifically used for:
[0050] Retrieve test data from the target data storage area to convert it into target operating parameters, and use the test data to convert it into the target operating parameters to determine the target machine operating data corresponding to the target operating parameters.
[0051] The second display module includes:
[0052] The first display unit is used to display M data points of the target machine operation data in the order of data generation time on the second sub-window page when the number M of the target machine operation data corresponding to the target operation parameters is less than or equal to N. Here, N is the maximum amount of data that can be displayed on the second sub-window page.
[0053] The second display unit is used to sequentially display the N target machine operation data with the earliest data generation time among the M target machine operation data when the number M of target machine operation data corresponding to the target operation parameters is greater than N on the second sub-window page.
[0054] The data split-screen display device also includes:
[0055] The third display module is used to respond to the trigger operation when a trigger operation is detected for either the first type of data display control or the second type of data display control, obtain test data with a target data set type identifier as the updated target machine running data, and display the updated target machine running data on the second sub-window page; the target data set type identifier is either the first data set type identifier or the second data set type identifier;
[0056] The fourth display module is used to respond to the triggering operation of the first type data display control and the second type data display control when the triggering operation of the first type data display control and the second type data display control is detected, obtain test data with the first data set type identifier and the second data set type identifier as the updated target machine running data, and display the updated target machine running data on the second sub-window page.
[0057] The data split-screen display device also includes:
[0058] The fifth display module is used to respond to display operations on the scrolling display control and display the display control with the function of scrolling the target machine's operating data in the second sub-window page;
[0059] The replacement module is used to respond to the replacement operation of the N machine running data that are already displayed on the second sub-window page when the trigger operation of the scrolling display control is detected and Q is greater than N. The module sequentially replaces the i-th target machine running data with the (i+1)-th target machine running data whose data generation time is after the i-th target machine running data, until the replacement of the N target machine running data displayed on the second sub-window page is completed.
[0060] The sixth display module is used to respond to the display operation of the above target machine running data, and displays the N target machine running data after successful replacement in the above second sub-window page.
[0061] The second display module is specifically used for:
[0062] If the number of target operating parameters K is greater than D, then the K target operating parameters will be displayed sequentially in the at least two sub-window display pages included in the first sub-window page according to the data generation time. The first sub-window display page and the page turning display control will also be displayed in the first sub-window page. Here, D is the maximum number of parameters that can be displayed in the first sub-window page.
[0063] The page-turning display control includes a previous page display control and a next page display control. The data split-screen display device also includes:
[0064] The third display unit is used to generate a second sub-window display page with the same width and height as the second sub-window page based on test data when the trigger operation of the second sub-window control is detected, and to display the second sub-window display page as the current display page on the display screen.
[0065] The fourth display unit is used to close the currently displayed page on the display screen when a trigger operation of the previous page display control is detected, so as to display the previous page sub-window display page that is covered by the currently displayed page.
[0066] One embodiment of this application provides a computer device, including: a processor, a memory, and a network interface;
[0067] The processor is connected to the memory and the network interface, wherein the network interface is used to provide a data communication network element, the memory is used to store a computer program, and the processor is used to execute the computer program to perform the method in the embodiments of this application.
[0068] One aspect of this application provides a computer-readable storage medium storing a computer program adapted to be loaded by a processor and executed by the method described in this application.
[0069] One aspect of this application provides a computer program product, including a computer program / instruction, which, when executed by a processor, implements the method described in this application.
[0070] In this embodiment, the terminal device can display the target operating parameters on the main window page of the terminal device's display screen, and display a display control that triggers the display of the target machine operating data corresponding to the target operating parameters. If the display control is triggered, the terminal device can obtain the target machine operating data corresponding to the target operating parameters and store the target machine operating data, target operating parameters, and test data in the same data storage area. The terminal device can also generate at least two sub-window pages, displaying the target operating parameters on the first sub-window page and the target machine operating data on the second sub-window page. By generating at least two sub-window pages to display the data in a split-screen manner, the operation steps of data monitoring can be simplified, thereby improving the convenience and efficiency of data retrieval and enhancing the applicability of data display. Attached Figure Description
[0071] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0072] Figure 1 This is a schematic diagram of the structure of an industrial control device provided in an embodiment of this application;
[0073] Figure 2 This is a flowchart illustrating a method for split-screen data display provided in an embodiment of this application;
[0074] Figure 3 This is a flowchart illustrating another method for split-screen data display provided in an embodiment of this application;
[0075] Figure 4 This is a flowchart illustrating another method for split-screen data display provided in an embodiment of this application;
[0076] Figure 5 This is a flowchart illustrating another method for split-screen data display provided in an embodiment of this application;
[0077] Figure 6 This is a schematic diagram of the structure of a data split-screen display device provided in an embodiment of this application;
[0078] Figure 7 This is a schematic diagram of the structure of a computer device provided in an embodiment of this application. Detailed Implementation
[0079] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those of ordinary skill in the art without creative effort are within the scope of protection of this application.
[0080] To facilitate understanding, the following brief explanations are provided for some of the terms:
[0081] 1. A touch panel (also known as a touch screen or touch control panel) is a sensor-based liquid crystal display device that can receive input signals from touch. When a graphic button on the touch panel is pressed, the haptic feedback system on the touch panel can generate corresponding actions according to pre-programmed instructions and provide feedback to the user. With the development of the communication technology industry, industrial control touch panels are generally equipped with serial ports (such as RS232, RS485) and Ethernet interfaces for communication with the microcontroller unit (MCU) of the controlled device.
[0082] 2. Configuration software (also known as "configuration monitoring system software") refers to the integrated development environment (IDE) at the monitoring layer of an automatic control system.
[0083] 3. A microcontroller unit, also known as a single-chip microcomputer or microcontroller, is a chip-level computer that integrates a central processing unit with a reduced frequency and specifications, and integrates peripheral interfaces such as memory and counters onto a single chip. It can be used to perform different combinations of control for different applications, such as mobile phones, computer peripherals, remote controls, automotive electronics, and industrial stepper motor and robotic arm control.
[0084] The microcontroller unit in the touch screen can filter the received data. The data filtering method can be based on logical operations, such as calculating a logical positive value by combining logical positive values, calculating a logical negative value by combining logical positive values, and so on.
[0085] 4. Low-level data: Raw data that has undergone A / D conversion but has not yet been parsed, such as the level signal sequence used by the device for communication. This level signal sequence can be in the form of a bit stream. 5. High-level data: Data that has undergone A / D conversion and has been parsed according to certain rules to describe a physical quantity. This can also be called the operating parameters of the device under test, such as voltage, current, and frequency.
[0086] Please see Figure 1 , Figure 1 This is a structural schematic diagram of an industrial control device provided in an embodiment of this application. For example... Figure 1 The terminal device 1a shown includes, but is not limited to, electronic devices such as touch screens and computers. The terminal device 1a may integrate functional components such as pulse width modulation, connection detection, charging control and controller local area network, and may also be configured with configuration software for monitoring and debugging the device under test 1b.
[0087] The device under test (DUT) 1b includes, but is not limited to, electronic instruments such as signal generators and sensors. DUT 1b and terminal device 1a can be connected via two signal lines (CANH and CANL) in a Controller Area Network (CAN), or via other cables capable of transmitting signals; this application does not impose any limitations on this connection. It is understood that both DUT 1b and terminal device 1a require power, i.e., power is supplied by power supply device 1c. Power supply device 1c can be connected to DUT 1b and terminal device 1a via electrical wires. Once powered, terminal device 1a can perform data detection and debugging on DUT 1b. For example, terminal device 1a can receive interactive information sent by DUT 1b, perform filtering and parsing operations, and then display the relevant parameters of DUT 1b on its screen. The filtering method can be a logical operation, such as calculating a logical positive value from two logical positive values, calculating a logical negative value from two logical negative values, and so on. Simultaneously, terminal device 1a can also acquire unparsed raw interactive data sent by device under test 1b. Furthermore, terminal device 1a can also send instructions to device under test 1b, including but not limited to message forms. After receiving the instructions sent by terminal device 1a, device under test 1b can respond with operations related to the instructions. The application scenarios of this application embodiment can be data split-screen display scenarios of test data of device under test during industrial control software testing or other application scenarios; this application does not specifically limit these scenarios.
[0088] like Figure 1The power supply device 1c shown can supply power to the terminal device 1a and the device under test 1b. The power supply device 1c can be a DC power supply, AC power supply, battery, etc. The terminal device 1a can be a device equipped with a touchscreen, and the device under test 1b can be a sensor. The specific product forms of the terminal device 1a and the device under test 1b can be determined according to the actual application scenario requirements, and this application does not impose any restrictions on this. It is understood that the terminal device 1a can use industrial control software to interact with the device under test 1b. The device under test 1b can send test data to the terminal device 1a. After receiving the test data sent by the device under test 1b, the terminal device 1a will perform data conversion through the target industrial control software to generate target machine operating data (which can also be called underlying operating data, underlying communication data, or underlying data) and target operating parameters (which can also be called operating parameters or upper-layer data). The test data can be the target machine operating data generated by the device under test 1b during operation. After obtaining the target operating parameters, the terminal device 1a can display the target operating parameters on the main window page of the terminal device 1a's screen. Understandably, the main window page can display control elements that trigger split-screen operation, such as a split-screen button. If terminal device 1a detects a user's trigger operation on these control elements, it can respond to the split-screen operation. For example, if terminal device 1a detects a trigger operation on these control elements, it can generate at least two sub-window pages, displaying the target operating parameters on the first sub-window page and displaying the target machine operating data corresponding to the target operating parameters on the second sub-window page.
[0089] In some feasible implementations, the aforementioned sub-window pages may also display display controls such as page turning, scrolling, scrolling pause, displaying sent data, displaying received data, and sending messages. If the terminal device detects a user's trigger operation on the aforementioned display controls, it can respond to the operation corresponding to the aforementioned display controls. For details, please refer to the following. Figures 2 to 5The specific implementation method is shown below. The terminal device can display the target operating parameters on the main window page of the terminal device's display screen, and display a display control that triggers the display of the target machine operating data corresponding to the target operating parameters. If the display control is triggered, the terminal device can obtain the target machine operating data corresponding to the target operating parameters and store the target machine operating data, target operating parameters, and test data in the same data storage area. The terminal device can also generate at least two sub-window pages, displaying the target operating parameters on the first sub-window page and the target machine operating data on the second sub-window page. By generating at least two sub-window pages to display the data in a split-screen manner, the operation steps of data monitoring can be simplified, thereby improving the convenience and efficiency of data retrieval and enhancing the applicability of data display.
[0090] It is understood that this application can be applied to data split-screen display solutions in various forms. The following explanation uses the split-screen display of target operating parameters and the corresponding target machine operating data as an example. Please refer to [the relevant documentation / reference]. Figure 2 , Figure 2 This is a flowchart illustrating a method for split-screen data display according to an embodiment of this application. For ease of description, the following will use a terminal device as the execution subject as an example. The above-mentioned method for split-screen data display may include:
[0091] Step S101: Respond to the display operation of the operating parameters, obtain the target operating parameters of the device under test for the target industrial control software test, and display the target operating parameters on the main window page of the terminal device's display screen. At the same time, display control that triggers the display of the target machine operating data corresponding to the target operating parameters is displayed on the main window page.
[0092] In some feasible implementations, the terminal device can obtain test data from the target data storage area, perform data conversion on the test data to obtain target operating parameters, and then display the obtained target operating parameters on the main window page of the terminal device's display screen. Please also refer to... Figure 3 , Figure 3 This is a flowchart illustrating another method for split-screen data display provided in an embodiment of this application. For example... Figure 3As shown, the data split-screen display method allows terminal device 4a to generate the aforementioned target operating parameters 4d based on test data 4c in the target data storage area 4f. The target data storage area 4f stores test data 4c, target operating parameters 4d, and target machine operating data 4e. Specifically, terminal device 4a first obtains the unparsed test data 4c from the target data storage area 4f. Based on the specification document (also known as a message protocol) associated with the device under test, it obtains a data parsing strategy matching the device under test. Based on this data parsing strategy, it performs data conversion on the test data 4c to parse and obtain the aforementioned target operating parameters 4d. Optionally, the aforementioned target operating parameters 4d can be electrical parameters such as voltage, current, and frequency.
[0093] Furthermore, after reading the target operating parameter 4d from the target data storage area 4f, the terminal device 4a can respond to a display operation on the target operating parameter 4d. If the terminal device 4a detects that the display operation on the target operating parameter 4d has been triggered, for example, if a user clicks the display control of the target operating parameter 4d, the terminal device 4a can obtain the target operating parameter 4d and display it on the main window page of the terminal device 4a according to the data frame identifier corresponding to the target operating parameter 4d. For example, the terminal device 4a can display the target operating parameter 4d in one of the following orders: top to bottom, bottom to top, left to right, or right to left. The number of parameters displayed in each row and column can also be adjusted according to the width and height of the main window page 4g of the terminal device 4a. This application does not impose any restrictions on these aspects. After obtaining the maximum displayable data volume of the main window page 4g, the terminal device 4a can display the target operating parameters 4d with the same maximum displayable data volume according to the order of the data frame identifiers. Target operating parameters 4d with data frame identifiers exceeding the maximum displayable data volume will not be displayed in the main window page 4g. It is understood that the maximum displayable data volume of the main window page 4g of the terminal device 4a can be adjusted according to the actual situation, and this application does not impose any restrictions on this. For example: if the maximum displayable data volume is 10 and the number of target operating parameters 4d is 10, then the touch screen will display all 10 target operating parameters 4d in the main window page 4g; if the maximum displayable data volume is 10 and the data frame identifiers are displayed from front to back according to the generation time, and the number of target operating parameters 4d is 15, then the touch screen can display the first 10 generated target operating parameters 4d in the main window page 4g.
[0094] Optionally, in some feasible implementations, the main window page 4g of the terminal device 4a may also display a display control (which may also be called a communication viewing button) that can trigger the display of target machine running data 4e corresponding to the target running parameters 4d. By triggering the display control, the terminal device 4a can generate at least two sub-window pages and display the target machine running data 4e. In this embodiment, the display position of the display control on the main window page 4g is not limited.
[0095] In some feasible implementations, the main window page 4g of the aforementioned touchscreen can also display a message sending control. If the user needs to send a message to the device under test, they can enter the content to be sent in the message input box, and then trigger the message sending control. After the terminal device 4a detects that the message sending control has been triggered, it can respond by sending the message to the device under test. It should be noted that the main window page 4g may also have display controls with other functions, and this application does not limit this.
[0096] In some feasible implementations, before acquiring the target operating parameters of the device under test (DUT) for testing the target industrial control software, the terminal device 4a can also generate test data 4c based on the acquired interactive data 4b. For ease of understanding, please refer to [further details omitted]. Figure 4 , Figure 4 This is a flowchart illustrating another method for split-screen data display provided in this application embodiment. The specific implementation of step S101 can be found in [reference needed]. Figure 4 The step S204 shown is illustrated with an example.
[0097] Step S204: Obtain test data generated by the device under test during software function testing of the target industrial control software from the target data storage area, and perform data transformation on the test data based on the data parsing strategy that matches the target industrial control software and the device under test to obtain the target operating parameters of the device under test for testing the target industrial control software; wherein, the target data storage area is the data storage area in the device under test used to store the target operating parameters and their corresponding target machine operating data.
[0098] In some feasible implementations, terminal device 4a can obtain test data generated by the device under test during software functional testing of the target industrial control software from the target data storage area. Terminal device 4a can also perform data conversion on the test data based on a data parsing strategy that matches the target industrial control software and the device under test, thereby obtaining the target operating parameters of the device under test for testing the target industrial control software; wherein, the target data storage area is the target data storage area in the device under test used to store the target operating parameters and their corresponding target machine operating data. It should be noted that before step S204, the data split-screen display method also includes steps S201, S202, and S203.
[0099] Step S201: Obtain Q interactive data generated by the device under test during the software function test of the target industrial control software, and obtain the data frame identifier and data field corresponding to each interactive data in the Q interactive data to obtain the Q data frame identifier and Q data field corresponding to the Q interactive data, where Q is a positive integer.
[0100] For some feasible implementation methods, please refer to [link / reference]. Figure 3 ,like Figure 3As shown, the terminal device 4a can be a touchscreen or other device capable of applying target industrial control software. After startup, the terminal device 4a can perform preliminary filtering of the received data through built-in components such as a microcontroller to obtain interactive data 4b. The filtering method can be a logical operation, for example: a logical positive value is calculated by combining logical positive values, a logical negative value is calculated by combining logical positive values, and so on. The terminal device 4a can generate test data 4c based on the acquired interactive data 4b. The test data 4c is used to generate target operating parameters 4d and machine operating data. The terminal device 4a can store the test data 4c, target operating parameters 4d, and machine operating data in the same target data storage area 4f. Specifically, after performing preliminary filtering on the interactive data 4b, the terminal device 4a can obtain the data frame identifier (also called frame ID) and data fields of the data frame of the device under test based on the interactive data 4b. The data frame identifier is used to distinguish different interactive data 4b, and the data fields are the test data information to be transmitted. Terminal device 4a can allocate a shared target data storage area (e.g., target data storage area 4f) to store the aforementioned data frame identifier and data fields. For example, the aforementioned data frame identifier can occupy twelve bits, meaning that a two-byte target data storage area 4f needs to be allocated to store the data frame identifier; the aforementioned data fields can contain eight sets of valid, parsable data, each set of data occupying one byte, meaning that the aforementioned data fields require a total of eight bytes of data storage space. It is understood that the storage space required for the aforementioned data frame identifier and the aforementioned data fields can be changed according to the needs of the actual application scenario, and this application does not impose any restrictions on this.
[0101] Step S202: Generate data set type identifiers for each interactive data according to the data set type of each interactive data in the Q interactive data to obtain Q data set type identifiers.
[0102] For some feasible implementation methods, please refer to [link / reference]. Figure 3 ,like Figure 3As shown, terminal device 4a can add a data set type identifier (also known as a flag bit) to the interactive data 4b. This data set type identifier indicates the source of the interactive data 4b, enabling terminal device 4a to display interactive data 4b with only one data set type identifier. For example, if the interactive data 4b is sent from terminal device 4a to the device under test, the interactive data 4b will carry a first characteristic value, which can be 1 to indicate the source of the interactive data 4b. After obtaining the interactive data 4b carrying the first characteristic value, terminal device 4a can determine the interactive data 4b as a first data set, and then determine the data set type identifier of the interactive data 4b in the first data set as the first data set type identifier (also known as a sent data set type identifier). If the interactive data 4b is sent from the device under test to terminal device 4a, the interactive data 4b will carry a second characteristic value, which can be 0 to indicate the source of the interactive data 4b. After receiving the interactive data 4b carrying the second feature value, the terminal device 4a identifies the interactive data 4b as the second data set, and then identifies the data set type identifier of the interactive data 4b in the second data set as the second data set type identifier (also known as the received data set type identifier). It is understood that the data set type identifier can be stored using a Boolean type, occupying only one bit of storage space. For example, the first data set type identifier can be represented by 1 (also known as true) in the storage space, and the second data set type identifier can be represented by 0 (also known as false).
[0103] Step S203: Generate Q test data based on Q data frame identifiers, Q data fields, and Q data set type identifiers, and store the Q test data in the target data storage area.
[0104] For some feasible implementation methods, please refer to [link / reference]. Figure 3 ,like Figure 3As shown, the terminal device 4a can obtain the data set type identifier, data frame identifier, and data fields based on the interaction data 4b, and then generate test data 4c. The test data 4c can be stored using the same storage type, or it can be stored using a combination of two storage types. For example, the data set type identifier can be stored using a Boolean type, and the data frame identifier and data fields can be stored using a byte type. It should be noted that using a combination of two storage types can avoid wasting storage space due to the limitation of the basic unit of the same storage type, thus saving storage space. It is understood that the target operating parameter 4d and its corresponding target machine operating data 4e are generated based on the same test data 4c, and are essentially identical, differing only in their reading format. Therefore, one target operating parameter 4d corresponds to one target machine operating data 4e. After generating the target operating parameters 4d and the target machine operating data 4e, the terminal device 4a can store the target operating parameters 4d and the target machine operating data 4e in the same target data storage area 4f, so that the terminal device 4a can simultaneously display the target operating parameters 4d and the target machine operating data 4e on the screen.
[0105] Step S102: When a trigger operation is detected on the display control, respond to the trigger operation, obtain the target machine running data corresponding to the target running parameters, store the target running parameters and their corresponding target machine running data in the same data storage area, and display at least two child window pages in the main window page.
[0106] For some feasible implementation methods, please refer to [link / reference]. Figure 4 The above Figure 2 The method for acquiring the target machine's operating data in step S102 shown can be combined with... Figure 4 The implementation of step S205 is illustrated below: Test data for conversion into target operating parameters is retrieved from the target data storage area; the test data used to convert the parameters into target operating parameters is then used to determine the target machine operating data corresponding to each target operating parameter. Please refer to [further details omitted]. Figure 3 ,like Figure 3As shown, the terminal device 4a can generate target machine operation data 4e corresponding to the target operation parameter 4d based on the test data 4c in the target data storage area 4f. Specifically, the terminal device 4a obtains the unparsed test data 4c from the target data storage area 4f and displays the test data 4c as the target machine operation data 4e. The target machine operation data 4e can indicate the electrical signal of the device under test. For example, the electrical signal can be the bit stream information obtained after the target operation parameter has been converted by A / D conversion. The bit stream information can be one or more sets of data consisting of 1s or 0s to indicate the information of the target operation parameter, where 1 can represent a high-level signal and 0 can represent a low-level signal.
[0107] In some feasible implementations, the terminal device 4a can display at least two sub-window pages in the main window page. The sub-window pages can be displayed at any position on the touch screen. Taking the generation of two sub-window pages as an example, the two sub-window pages can be arranged vertically or horizontally, or they can be two independent sub-window pages. The sub-window pages can be moved by the user as needed, and the height and width of the sub-window pages can be adjusted according to the user's needs. This application does not impose any restrictions on this.
[0108] Step S103: Display the target operating parameters to the first sub-window page of at least two sub-window pages, and display the target machine operating data to the second sub-window page of at least two sub-window pages.
[0109] For clarity, please refer to some feasible implementation methods. Figure 3 ,like Figure 3 As shown, the terminal device 4a displays a split-screen main window page 4h on its screen. This split-screen main window page 4h has at least two sub-window pages. The target operating parameter 4d can be displayed in the first sub-window page, and the target machine operating data 4e can be displayed in the second sub-window page. This application embodiment does not limit the number of the first and second sub-window pages. For example, the screen of terminal device 4a can display two first and two second sub-window pages, or it can display one first and two second sub-window pages, etc. When terminal device 4a displays the target operating parameter 4d in the first sub-window page, the display size of the target operating parameter can be scaled or rearranged within the maximum displayable parameter range of the first sub-window page. This application does not limit this.
[0110] Furthermore, terminal device 4a retrieves target machine operation data 4e corresponding to the target operation parameter 4d from the target data storage area 4f, and stores the target machine operation data 4e in the second sub-window page of the at least two sub-window pages. Similar to the display of the target operation parameter 4d in the main window page 4g, the maximum displayable data volume of the second sub-window page can be adjusted according to the actual situation. After terminal device 4a retrieves the maximum displayable data volume of the second sub-window page, if the number of target machine operation data 4e is less than the maximum displayable data volume of the second sub-window page, terminal device 4a can display all target machine operation data 4e in the order of data frame identifiers; if the number of target machine operation data 4e is greater than the maximum displayable data volume of the second sub-window page, terminal device 4a can display the target machine operation data 4e with the same maximum displayable data volume in the order of data frame identifiers. Target operation parameter 4d with data frame identifiers exceeding the maximum displayable data volume cannot be displayed in the second sub-window page. For example: if the maximum displayable data volume is 10 and the number of target operating parameters 4d is 10, the touch screen will display all 10 target operating parameters 4d in the main window page 4g; if the maximum displayable data volume is 10 and the data frame identifiers are displayed from front to back according to the generation time, and the number of target operating parameters 4d is 15, the touch screen can display the first 10 generated target operating parameters 4d in the main window page 4g.
[0111] Please see again Figure 4 The above Figure 2 Step S103 shown can be referred to together. Figure 4 The description of step S206 is the same as that of step S103 above, and will not be repeated here. In some feasible implementations, after the terminal device displays the target operating parameters on the first sub-window page and displays the target machine operating data on the second sub-window page, it can also display a first type of data display control and a second type of data display control. For details, please refer to [link to relevant documentation]. Figure 3 The step S207 shown.
[0112] Step S207: When a trigger operation is detected for any of the display controls in the first type of data display control or the second type of data display control, respond to the trigger operation, obtain test data with the target data set type identifier as the updated target machine running data, and display the updated target machine running data on the second sub-window page; the target data set type identifier is the first data set type identifier or the second data set type identifier.
[0113] For some feasible implementation methods, please refer to [link / reference]. Figure 3 ,like Figure 3 As shown, the second sub-window page can display display controls for different data set types of target machine running data 4e. These display controls may include a first data set type display control (also known as a "display sending" control) and a second data set type display control (also known as a "display receiving" control). If the terminal device 4a detects a trigger operation of the first data set type display control, it can respond by displaying the sending machine running data. Specifically, the terminal device 4a can obtain the target machine running data 4e carrying the first data set type identifier from the target data storage area 4f, use the target machine running data 4e with the first data set type identifier as the updated target machine running data 4e, and display it in the sub-window page displaying the target machine running data 4e. Similarly, if the terminal device 4a detects a trigger operation of the second data set type display control, it can respond by displaying the receiving machine running data. Terminal device 4a can acquire data carrying an identifier indicating the type of received data set, use this data as updated machine operation data, and display it on the second sub-window page displaying the machine operation data. It is understood that if multiple second sub-window pages exist, each second sub-window page can display a display control for displaying target machine operation data 4e of different data set types. The display control only controls the display of target machine operation data 4e on its respective second sub-window page. For example, if the first type data display control on the first second sub-window page is triggered, while none of the display controls on the second second sub-window page are triggered, then the first second sub-window page displays target machine operation data 4e of the first data set type, while the second second sub-window page displays target machine operation data 4e of both the first and second data set types.
[0114] Optionally, if terminal device 4a detects that both the first type of data display control and the second type of data display control have been triggered, it can respond with a restoration operation for the first type of data display control and the second type of data display control. It is understood that after the first type of data display control or the second type of data display control is triggered, it can switch to a triggered state. If the first type of data display control or the second type of data display control in the triggered state is triggered again, it can switch back to a non-triggered state. When both the first type of data display control and the second type of data display control are triggered, terminal device 4a can restore the first type of data display control and the second type of data display control, i.e., switch to a non-triggered state, to simplify the operation steps required to trigger the first type of data display control or the second type of data display control again.
[0115] Step S208: If the number of target running parameters K is greater than D, then the K target running parameters are displayed sequentially in the at least two sub-window display pages included in the first sub-window page according to the data generation time. The first sub-window display page and the page turning display control are displayed in the first sub-window page, where D is the maximum number of parameters that can be displayed in the first sub-window page.
[0116] In some feasible implementations, the aforementioned first sub-window page may also display a page-turning display control. The terminal device 4a may display the page-turning display control in the aforementioned first sub-window page. The page-turning display control is used to trigger the page-turning display operation of the terminal device 4a. The page-turning display control may include a previous page display control and a next page display control. The previous page display control is used, when triggered, to display the target running parameters 4d of the previous display page that is currently covered by the first sub-window page. The next page display control is used, when triggered, to generate a new first sub-window page to cover the current first sub-window page.
[0117] In some feasible implementations, if the terminal device 4a detects that the amount of data for the target operating parameter 4d is greater than the maximum displayable parameter amount of the first sub-window page, it generates a second sub-window page (also referred to as a second first sub-window page) with the same width and height as the first first sub-window page. Then, the terminal device 4a displays the target operating parameter 4d, which cannot be displayed on the first sub-window page, on the newly generated second sub-window page according to its generation time. That is, it displays the target operating parameter whose data amount is greater than the maximum displayable parameter amount of the first sub-window page on the second sub-window page. For example, if the first sub-window pages are displayed from early to late according to the generation time of the target operating parameter 4d, then the target operating parameter 4d generated after the target operating parameter 4d with the same maximum displayable data amount as the first sub-window page will be displayed on the newly generated second sub-window page, and the number of newly displayed target operating parameters 4d should not exceed the maximum displayable data amount.
[0118] In some feasible implementations, if terminal device 4a detects the triggering operation of the aforementioned next page display control, it can overlay the newly generated sub-window display page onto the current sub-window display page, so that terminal device 4a can display the target running parameters 4d of the next page. It is understood that the aforementioned page-turning display operation is achieved through multiple sub-window display pages of the same height and width. By overlaying the previously generated sub-window display page with the later-generated sub-window display page, the visual effect of page-turning is achieved. Similarly, if terminal device 4a detects the triggering operation of the previous page display control, it can close the currently top-level sub-window display page. Since the top-level sub-window display page overlays the previously generated sub-window display page, when the top-level sub-window display page is closed, terminal device 4a can display the previously generated sub-window display page, thus achieving the visual effect of forward page-turning.
[0119] It should be noted that the aforementioned second sub-window page may also display display controls with other functions, such as a scrolling display control that triggers scrolling operations, a scrolling pause display control that triggers pausing scrolling operations, or a display control that triggers message sending, etc. This application does not impose any restrictions on this. Optionally, if the aforementioned second sub-window page displays a scrolling display control, the process of the terminal device responding to the scrolling display operation can be referred to in the same manner. Figure 5 , Figure 5 This is a flowchart illustrating another method for split-screen data display provided in this application embodiment.
[0120] Step S501: Obtain target machine running data 4e.
[0121] In some feasible implementations, terminal device 4a can obtain Q target machine operating parameters that need to be displayed on the second sub-window page from the target data storage area 4f. The target machine operating parameters can be continuously generated as terminal device 4a operates.
[0122] Step S502: Determine whether the amount of target machine running data 4e to be displayed is greater than the maximum amount of data that can be displayed on the second sub-window page.
[0123] In some feasible implementations, terminal device 4a can obtain the maximum displayable data volume of the second sub-window page and compare it with the target machine operating parameters that need to be displayed. If Q is greater than the maximum displayable data volume, it indicates that the amount of target machine operating data 4e is greater than the maximum displayable data volume of the second sub-window page, i.e., the judgment result is yes; if Q is less than or equal to the maximum displayable data volume, it indicates that the amount of target machine operating data 4e is not greater than the maximum displayable data volume of the second sub-window page, i.e., the judgment result is no.
[0124] Step S503: Replace the previous target machine running data 4e with the next target machine running data 4e, and display the replaced target machine running data 4e on the second sub-window page.
[0125] In some feasible implementations, if the terminal device 4a detects that the quantity of the target machine operation data 4e is greater than the maximum displayable data volume of the second sub-window page, i.e., the judgment result is yes, then the target machine operation data 4e already displayed on the second sub-window page can be replaced. That is, the i-th target machine operation data 4e is replaced with the (i+1)-th target machine operation data 4e in sequence, until the target machine operation data 4e with the same maximum displayable data volume of the second sub-window page is replaced. For example, the first target machine operation data 4e is replaced with the second target machine operation data 4e, the second target machine operation data 4e is replaced with the third target machine operation data 4e, ..., the i-th target machine operation data 4e is replaced with the (i+1)-th target machine operation data 4e. It should be noted that Q and i are positive integers. Q is only used to indicate that the quantity of the target machine operation data 4e can be changed according to actual needs, and i is used to refer to the order of the target machine operation data 4e being replaced, and does not refer to an exact number.
[0126] Furthermore, the terminal device 4a can display the replaced target machine running data 4e in the second sub-window page. Then, the terminal device 4a can execute the above step S502 again. If the judgment result is yes, then continue to execute the above step S503 until the judgment result is no.
[0127] Step S504: Display the target machine's running data 4e on the second sub-window page.
[0128] In some feasible implementations, if the terminal device 4a detects that the amount of the target machine running data 4e is not greater than the maximum amount of data that can be displayed on the second sub-window page, i.e., the judgment result is negative, then the target machine running data 4e to be displayed is displayed on the second sub-window page.
[0129] Understandably, the final effect of the above steps can be as follows: if the maximum displayable data volume of the second sub-window page is 3, and the target machine running data 4e to be displayed is 5, then the terminal device 4a can first replace the first target machine running data 4e already displayed on the second sub-window page with the second target machine running data 4e already displayed on the sub-window page, then replace the second target machine running data 4e with the third target machine running data 4e, and then replace the third target machine running data 4e with the fourth target machine running data 4e. At this time, the second sub-window page displays the second, third, and fourth target machine running data 4e. The terminal device 4a can perform the replacement operation again until the second sub-window page displays the third, fourth, and fifth target machine running data 4e.
[0130] In some feasible implementations, the second sub-window page may also display a scroll pause display control, which is used to pause the scrolling display operation of the terminal device 4a when the scroll control is triggered. If the terminal device 4a recognizes the triggering operation of the scroll pause button, it pauses the replacement operation of the target machine running data 4e and displays the paused target machine running data 4e in the second sub-window page. It should be noted that the scroll display control will switch to the triggered state after being triggered. If the scroll pause display control is triggered, it will switch to the untriggered state. If the current second sub-window page does not have a replacement operation of the target machine running data 4e, that is, the scroll display control is in the untriggered state, the scroll pause display control can automatically return to the untriggered state after being triggered.
[0131] In some feasible implementations, the second sub-window page may also display a return display control, which is used to display the main window page 4g when triggered. If the terminal device 4a detects that the return display control has been triggered, it can close the split-screen display of the first and second sub-window pages and display the main window page 4g on the screen.
[0132] In some feasible implementations, the second sub-window page may also display a message sending display control, which is used by the terminal device 4a to send instructions (also referred to as messages) to the device under test. The user can enter the instruction to be interacted with in the message input box, and then trigger the message sending display control to send the instruction to the device under test. If the terminal device 4a detects that the message sending display control has been triggered, it can respond to the operation of sending instructions to the device under test.
[0133] It should be noted that the aforementioned display controls, such as the first data set type identifier display control, the second data set type identifier display control, the display control for sending, the display control for receiving, the scrolling display control, the scrolling pause display control, the previous page display control, the next page display control, the return display control, and the message sending display control, do not need to be displayed on the screen of the terminal device 4a. Instead, they can be triggered by touching a specific button on the touch screen, or by touching several specific buttons on the touch screen, or by the relevant options in the touch screen menu. This application does not impose any restrictions on this.
[0134] Therefore, in this embodiment, the terminal device can display the target operating parameters on the main window page of the terminal device's display screen, and display a display control that triggers the display of the target machine operating data corresponding to the target operating parameters. If the display control is triggered, the terminal device can obtain the target machine operating data corresponding to the target operating parameters and store the target machine operating data, target operating parameters, and test data in the same data storage area. The terminal device can also generate at least two sub-window pages, displaying the target operating parameters on the first sub-window page and displaying the target machine operating data on the second sub-window page. By generating at least two sub-window pages to display the data in a split-screen manner, the operation steps of data monitoring can be simplified, thereby improving the convenience and efficiency of data retrieval and enhancing the applicability of data display.
[0135] Please see Figure 6 , Figure 6 This is a schematic diagram of a data split-screen display device provided in an embodiment of this application. The aforementioned data split-screen display device can be a computer program (including program code) running on a computer device; for example, the data split-screen display device is an application software. This device can be used to execute the corresponding steps in the method provided in the embodiments of this application. Figure 6 As shown, the data split-screen display device 1 may include: a first display module 101, a first acquisition module 102, and a second display module 103.
[0136] The first display module 101 is used to respond to the display operation of the running parameters, obtain the target running parameters of the device under test for testing the target industrial control software, and display the target running parameters on the main window page of the terminal device's display screen. At the same time, the main window page displays the display control that triggers the display of the target machine running data corresponding to the target running parameters.
[0137] The first acquisition module 102 is used to respond to the trigger operation when a trigger operation is detected on the display control, and acquire the target machine operation data corresponding to the target operation parameters. The target operation parameters and their corresponding target machine operation data are stored in the same data storage area, and at the same time, at least two sub-window pages are displayed in the main window page.
[0138] The second display module 103 is used to display the target operating parameters to the first sub-window page of at least two sub-window pages, and to display the target machine operating data to the second sub-window page of at least two sub-window pages.
[0139] The specific functional implementation of the first display module 101 can be found in the above description. Figure 2 The corresponding embodiment of step S101, or, as described above, can be referred to. Figure 3 The corresponding embodiment includes step S204; the specific functional implementation of the first acquisition module 102 can be found in the above description. Figure 2 The corresponding embodiment's step S102, or, as described above, can be found in the following example. Figure 3 The corresponding embodiment includes step S205; the specific functional implementation of the second display module 103 can be found in the above description. Figure 2 The corresponding embodiment's step S103, or, as described above, can be found in the following example. Figure 3 Step S206 in the corresponding embodiment will not be described again here.
[0140] Please see again Figure 6 The first display module 101 is specifically used to obtain test data generated by the device under test during the software function test of the target industrial control software from the target data storage area, and to perform data conversion on the test data based on the data parsing strategy that matches the target industrial control software and the device under test, so as to obtain the target operating parameters of the device under test for testing the target industrial control software.
[0141] The target data storage area is the target data storage area in the device under test used to store the target operating parameters and the corresponding target machine operating data.
[0142] The specific functional implementation of the first display module 101 can be found in the above description. Figure 2 The corresponding embodiment of step S101, or, as described above, can be referred to. Figure 4The corresponding embodiment's step S204, or, as described above, can be found in the following example. Figure 3 The description of the test data acquisition process in the corresponding embodiments will not be repeated here.
[0143] Please see again Figure 6 The aforementioned data split-screen display device 1 may further include: a second acquisition module 104, a first generation module 105, and a second generation module 106.
[0144] The second acquisition module 104 is used to acquire Q interactive data generated by the device under test during the software function test of the target industrial control software, and to acquire the data frame identifier and data field corresponding to each interactive data in the Q interactive data, so as to obtain the Q data frame identifier and Q data field corresponding to the Q interactive data, where Q is a positive integer;
[0145] The first generation module 105 is used to generate data set type identifiers for each interactive data according to the data set type of each interactive data in the Q interactive data to obtain Q data set type identifiers.
[0146] The second generation module 106 is used to generate Q test data based on Q data frame identifiers, Q data fields and Q data set type identifiers, and store the Q test data in the target data storage area.
[0147] The specific functional implementation of the second acquisition module 104 can be found in the above description. Figure 3 The corresponding step S201 in the embodiment, or, as described above, can be found in the above. Figure 3 The corresponding embodiments describe the process of obtaining data frame identifiers and data fields; the specific functional implementation of the first generation module 105 can be found in the above description. Figure 4 The corresponding embodiment's step S202, or, as described above, can be found in the above-described embodiment. Figure 3 The description of the data set type identifier acquisition process in the corresponding embodiment; the specific functional implementation of the second generation module 106 can be found in the above. Figure 3 The corresponding embodiment's step S203, or, as described above, can be found in the following example. Figure 3 The descriptions of the generation and storage processes for test data in the corresponding embodiments will not be repeated here.
[0148] Please see again Figure 6 The aforementioned first generation module 105 includes: a first acquisition unit 1051 and a second acquisition unit 1052.
[0149] The first acquisition unit 1051 is used to acquire one or more first data with a first feature value sent from the terminal device to the device under test from Q interactive data to obtain a first data set, determine the data set type of each first data in the first data set as the first data set type, and generate a data set type identifier of each first data as the first data set type identifier;
[0150] The second acquisition unit 1052 is used to acquire one or more second data with second feature values sent from the device under test to the terminal device from Q interactive data to obtain a second data set, determine the data set type of each second data in the second data set as the second data set type, and generate a data set type identifier for each second data as the second data set type identifier.
[0151] The specific functional implementation of the first acquisition unit 1051 can be found in the above description. Figure 3 The corresponding embodiment describes the process of obtaining the first data set type identifier; the specific functional implementation of the second acquisition unit 1052 can be found in the above description. Figure 3 The description of the process for obtaining the second data set type identifier in the corresponding embodiments will not be repeated here.
[0152] Please see again Figure 6 The first acquisition module 102 mentioned above is specifically used to acquire test data from the target data storage area for conversion into target operating parameters, and to determine the target machine operating data corresponding to the target operating parameters by converting the test data for conversion into each target operating parameter.
[0153] The specific functional implementation of the first acquisition module 102 can be found in the above description. Figure 3 The corresponding embodiment's step S205, or, as described above, can be found in the above-described embodiment. Figure 3 The description of the process for acquiring target machine runtime data in the corresponding embodiments will not be repeated here.
[0154] Please see again Figure 6 The aforementioned second display module 103 includes:
[0155] The first display unit 1031 is used to display M data points of the target machine operation data in the order of data generation time on the second sub-window page when the number M of the target machine operation data corresponding to the target operation parameters is less than or equal to N. Here, N is the maximum amount of data that can be displayed on the second sub-window page.
[0156] The second display unit 1032 is used to display the N target machine operation data with the earliest data generation time among the M target machine operation data when the number M of target machine operation data corresponding to the target operation parameters is greater than N, in the second sub-window page.
[0157] The specific functional implementation methods of the first display unit 1031 and the second display unit 1032 can be found in the above description. Figure 3 The description of the display process of the target machine's running data in the corresponding embodiments will not be repeated here.
[0158] Please see again Figure 6 The aforementioned data split-screen display device 1 may further include: a third display module 107 and a fourth display module 108.
[0159] The third display module 107 is used to respond to the trigger operation when a trigger operation is detected for either the first type of data display control or the second type of data display control, obtain test data with a target data set type identifier as the updated target machine running data, and display the updated target machine running data on the second sub-window page; the target data set type identifier is either the first data set type identifier or the second data set type identifier;
[0160] The fourth display module 108 is used to respond to the triggering operation of the first type data display control and the second type data display control when a triggering operation is detected, obtain test data with a first data set type identifier and a second data set type identifier as updated target machine running data, and display the updated target machine running data on the second sub-window page.
[0161] The specific functional implementation of the third display module 107 can be found in the above description. Figure 3 The corresponding embodiment's step S207, or, as described above, can be found in the above-described embodiment. Figure 3 The corresponding embodiments describe the display process for the first type of data and the second type of data; the specific functional implementation of the fourth display module 108 can be found in the above description. Figure 3 The descriptions of the display processes for the first type of data and the second type of data in the corresponding embodiments will not be repeated here.
[0162] Please see again Figure 6The second sub-window page includes at least two sub-window display pages for page turning. The second display module 103 is specifically used to display the M data of the target machine operation data corresponding to the target operation parameters in the order of data generation time in the at least two sub-window display pages included in the second sub-window page when the number M data of the target machine operation data corresponding to the target operation parameters is greater than N. The second sub-window page displays the first sub-window display page and the page turning display control in the at least two sub-window display pages.
[0163] The specific functional implementation of the second display module 103 can be found in the above description. Figure 3 The corresponding embodiment's step S208, or, as described above, can be found in the above-described embodiment. Figure 3 The description of the page-turning display control in the corresponding embodiments will not be repeated here.
[0164] Please see again Figure 6 The page-turning display control includes a previous page display control and a next page display control. The aforementioned data split-screen display device 1 may also include: a third display unit 1033 and a fourth display unit 1034.
[0165] The third display unit 1033 is used to generate a second sub-window display page with the same width and height as the second sub-window page based on test data when a trigger operation of the second sub-window display control is detected, and to display the second sub-window page as the current display page on the display screen.
[0166] The fourth display unit 1034 is used to close the currently displayed page on the display screen when a trigger operation of the previous page display control is detected, so as to display the previous page sub-window display page that is covered by the current display page.
[0167] The specific functional implementation of the third display unit 1033 can be found in the above description. Figure 3 The corresponding embodiment describes the response process for the back page control; the specific functional implementation of the fourth display unit 1034 can be found in the above description. Figure 3 The description of the response process for the previous page controls in the corresponding embodiments will not be repeated here.
[0168] Please see again Figure 6 The aforementioned data split-screen display device 1 may further include: a fifth display module 109, a replacement module 110, and a sixth display module 111.
[0169] The fifth display module 109 is used to respond to display operations on the scrolling display control and display the display control with the function of scrolling display of target machine operating data in the second sub-window page;
[0170] The replacement module 110 is used to respond to the replacement operation of the N machine running data already displayed on the second sub-window page if the trigger operation of the scrolling display control is detected and Q is greater than N, and sequentially replace the i-th target machine running data with the i+1-th target machine running data whose data generation time is after the i-th target machine running data, until the replacement of the N target machine running data displayed on the second sub-window page is completed.
[0171] The sixth display module 111 is used to respond to the display operation of the target machine's running data if the target machine's running data is successfully replaced, and display the N successfully replaced machine running data in the second sub-window page.
[0172] The specific functional implementation of the fifth display module 109 can be found in the above description. Figure 3 The corresponding embodiment describes the display process of the scrolling display control; the specific functional implementation of the first replacement module 110 and the sixth display module 111 can be found in the above. Figure 3 The corresponding embodiment describes the process of replacing and displaying the target machine's operating data; alternatively, refer to the above. Figure 5 The corresponding implementation examples will not be described in detail here.
[0173] The method provided by the embodiments of this application can simplify the monitoring steps of data monitoring, improve viewing efficiency, and enhance applicability.
[0174] Please see Figure 7 This is a schematic diagram of the structure of a computer device provided in an embodiment of this application. Figure 7As shown, the computer device 1000 may include a processor 1001, a network interface 1004, and a memory 1005. Furthermore, the computer device 1000 may also include a user interface 1003 and at least one communication bus 1002. The communication bus 1002 is used to enable communication between these components. The user interface 1003 may include a display screen and a keyboard; optionally, the user interface 1003 may also include a standard wired interface or a wireless interface. The network interface 1004 may optionally include a standard wired interface or a wireless interface (such as a Wi-Fi interface). The memory 1005 includes random access memory (RAM) and non-volatile memory (NVM), such as erasable programmable read-only memory (EPROM). The memory 1005 may also optionally be at least one storage device located remotely from the processor 1001. Figure 7 As shown, the memory 1005, which is a computer-readable storage medium, may include an operating system, a network communication module, a user interface module, and a device control application.
[0175] In such Figure 7 In the computer device 1000 shown, the network interface 1004 provides network communication functionality; the user interface 1003 is mainly used to provide an input interface for the user; and the processor 1001 can be used to call the device control application stored in the memory 1005 to achieve:
[0176] In response to the operation parameter display operation, the target operation parameters of the device under test for the target industrial control software test are obtained, and the target operation parameters are displayed on the main window page of the terminal device's display screen. At the same time, the display control that triggers the display of the target machine operation data corresponding to the target operation parameters is displayed on the main window page.
[0177] When a trigger operation is detected on the display control, respond to the trigger operation, obtain the target machine operation data corresponding to the target operation parameters, store the target operation parameters and their corresponding target machine operation data in the same data storage area, and display at least two child window pages in the main window page;
[0178] Display the target operating parameters to the first sub-form page of at least two sub-form pages, and display the target machine operating data to the second sub-form page of at least two sub-form pages.
[0179] It should be understood that the computer device 1000 described in the embodiments of this application can execute the foregoing text. Figure 2, Figure 3 , Figure 4 , Figure 5 The description of the method for split-screen display of the data in any corresponding embodiment will not be repeated here. Furthermore, the beneficial effects of using the same method will also not be repeated.
[0180] Furthermore, it should be noted that this application embodiment also provides a computer-readable storage medium, which stores a computer program executed by the aforementioned data split-screen display device 1. The computer program includes program instructions, and when the processor executes the program instructions, it can execute the aforementioned... Figure 2 , Figure 3 , Figure 4 , Figure 5 The description of the data split-screen display method in any corresponding embodiment is already provided, and therefore will not be repeated here. Furthermore, the beneficial effects of using the same method will also not be repeated. For technical details not disclosed in the computer-readable storage medium embodiments related to this application, please refer to the description of the method embodiments of this application.
[0181] The aforementioned computer-readable storage medium can be a data split-screen display device provided in any of the foregoing embodiments or an internal storage unit of the aforementioned computer device, such as a hard drive or memory of the computer device. The computer-readable storage medium can also be an external storage device of the computer device, such as a plug-in hard drive, smart media card (SMC), secure digital (SD) card, flash card, etc., provided on the computer device. Furthermore, the computer-readable storage medium can include both internal storage units and external storage devices of the computer device. The computer-readable storage medium is used to store the computer program and other programs and data required by the computer device. The computer-readable storage medium can also be used to temporarily store data that has been output or will be output.
[0182] Furthermore, it should be noted that this application also provides a computer program product or computer program, which includes computer instructions stored in a computer-readable storage medium. The processor of a computer device loads and executes the computer instructions, causing the computer device to perform the aforementioned... Figure 2 , Figure 3 , Figure 4 or Figure 5 The method provided in the corresponding embodiment.
[0183] Those skilled in the art will recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of both. To clearly illustrate the interchangeability of hardware and software, the components and steps of the various examples have been generally described in terms of functionality in the foregoing description. Those skilled in the art can implement the described functions using different methods for each specific application, but such implementations should not be considered beyond the scope of this application.
[0184] In this application embodiment, the terms "module" or "unit" refer to a computer program or part of a computer program that has a predetermined function and works with other related parts to achieve a predetermined goal, and can be implemented wholly or partially using software, hardware (such as processing circuitry or memory), or a combination thereof. Similarly, a processor (or multiple processors or memory) can be used to implement one or more modules or units. Furthermore, each module or unit can be part of an overall module or unit that includes the functionality of that module or unit.
[0185] The above-disclosed embodiments are merely preferred embodiments of this application and should not be construed as limiting the scope of this application. Therefore, any equivalent variations made in accordance with the claims of this application shall still fall within the scope of this application.
Claims
1. A method for split-screen data display, characterized in that, The method includes: During the software function test of the target industrial control software, Q interactive data generated by the device under test are obtained. The data frame identifier and data field corresponding to each of the Q interactive data are obtained to obtain the Q data frame identifiers and Q data fields corresponding to the Q interactive data, where Q is a positive integer. Based on the data set type of each of the Q interactive data, generate the data set type identifier of each interactive data to obtain Q data set type identifiers; Q test data are generated based on the Q data frame identifiers, the Q data fields, and the Q data set type identifiers, and the Q test data are stored in the target data storage area. In response to the display operation of the operating parameters, the device under test (DUT) retrieves the test data generated during the software function test of the target industrial control software from the target data storage area, and performs data conversion on the test data based on the data parsing strategy that matches the target industrial control software and the DUT to obtain the target operating parameters of the DUT for testing the target industrial control software. The target data storage area is a data storage area in the DUT used to store the target operating parameters and their corresponding target machine operating data. The target operating parameters are displayed on the main window page of the terminal device's display screen, and a display control that triggers the display of the target machine operating data corresponding to the target operating parameters is also displayed on the main window page. When a trigger operation is detected on the display control, the system responds to the trigger operation, obtains the target machine operation data corresponding to the target operation parameters, and stores the target operation parameters and the corresponding target machine operation data in the same data storage area. At the same time, at least two child window pages are displayed on the main window page. The target operating parameters are displayed on the first sub-window page of the at least two sub-window pages, and the target machine operating data is displayed on the second sub-window page of the at least two sub-window pages.
2. The method according to claim 1, characterized in that, The step of generating data set type identifiers for each of the Q interactive data sets based on their respective data set types to obtain Q data set type identifiers includes: From the Q interactive data, one or more first data with a first feature value sent from the terminal device to the device under test are obtained to obtain a first data set. The data set type of each first data in the first data set is determined as the first data set type, and the data set type identifier of each first data is generated as the first data set type identifier. A second data set is obtained by acquiring one or more second data with second feature values sent by the device under test to the terminal device from the Q interactive data, and the data set type of each second data in the second data set is determined as the second data set type, and a data set type identifier of each second data is generated as the second data set type identifier.
3. The method according to claim 2, characterized in that, The step of obtaining the target machine operating data corresponding to the target operating parameters includes: Test data for conversion into target operating parameters is obtained from the target data storage area, and the test data for conversion into each target operating parameter is used to determine the target machine operating data corresponding to the target operating parameters.
4. The method according to claim 3, characterized in that, The step of displaying the target machine's operating data to the second sub-window page of the at least two sub-window pages includes: If the number M of the target machine running data corresponding to the target running parameters is less than or equal to N, then M of the target machine running data are displayed sequentially on the second sub-window page in the order of data generation time, where N is the maximum amount of data that can be displayed on the second sub-window page; If the number M of target machine operation data corresponding to the target operation parameter is greater than N, then the N target machine operation data with the earliest data generation time among the M target machine operation data will be displayed sequentially on the second sub-window page.
5. The method according to claim 4, characterized in that, The second sub-form page also displays a first type of data display control and a second type of data display control; after displaying the target machine's operating data to the second sub-form page of the at least two sub-form pages, the method further includes: When a trigger operation is detected targeting either the first type of data display control or the second type of data display control, the system responds to the trigger operation, acquires test data with a target data set type identifier as updated target machine running data, and displays the updated target machine running data on the second sub-window page; the target data set type identifier is either the first data set type identifier or the second data set type identifier. If a trigger operation is detected for the first type of data display control and the second type of data display control, then respond to the trigger operation for the first type of data display control and the second type of data display control, obtain test data with the first data set type identifier and the second data set type identifier as the updated target machine running data, and display the updated target machine running data on the second sub-window page.
6. The method according to claim 3, characterized in that, The method further includes: In response to a display operation on the scrolling display control, a display control with the function of scrolling the target machine's operating data is displayed in the second sub-window page; If the trigger operation of the scrolling display control is detected and Q is greater than N, then a replacement operation for the N machine running data already displayed on the second sub-window page is responded to, and the i-th target machine running data is replaced with the (i+1)-th target machine running data whose data generation time is after the i-th target machine running data, until the replacement of the N target machine running data displayed on the second sub-window page is completed; In response to the display operation of the target machine's operating data, the N target machine operating data after successful replacement are displayed on the second sub-window page.
7. The method according to claim 1, characterized in that, The first sub-window page includes at least two sub-window display pages that are displayed by page turning; displaying the target running parameters to the first sub-window page of the at least two sub-window pages includes: If the number of data K of the target operating parameters is detected to be greater than D, then the K target operating parameters are displayed sequentially in the at least two sub-window display pages included in the first sub-window page according to the data generation time, and the first sub-window display page and the page turning display control of the at least two sub-window display pages are displayed on the first sub-window page, where D is the maximum number of parameters that can be displayed on the first sub-window page.
8. The method according to claim 7, characterized in that, The page-turning display control includes a previous page display control and a next page display control; the method further includes: If the trigger operation of the back page display control is detected, a back page sub-window display page with the same width and height as the first sub-window page is generated according to the test data, and the back page sub-window display page covers the first sub-window page to be displayed on the display screen as the current display page; If a trigger operation of the previous page display control is detected, the currently displayed page on the display screen is closed, and the previous page sub-window display page, which is covered by the currently displayed page, is displayed.
9. A device for split-screen data display, characterized in that, The device includes: The interactive data acquisition module is used to acquire Q interactive data generated by the device under test during the software function test of the target industrial control software, and to acquire the data frame identifier and data field corresponding to each of the Q interactive data to obtain the Q data frame identifiers and Q data fields corresponding to the Q interactive data, where Q is a positive integer; The generation module is used to generate data set type identifiers for each of the Q interactive data according to the data set type of each interactive data to obtain Q data set type identifiers; The storage module is configured to generate Q test data based on the Q data frame identifiers, the Q data fields, and the Q data set type identifiers, and store the Q test data in the target data storage area; The first display module is used to respond to the display operation of the operating parameters, obtain the test data generated by the device under test during the software function test of the target industrial control software from the target data storage area, and perform data conversion on the test data based on the data parsing strategy matching the target industrial control software and the device under test to obtain the target operating parameters of the device under test for testing the target industrial control software. The target data storage area is a data storage area in the device under test used to store the target operating parameters and the corresponding target machine operating data. The target operating parameters are displayed on the main window page of the terminal device's display screen, and a display control that triggers the display of the target machine operating data corresponding to the target operating parameters is displayed on the main window page. The first acquisition module is used to respond to the trigger operation when a trigger operation is detected on the display control, and acquire the target machine operation data corresponding to the target operation parameter. The target operation parameter and the corresponding target machine operation data are stored in the same data storage area, and at the same time, at least two sub-window pages are displayed in the main window page. The second display module is used to display the target operating parameters to the first sub-window page of the at least two sub-window pages, and to display the target machine operating data to the second sub-window page of the at least two sub-window pages.
10. A computer device, characterized in that, include: Processor, memory, and network interface; The processor is connected to the memory and the network interface, wherein the network interface is used to provide data communication functions, the memory is used to store program code, and the processor is used to execute the program code to perform the method according to any one of claims 1-8.
11. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program adapted to be loaded by a processor and to execute the method of any one of claims 1-8.
12. A computer program product, characterized in that, Includes a computer program / instruction that, when executed by a processor, implements the method described in any one of claims 1-8.
Citation Information
Patent Citations
Display method and electronic device
WO2021023021A1