Interaction method of measuring instrument interface and measuring instrument

By displaying the SCPI command hyperlink bound to the control on the graphical user interface of the measuring instrument, the problem of users taking a long time to find SCPI commands is solved, the control efficiency and convenience are improved, and the complexity of user operations is reduced.

CN118192863BActive Publication Date: 2024-08-23深圳市万里眼技术有限公司
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410608226.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-05-16
Publication Date
2024-08-23
Estimated Expiration
2044-05-16

AI Technical Summary

Technical Problem

When users use SCPI commands to control measuring instruments, they need to find a large number of commands, resulting in poor convenience and efficiency and high user requirements.

Method used

By displaying the hyperlink of the SCPI command bound to the control on the graphical user interface of the measuring instrument, users can quickly locate the corresponding entry in the command manual, reducing search time and improving control efficiency.

Benefits of technology

It saves users time to search for SCPI commands, improves the convenience and efficiency of controlling measuring instruments based on SCPI commands, and reduces users' requirements for measuring instrument control.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118192863B
    Figure CN118192863B
Patent Text Reader

Abstract

The present application provides an interactive method for a measuring instrument interface and a measuring instrument, the method comprising: in response to a selection event of a target control in a graphical user interface of a measuring instrument or a controller of the measuring instrument, based on a command identifier bound to the target control, searching for display content corresponding to the command identifier from a command information table; generating a hyperlink with the display content as a title; the object to which the hyperlink jumps is an entry corresponding to a target command in a command manual of the measuring instrument, the target command being a command corresponding to the command identifier; and displaying the hyperlink at a preset position of the target control. By displaying a hyperlink near a control, a user can directly locate the SCPI command bound to the control based on the hyperlink, thereby saving time in searching for commands, reducing requirements on users, and improving the efficiency and convenience of controlling instruments based on SCPI commands.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of measuring instruments, and in particular to an interactive method for a measuring instrument interface and a measuring instrument. Background Art

[0002] SCPI (Standard Commands for Programmable Instrument) is a set of standard syntax and commands for controlling programmable measuring instruments. Users can use SCPI commands to achieve automated instrument control.

[0003] The GUI (Graphical User Interface) of electronic measuring instruments (such as oscilloscopes, spectrum analyzers, etc.) provides a variety of controls to facilitate users to control the instrument. Due to the different SCPI command sets corresponding to the software of different measuring instruments and the multiple software functions of measuring instruments, users need to master a large number of SCPI commands before they can maturely control the measuring instruments, which places high demands on users.

[0004] When a user wants to control an instrument through SCPI commands, he needs to determine the required SCPI commands based on the commands recorded in the SCPI command manual and the functions they implement. This results in a long time spent on querying SCPI commands, and the convenience of controlling measuring instruments based on SCPI commands is poor.

[0005] Therefore, there is an urgent need to provide a convenient and efficient measuring instrument control solution. Summary of the invention

[0006] The present application provides an interactive method for a measuring instrument interface and a measuring instrument, which facilitates users to understand the SCPI commands required to control the controls by displaying hyperlinks to the contents of SCPI commands bound to the controls, without the need for users to search for SCPI commands in a manual, thereby improving the efficiency and convenience of controlling the measuring instrument based on SCPI commands.

[0007] In a first aspect, the present application provides an interactive method for a measuring instrument interface, comprising:

[0008] In response to a selection event of a target control in a graphical user interface of the measuring instrument, based on a command identifier bound to the target control, searching a command information table for display content corresponding to the command identifier;

[0009] Generate a hyperlink with the display content as the title; the object to which the hyperlink jumps is an entry corresponding to a target command in a command manual of the measuring instrument, and the target command is a command corresponding to the command identifier;

[0010] The hyperlink is displayed at a preset position of the target control.

[0011] Optionally, in response to a selection event of a target control in a graphical user interface of a measuring instrument, based on a command identifier bound to the target control, searching a command information table for display content corresponding to the command identifier includes:

[0012] In response to a selection event of a target control in a graphical user interface of the measuring instrument, a value of a preset property of the target control is read to obtain a command identifier bound to the target control;

[0013] Based on the command identifier bound to the target control, the display content corresponding to the command identifier is searched from the command information table, where the display content is the title or extended field of the command corresponding to the command identifier.

[0014] Optionally, the command information table includes a plurality of command identifiers, display contents corresponding to the command identifiers, and links corresponding to the command identifiers, and generating a hyperlink with the display contents as titles includes:

[0015] The hyperlink is generated by taking the link corresponding to the command identifier in the command information table as a jump link and taking the display content as a title.

[0016] Optionally, displaying the hyperlink at a preset position of the target control includes:

[0017] A command component including the hyperlink and a copy button located on one side of the hyperlink is displayed at a preset position of the target control, and the copy button is used to copy information of the command corresponding to the hyperlink.

[0018] Optionally, in response to a selection event of a target control in a graphical user interface of a measuring instrument, based on a command identifier bound to the target control, searching a command information table for display content corresponding to the command identifier includes:

[0019] In response to a selection event of a target control in a graphical user interface of a measuring instrument, for each control within a preset range of the target control, based on a command identifier bound to the control, a display content corresponding to the command identifier is searched from a command information table.

[0020] Accordingly, displaying the hyperlink at a preset position of the target control includes:

[0021] For each control located within the preset range of the target control, a hyperlink corresponding to the control is displayed at the preset position of the control, or a command component including a hyperlink corresponding to the control and a copy button located on one side of the hyperlink corresponding to the control is displayed at the preset position of the control, wherein the copy button is used to copy the information of the command corresponding to the hyperlink in the command component, and the hyperlink corresponding to the control is a hyperlink with a display content corresponding to the command identifier bound to the control as a title.

[0022] Optionally, when there are multiple controls within the preset range of the target control, the method further includes:

[0023] Based on the length and width of the preset range and the number and / or position of controls within the preset range of the target control, the length and width of the command component corresponding to each control within the preset range of the target control are determined.

[0024] Optionally, the method further includes:

[0025] When an operation instruction of the measuring instrument is detected, or the target control is switched from a selected state to an unselected state, or the target control is in a selected state for longer than a preset time, the command component is hidden.

[0026] Optionally, the method further includes:

[0027] In response to a click event of a hyperlink in the displayed command component, jump to the entry corresponding to the hyperlink in the command manual; or,

[0028] In response to a copy instruction of a copy button in the displayed command component, information of the command corresponding to the command component is copied to a clipboard.

[0029] Optionally, the method further includes:

[0030] If it is detected that the mouse hovers over the area corresponding to the target control for a preset time, or if a long press event of the area corresponding to the target control is detected, a selection event of the target control is triggered.

[0031] In a second aspect, the present application also provides an interactive device for a measuring instrument interface, comprising:

[0032] A display content search module, for responding to a selection event of a target control in a graphical user interface of the measuring instrument, and searching, based on a command identifier bound to the target control, a display content corresponding to the command identifier from a command information table;

[0033] A hyperlink generation module, used to generate a hyperlink with the display content as the title; the object to which the hyperlink jumps is an entry corresponding to a target command in the command manual of the measuring instrument, and the target command is a command corresponding to the command identifier;

[0034] A component display module is used to display the hyperlink at a preset position of the target control.

[0035] In a third aspect, the present application further provides a measuring instrument, comprising a display, a processor, and a memory communicatively connected to the processor;

[0036] The memory stores computer-executable instructions;

[0037] The processor executes the computer-executable instructions stored in the memory to implement the method provided in the first aspect of the present application.

[0038] In a fourth aspect, an embodiment of the present application further provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer-executable instructions. When a processor executes the computer-executable instructions, the method provided in the first aspect is implemented.

[0039] In a fifth aspect, an embodiment of the present application further provides a computer program product, including a computer program, which implements the method provided in the first aspect when executed by a processor.

[0040] The interactive method of the measuring instrument interface and the measuring instrument provided by the present application, when the user needs to control the measuring instrument through SCPI commands, in order to assist the user to quickly determine the required SCPI commands, the present application realizes that when the control displayed on the graphical user interface is selected, a hyperlink of the SCPI command bound to the control is displayed, and the hyperlink can jump to the entry corresponding to the SCPI command bound to the control in the command manual, so as to facilitate the user to quickly find the SCPI command, and at the same time, it can be determined whether the viewed SCPI command can achieve the expected function based on the information recorded in the command manual. By displaying the hyperlink pointing to the SCPI command, the user's time for finding the SCPI command is saved, the efficiency of the control program development is improved, the convenience of controlling the measuring instrument based on the SCPI command is improved, and the requirements for the user of the measuring instrument control are reduced. BRIEF DESCRIPTION OF THE DRAWINGS

[0041] Figure 1 A schematic diagram of a process of controlling a measuring instrument based on SCPI commands;

[0042] Figure 2 A flow chart of an interactive method for a measuring instrument interface provided in an embodiment of the present application;

[0043] Figure 3A schematic diagram of a graphical user interface displaying a hyperlink provided in an embodiment of the present application;

[0044] Figure 4 A schematic diagram of a flow chart of another interactive method of a measuring instrument interface provided in an embodiment of the present application;

[0045] Figure 5 A schematic diagram of a graphical user interface displaying multiple command components provided in an embodiment of the present application;

[0046] Figure 6 A schematic diagram of the structure of an interactive device for a measuring instrument interface provided in an embodiment of the present application;

[0047] Figure 7 A schematic diagram of the structure of a measuring instrument provided in an embodiment of the present application.

[0048] The above drawings show clear embodiments of the present disclosure, which will be described in more detail below. These drawings and text descriptions are not intended to limit the scope of the present disclosure in any way, but to illustrate the concepts of the present disclosure to those skilled in the art by referring to specific embodiments. DETAILED DESCRIPTION

[0049] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.

[0050] Program control function has become an indispensable and important interface function of modern measuring instruments, and the program control function of measuring instruments needs to be implemented with the help of SCPI commands.

[0051] Figure 1 The following is a schematic diagram of a process of controlling a measuring instrument based on SCPI commands. Figure 1 As shown in the figure, in order to help users learn, find and use SCPI commands, manufacturers will provide SCPI command manuals that match the measuring instruments.

[0052] The user can query the details of the SCPI command by entering the keyword of the SCPI command in the SCPI command manual, control the measuring instrument based on the queried SCPI command, or perform software programming of the measuring instrument based on the queried SCPI command.

[0053] In the above method, when the user does not know the keyword of the SCPI command, the user needs to manually search for the required SCPI command from a large number of SCPI commands in the SCPI command manual, which is time-consuming and inefficient.

[0054] In order to improve the efficiency of searching for SCPI commands, the present application provides an interactive method for a measuring instrument interface, which realizes displaying a hyperlink of the SCPI command bound to a selected control on the measuring instrument GUI interface, so as to quickly locate the SCPI command corresponding to the control in the SCPI command manual through the hyperlink, and at the same time, other SCPI commands can be searched by switching the selected control, thereby further improving the efficiency of SCPI command search.

[0055] The technical solution of the present application and how the technical solution of the present application solves the above-mentioned technical problems are described in detail below with specific embodiments. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of the present application will be described below in conjunction with the accompanying drawings.

[0056] Figure 2 This is a flow chart of an interactive method for a measuring instrument interface provided in an embodiment of the present application. The method can be executed by an electronic device with corresponding data processing capabilities, such as a measuring instrument, a controller of a measuring instrument, i.e., a control terminal with control software for the measuring instrument installed, etc. This application does not limit this. Figure 2 As shown, the interactive method of the measuring instrument interface includes the following steps:

[0057] Step S201, in response to a selection event of a target control in a graphical user interface of a measuring instrument or a controller of the measuring instrument, based on a command identifier bound to the target control, searching a command information table for display content corresponding to the command identifier.

[0058] The controller of the measuring instrument can also be called the control end. The controller can be implemented by software, also called control software. The control software interacts with the user through a generated graphical user interface.

[0059] The control end is installed with control software for controlling the measuring instrument. The user operates in the graphical user interface provided by the control software to trigger the selection event of the target control.

[0060] The commands described in this application refer to commands used to control the operation of electronic equipment such as measuring instruments, for example, SCPI commands, ICL (Instrument Connectivity Language) instructions or other commands. In the embodiments of this application, SCPI commands are used as an example for introduction.

[0061] The command information table may include multiple command identifiers and their corresponding display contents.

[0062] In the command information table, the command identifier and the display content may be in a one-to-one correspondence, or multiple command identifiers may correspond to the same display content.

[0063] Step S202: Generate a hyperlink with the displayed content as the title.

[0064] The object to which the hyperlink jumps is an entry corresponding to a target command in a command manual of the measuring instrument, and the target command is a command corresponding to a command identifier. The command manual may be stored in the measuring instrument or a control terminal where control software of the measuring instrument is installed, or in the cloud, and information in the command manual stored in the cloud may be obtained through the Internet.

[0065] Step S203: display the hyperlink at a preset position of the target control.

[0066] The measuring instrument may be any programmable measuring instrument, such as an oscilloscope, a spectrum analyzer, a network analyzer, etc., and this application does not limit this.

[0067] The target control can be any functional control, such as a button, a text box, a check box, etc., and this application does not limit this.

[0068] The selection event of the target control is triggered when the target control is selected. The target control can be selected by mouse click, long press, hover, or other methods, or by voice command, touch screen touch command, or other methods.

[0069] When the state of the target control is selected, the selected event is triggered. The control in the selected state can be the control that the mouse hovers over for a period of time, or when the display of the measuring instrument is a touch screen, the corresponding area of ​​the displayed target control on the screen is touched or long pressed by the user's finger, stylus, etc., and the state of the target control is selected.

[0070] Exemplarily, if it is monitored that the mouse hovers over the area corresponding to the target control in the graphical user interface for a certain period of time, then the selection event of the target control is monitored.

[0071] Exemplarily, if a long press event of an area corresponding to a target control in a graphical user interface is monitored, such as a user's finger long pressing an area corresponding to a target control on a touch screen, a selection event of the target control is monitored.

[0072] When a selection event of a target control displayed in a graphical user interface of a measuring instrument is monitored, a command identifier bound to the target control is obtained.

[0073] In order to control the measuring instrument through the control, when the measuring instrument is started, the binding relationship between each control of the measuring instrument software and the SCPI command needs to be loaded. The binding relationship can be pre-stored in the memory of the measuring instrument or the control end where the control software of the measuring instrument is installed. The binding relationship can be updated when adding a control, deleting a control, or modifying a control.

[0074] Exemplarily, in this binding relationship, a control is bound to a SCPI command.

[0075] The measuring instrument, the controller of the measuring instrument or the control terminal installed with the control software of the measuring instrument can determine the command identifier (ID) of the SCPI command bound to the target control based on the binding relationship between the control and the SCPI command.

[0076] For each control of the measuring instrument, an attribute, such as a preset attribute, can be added to each control to bind the command identifier of the SCPI command. Then, when the control is selected, that is, when the selection event of the control is monitored, the command identifier of the SCPI command (recorded as the target command) bound to the control is read through the attribute of the control.

[0077] For example, taking the clear control as an example, the command identifier of the SCPI command bound thereto may be "CLS", and assuming that ID represents a preset attribute, the key-value pair representing the preset attribute of the clear control is "ID:CLS". Taking the voltage setting control as an example, the command identifier of the SCPI command bound thereto may be "VOLTage", that is, the key-value pair representing the preset attribute of the voltage setting control is "ID:VOLTage".

[0078] The command information table is used to record the information of each SCPI command bound to the control, including command identification, display content, etc. The display content of the SCPI command can be the keyword, command template, custom content, etc. of the SCPI command.

[0079] The SCPI command template includes parameters of the SCPI command, such as “:MTESt:FOLDing:default”, where “MTESt” is the abbreviation of a module, “FOLDing” is the abbreviation of a function under the module, such as a display function, an interface pop-up function, etc., and “default” means using the default configuration, such as using the default style display.

[0080] After obtaining the command identifier of the SCPI command bound to the target control, the command identifier is used as an index to search the command information table for the display content of the SCPI command bound to the target control, that is, the target command, that is, the display content corresponding to the command identifier.

[0081] The display content corresponding to the command identifier is used as the title of the hyperlink, and the entry corresponding to the target command in the command manual of the measuring instrument is used as the jump link such as the URL address to obtain a hyperlink. Among them, the title of the hyperlink is the content that the hyperlink will display on the interface.

[0082] Optionally, in response to a selection event of a target control in a graphical user interface of a measuring instrument or a controller of the measuring instrument, based on a command identifier bound to the target control, searching a command information table for display content corresponding to the command identifier, including:

[0083] In response to a selection event of a target control in a graphical user interface of a measuring instrument or a controller of the measuring instrument, the value of a preset property of the target control is read to obtain a command identifier bound to the target control; based on the command identifier bound to the target control, display content corresponding to the command identifier is searched from a command information table, wherein the display content is a title or an extended field of the command corresponding to the command identifier.

[0084] In some implementations, the command information table may include a command identifier, a title, and an extension field of each SCPI command bound to the control.

[0085] After monitoring the selected event of the target control, the value of the preset property of the target control is read to obtain the command identifier of the SCPI command bound to the target control, such as ID. Based on the command identifier, the display content corresponding to the command identifier can be searched from the command information table.

[0086] Exemplarily, the displayed content may be determined to be a title or an extended field of a SCPI command through user configuration information.

[0087] The title of a SCPI command may include one or more keywords of the SCPI command. The extended field of a SCPI command is used to fill in user-defined content and may support multiple languages.

[0088] Optionally, the command information table includes multiple command identifiers, display content corresponding to each command identifier, and a link corresponding to each command identifier, and generating a hyperlink with the display content as a title includes:

[0089] The hyperlink is generated by taking the link corresponding to the command identifier in the command information table as a jump link and taking the display content as a title.

[0090] Specifically, the command information table may store command identifiers (ID), titles (Title), links (Link) and extended fields of multiple SCPI commands. The links stored in the command information table may point to entries corresponding to the SCPI commands in the command manual.

[0091] After obtaining the command identifier bound to the selected target control, obtain the link corresponding to the command identifier and the title or extended field from the command information table, use the title or extended field corresponding to the command identifier as the display content, and use the link corresponding to the command identifier as the jump link to obtain a hyperlink, which is displayed in the graphical user interface, so that the user can open the entry corresponding to the target command in the command manual by clicking the hyperlink.

[0092] For example, the command manual includes relevant content of each SCPI command matching the measuring instrument, such as the format, code, function introduction, usage examples, etc. of the SCPI command. By displaying the hyperlink, the user can search for the SCPI command bound to the control by clicking the hyperlink, and the search efficiency is high.

[0093] The preset position may be below or to one side of the target control, and the hyperlink may be displayed in the form of a dialog box.

[0094] For example, Figure 3 A schematic diagram of a graphical user interface for displaying hyperlinks provided in an embodiment of the present application, such as Figure 3 As shown, the graphical user interface of the measuring instrument currently displays four controls, namely control 31, control 32, control 33 and control 34. The positions of the controls are as follows: Figure 3 Assume that after the user hovers the mouse over the control 32 for a certain period of time, such as 3 seconds, the GUI monitors the event and determines that the selected event of the control 32 is monitored. Then, the display content of the SCPI command bound to the control 32 is displayed below the control 32, such as a hyperlink of OUTPut:STATe.

[0095] In another example, after displaying a hyperlink with the display content corresponding to the SCPI command bound to the target control as the title, if the user operates the measuring instrument, or monitors that the state of the target control is not selected, such as the mouse leaves the area corresponding to the target control, the displayed hyperlink is hidden.

[0096] The interactive method of the measuring instrument interface provided by the present application, when the user needs to control the measuring instrument through SCPI commands, in order to assist the user to quickly determine the required SCPI commands, the present application realizes that when the control displayed on the graphical user interface is selected, a hyperlink of the SCPI command bound to the control is displayed, and the hyperlink can jump to the entry corresponding to the SCPI command bound to the control in the command manual, so as to facilitate the user to quickly find the SCPI command, and at the same time, it can be determined whether the viewed SCPI command can achieve the expected function based on the information recorded in the command manual. By displaying the hyperlink pointing to the SCPI command, the time for finding the SCPI command is saved, the efficiency of the control program development is improved, the convenience of controlling the test instrument based on the SCPI command is improved, and the requirements for the user of the measuring instrument control are reduced.

[0097] In some implementations, after a hyperlink with the searched display content as a title is generated, a command component including the hyperlink and a copy button may be displayed to copy information of the corresponding SCPI command, such as a command template or a command format, through the copy button.

[0098] After the command components or hyperlinks corresponding to the controls within the preset range of the target control are displayed, the user can quickly find the required SCPI command by interacting with the displayed command components or hyperlinks, such as clicking on the hyperlinks.

[0099] Exemplarily, the user may open the hyperlink of the displayed command component by inputting a preset shortcut key or copy the command template of the corresponding SCPI command through a copy button therein.

[0100] Figure 4 A flow chart of another interactive method for a measuring instrument interface provided in an embodiment of the present application. This embodiment is described by taking the application to a measuring instrument as an example. Figure 2 On the basis of the illustrated embodiment, step S201 and step S202 are further defined, and a step of adding interaction of displayed command components and a step of adding hiding displayed command components are added after step S203. Figure 2 The contents already introduced in the illustrated embodiment will not be repeated here. Figure 4 As shown, the interactive method of the measuring instrument interface includes the following steps:

[0101] Step S401: If it is detected that the mouse hovers over the area corresponding to the target control for a preset time, or if a long press event of the area corresponding to the target control is detected, a selection event of the target control is triggered.

[0102] Exemplarily, the preset time may be 1s, 2s, 3s or other time.

[0103] The above selected events can be monitored through GUI monitoring events.

[0104] Mouse hovering (hover) means that the user places the mouse pointer or cursor in the area corresponding to the target control through the input device. When the mouse hovers over the area corresponding to the target control for a preset time, such as 2.5s, the selection event of the target control is monitored, and the state of the target control is selected.

[0105] In addition to the mouse triggering the selection event, when the display of the measuring instrument is a touch screen, if the user long presses the area corresponding to the target control on the touch screen, the selection event of the target control is monitored, and the state of the target control is selected.

[0106] The time interval corresponding to the long press event can be 0.5s, 1s or other time.

[0107] Step S402, in response to a selection event of a target control in the graphical user interface of the measuring instrument, for each control within a preset range of the target control, based on a command identifier bound to the control, searching a command information table for display content corresponding to the command identifier.

[0108] The preset range can be expressed in pixels on the screen or as a percentage of the screen size. The preset range is a configurable parameter and can be set based on requirements.

[0109] When a control displayed on the graphical user interface is selected, that is, after the selection event of the control is monitored, the control is determined as the target control, and the preset properties of each control within the preset range of the target control are read to obtain the command identifier bound to each control within the preset range of the target control. The controls within the preset range of the target control include the target control itself.

[0110] In some embodiments, the preset range can default to the screen range, so that when a selection event of any control currently displayed in the graphical user interface of the measuring instrument is monitored, the command identifier bound to each currently displayed control is read to display a hyperlink or command component of the display content corresponding to each control.

[0111] Exemplarily, the preset range may be a rectangular range, and the row where the target control is located may be the center line or one of the sides of the rectangular range.

[0112] Specifically, for each control within the preset range of the target control, based on the command identifier bound to the control, the display content and link corresponding to the command identifier are searched from the command information table to generate a hyperlink based on the display content and the link, the title of the hyperlink is the display content corresponding to the command identifier, and the jump link is the connection corresponding to the command identifier. The display content can be a title or an extended field in the command information table.

[0113] Step S403: Using the link corresponding to the command identifier in the command information table as a jump link and using the display content as a title, a hyperlink corresponding to the control is generated.

[0114] The hyperlink corresponding to the control uses the link corresponding to the command identifier bound to the control as the jump link and uses the display content corresponding to the command identifier bound to the control as the title.

[0115] The generated hyperlink is used to connect the control and the entry of the SCPI command bound to the control in the command manual, so that the user can quickly locate the content of the SCPI command bound to the control in the command manual by clicking the hyperlink.

[0116] After obtaining the hyperlinks corresponding to the controls within the preset range of the target control, a hyperlink of the display content corresponding to the control may be displayed at the preset position of each control.

[0117] In some implementations, a command component including a hyperlink corresponding to the control may be displayed at a preset position of the control, such as the command component provided in step S404.

[0118] Step S404: Displaying a command component including a hyperlink corresponding to the control and a copy button located on one side of the hyperlink corresponding to the control at a preset position of the control.

[0119] The copy button is used to copy the information of the command corresponding to the hyperlink in the command component.

[0120] For example, Figure 5 A schematic diagram of a graphical user interface showing multiple command components provided in an embodiment of the present application, such as Figure 5 As shown, the measuring instrument graphical user interface currently displays four controls, namely control 51, control 52, control 55 and control 54. The positions of the controls are as follows: Figure 5 Assume that the display of the measuring instrument is a touch screen, monitor the event through the GUI, and determine that the selected event of the control 51 is monitored, and the control 51 is a target control. The preset range is as follows Figure 5 As shown in the dotted box in Figure 5 It can be seen that the controls located in the preset range of the control 51 include the control 51 and the control 52. After the selection event of the control 51 is monitored, the command components corresponding to the control 51 and the control 52 are displayed in the graphical user interface. Figure 5Take the titles of the hyperlinks in the command components corresponding to controls 51 and 52, that is, the contents displayed on the interface are ":MTESt:FOLDing:default" and ":MTESt:FOLDing:clear" as an example. The button on the left side of the hyperlink is a copy button.

[0121] When there are multiple controls within the preset range of the target control, the size of the command component corresponding to each control can be adaptively adjusted to prevent the display of the command component from affecting the display of the graphical user interface control.

[0122] Specifically, the size of each command component may be determined based on the layout of each command component displayed within a preset range, such as the location, the total number of command components, etc.

[0123] Optionally, when there are multiple controls within the preset range of the target control, the method further includes:

[0124] Based on the length and width of the preset range and the number and / or position of controls within the preset range of the target control, the length and width of the command component corresponding to each control within the preset range of the target control are determined.

[0125] In some embodiments, the command components corresponding to multiple controls within the preset range of the target control have the same size. The preset range can be represented by an outer bounding box, and the target control is located within the outer bounding box. The outer bounding box can be centered on the target control, or the upper boundary of the target control is the upper boundary. The controls within the outer bounding box are the controls located within the preset range of the target control. The size of the outer bounding box is a configurable parameter. The number of pixels included in the length and width of the preset range can be determined based on the size of the preset range, i.e., the length and width, and the resolution of the measuring instrument screen; the size of the command component, i.e., the length and width, is determined in combination with the maximum number of rows and the maximum number of columns of each command component to be displayed within the preset range, and the length and width of the command component can be represented by the number of pixels.

[0126] In other embodiments, the sizes of the command components corresponding to the multiple controls within the preset range of the target control are different. The size of each command component can be determined based on the position of each control within the preset range of the target control, the space between each control and the adjacent control, and the principle of avoiding the displayed command components from blocking each other or the command components blocking the displayed controls.

[0127] Exemplarily, the display content of the command component hyperlink includes multiple keywords of the corresponding SCPI command, and different keywords are separated by colons. When the size of the command component is not enough to display the corresponding display content, some keywords in the display content can be omitted, such as the first keyword or the last keyword.

[0128] In some implementations, the method further includes step S405 to hide the command component.

[0129] Step S405, when an operation instruction of the measuring instrument is detected, or the target control is switched from a selected state to an unselected state, or the target control is in a selected state for longer than a preset time, the command component is hidden.

[0130] After the command components corresponding to the controls within the preset range of the target control are displayed, if it is detected that the user operates the measuring instrument, or the state of the target control is switched from the selected state that triggers the selection event to the unselected state, the displayed command components are hidden.

[0131] Exemplarily, the user triggers the display of command components corresponding to each control within a preset range of the target control by hovering the mouse over the area corresponding to the target control. If the mouse leaves the area corresponding to the target control (the target control state switches to a non-selected state), or the user operates a measuring instrument, the displayed command components are hidden.

[0132] Exemplarily, the user long presses the area corresponding to the target control on the touch screen to trigger the display of command components corresponding to each control within a preset range of the target control. If the area corresponding to the target control is not touched, such as the user's finger leaves the touch screen (the target control state switches to a non-selected state), or the user operates a measuring instrument, the displayed command components are hidden.

[0133] The command component corresponding to the control is located in the area corresponding to the control, and the area corresponding to the control may be an outer bounding box of the control.

[0134] By executing step S405, when the command component displayed is not the SCPI command expected by the user, the command component is displayed by mistake, or the user needs to operate the measuring instrument, the command component is hidden in time, thereby preventing the displayed command component from interfering with the user's operation of the measuring instrument.

[0135] Step S406, in response to a click event of a hyperlink in the displayed command component, jump to the entry corresponding to the hyperlink in the command manual; or, in response to a copy instruction of a copy button in the displayed command component, copy the information of the command corresponding to the command component to the clipboard.

[0136] When a user reads the displayed content of a hyperlink in a displayed command component and cannot determine whether the SCPI command corresponding to the hyperlink is the desired command, the user can click the hyperlink in the displayed command component to access the entry of the SCPI command corresponding to the hyperlink in the command manual, thereby understanding the format, function, etc. of the SCPI command. The GUI can monitor events to monitor the click event of the hyperlink in the displayed command component. When the click event of the hyperlink is monitored, jump to the entry corresponding to the hyperlink in the command manual to view the information of the corresponding SCPI command.

[0137] Users can also use shortcut keys to trigger click events on hyperlinks in displayed command components.

[0138] When the user reads the displayed content of the hyperlink in the displayed command component and determines that the SCPI command corresponding to the hyperlink is the required command, the user can copy the information of the SCPI command corresponding to the command component through the copy button in the command component, so as to perform program control of the measuring instrument through the copied SCPI command, or perform programming through the copied SCPI command.

[0139] In other implementations, the command component may only include a hyperlink.

[0140] In this embodiment, by displaying the command components of each control near the selected control, that is, within a preset range, it is convenient for the user to determine the required SCPI command from the contents displayed by the multiple command components, so that the user only needs to determine the function of the software or program, and does not need to be familiar with the required SCPI commands, thereby reducing the demand for users for program control of the measuring instrument; at the same time, a copy button and a hyperlink are provided in the command component, which facilitates the user to understand the SCPI command bound to the control and use the command, thereby improving the efficiency of controlling the measuring instrument based on SCPI commands; when the user is not interested in the SCPI command corresponding to the displayed command component or the user needs to operate the measuring instrument, the command component is automatically hidden, thereby reducing user operations and avoiding the display of the command component affecting the user's operation of the measuring instrument or viewing of the information displayed on the graphical user interface of the measuring instrument.

[0141] Figure 6 A schematic diagram of the structure of an interactive device for a measuring instrument interface provided in an embodiment of the present application, such as Figure 6 As shown, the interactive device of the measuring instrument interface includes: a display content search module 610, a hyperlink generation module 620 and a component display module 630.

[0142] The display content search module 610 is used to respond to the selection event of the target control in the graphical user interface of the measuring instrument or the controller of the measuring instrument, and based on the command identifier bound to the target control, search for the display content corresponding to the command identifier from the command information table; the hyperlink generation module 620 is used to generate a hyperlink with the display content as the title; the object to which the hyperlink of the display content jumps is the entry corresponding to the target command in the command manual of the measuring instrument, and the target command is the command corresponding to the command identifier; the component display module 630 is used to display the hyperlink at a preset position of the target control.

[0143] Optionally, the display content search module 610 is specifically used to:

[0144] In response to a selection event of a target control in a graphical user interface of a measuring instrument or a controller of the measuring instrument, the value of a preset property of the target control is read to obtain a command identifier bound to the target control; based on the command identifier bound to the target control, display content corresponding to the command identifier is searched from a command information table, wherein the display content is a title or an extended field of the command corresponding to the command identifier.

[0145] Optionally, the command information table includes multiple command identifiers, display contents corresponding to the command identifiers, and links corresponding to the command identifiers, and the hyperlink generation module 620 is specifically used to:

[0146] The hyperlink is generated by taking the link corresponding to the command identifier in the command information table as a jump link and taking the display content as a title.

[0147] Optionally, the component display module 630 is specifically used for:

[0148] A command component including the hyperlink and a copy button located on one side of the hyperlink is displayed at a preset position of the target control, and the copy button is used to copy information of the command corresponding to the hyperlink.

[0149] Optionally, the display content search module 610 is specifically used to:

[0150] In response to a selection event of a target control in a graphical user interface of a measuring instrument or a controller of the measuring instrument, for each control within a preset range of the target control, based on a command identifier bound to the control, the display content corresponding to the command identifier is searched from a command information table.

[0151] Accordingly, the hyperlink generation module 620 is specifically used for:

[0152] For each control located within a preset range of the target control, a hyperlink is generated with the display content corresponding to the control as a title.

[0153] Accordingly, the component display module 630 is specifically used for:

[0154] For each control located within the preset range of the target control, a hyperlink with the display content corresponding to the control as the title is displayed at the preset position of the control, or a command component including the hyperlink and a copy button located on one side of the hyperlink is displayed at the preset position of the control, and the copy button is used to copy the information of the command corresponding to the hyperlink in the command component.

[0155] Optionally, when there are multiple controls within the preset range of the target control, the device further includes an adaptive size adjustment module, which is used to:

[0156] Based on the length and width of the preset range and the number and / or position of controls within the preset range of the target control, the length and width of the command component corresponding to each control within the preset range of the target control are determined.

[0157] Optionally, the device further includes a component hiding module, which is used to:

[0158] When an operation instruction of the measuring instrument is detected, or the target control is switched from a selected state to an unselected state, or the target control is in a selected state for longer than a preset time, the command component is hidden.

[0159] Optionally, the device further comprises a component response module, configured to:

[0160] In response to a click event of a hyperlink in a displayed command component, jump to the entry corresponding to the hyperlink in the command manual; or, in response to a copy instruction of a copy button in a displayed command component, copy the information of the command corresponding to the command component to the clipboard.

[0161] Optionally, the device further includes a selected event monitoring module, configured to:

[0162] If it is detected that the mouse hovers over the area corresponding to the target control for a preset time, or if a long press event of the area corresponding to the target control is detected, a selection event of the target control is triggered.

[0163] The interactive device for the measuring instrument interface provided in this embodiment can be used to execute the interactive method for the measuring instrument interface provided in the previous embodiments of the present application. Its implementation principle and technical effects are similar and will not be repeated here.

[0164] Figure 7 This is a schematic diagram of the structure of a measuring instrument provided in an embodiment of the present application. Figure 7As shown, the measuring instrument provided in the embodiment of the present application includes a display 740, a processor 710, and a memory 720 that is communicatively connected to the processor 710. The memory 720 stores computer-executable instructions, and the processor 710 executes the computer-executable instructions stored in the memory 720 to implement the method provided in any embodiment of the present application.

[0165] In some implementations, the processor 710 and the memory 720 are connected via a bus 730 .

[0166] The specific implementation process of the processor 710 can be found in the above method embodiment, and its implementation principle and technical effect are similar, so this embodiment will not be repeated here.

[0167] Exemplarily, the measuring instrument may be an oscilloscope, a spectrum analyzer, or other instruments controlled based on SCPI commands.

[0168] The display screen of the display 740 may be any screen, such as a touch screen, a liquid crystal display (LCD), and the like.

[0169] In the above Figure 7 In the illustrated embodiment, it should be understood that the processor 710 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), etc. A general-purpose processor may be a microprocessor or any conventional processor. The steps of the method disclosed in the invention may be directly implemented as being executed by a hardware processor, or may be executed by a combination of hardware and software modules in the processor.

[0170] The memory 720 may include a high-speed RAM memory, and may also include a non-volatile storage NVM, such as at least one disk storage.

[0171] The bus 730 may be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus, etc. The bus 730 may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, the bus 730 in the drawings of the present application is not limited to only one bus or one type of bus.

[0172] An embodiment of the present application provides a computer-readable storage medium, in which computer-executable instructions are stored. When a processor executes the computer-executable instructions, the method provided in any embodiment of the present application is implemented.

[0173] The above-mentioned computer-readable storage medium can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read only memory (EEPROM), erasable programmable read only memory (EPROM), programmable read only memory (PROM), read only memory (ROM), magnetic storage, flash memory, magnetic disk or optical disk. The readable storage medium can be any available medium that can be accessed by a general or special-purpose computer.

[0174] An exemplary readable storage medium is coupled to a processor so that the processor can read information from the readable storage medium and write information to the readable storage medium. Of course, the readable storage medium can also be a component of the processor. The processor and the readable storage medium can be located in an application specific integrated circuit (Application Specific Integrated Circuits, referred to as: ASIC). Of course, the processor and the readable storage medium can also exist in the device as discrete components.

[0175] An embodiment of the present application provides a computer program product, including a computer program. When the computer program is executed by a processor, the method provided in any embodiment of the present application is implemented.

[0176] Those skilled in the art will readily appreciate other embodiments of the present application after considering the specification and practicing the invention disclosed herein. The present application is intended to cover any modification, use or adaptation of the present application, which follows the general principles of the present application and includes common knowledge or customary techniques in the art that are not disclosed in the present application. The specification and examples are intended to be exemplary only, and the true scope and spirit of the present application are indicated by the following claims.

[0177] It should be understood that the present application is not limited to the precise structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present application is limited only by the appended claims.

Claims

1. An interactive method for a measuring instrument interface, It is characterized in that include: In response to a selection event of a target control in a graphical user interface of a measuring instrument or a controller of the measuring instrument, based on a command identifier bound to the target control, searching a command information table for display content corresponding to the command identifier; Generating a hyperlink with the display content as a title, comprising: using a link corresponding to the command identifier in the command information table as a jump link and using the display content as a title to generate the hyperlink; the object to which the hyperlink jumps is an entry corresponding to a target command in a command manual of the measuring instrument, and the target command is a command corresponding to the command identifier; Displaying the hyperlink at a preset position of the target control; The command information table includes a plurality of command identifiers, display contents corresponding to the command identifiers, and links corresponding to the command identifiers; In response to a selection event of a target control in a graphical user interface of a measuring instrument or a controller of the measuring instrument, based on a command identifier bound to the target control, searching a command information table for display content corresponding to the command identifier, including: In response to a selection event of a target control in a graphical user interface of a measuring instrument or a controller of the measuring instrument, for each control located within a preset range of the target control, based on a command identifier bound to each control, searching a command information table for display content corresponding to the command identifier; Displaying the hyperlink at a preset position of the target control includes: For each control located within the preset range of the target control, a command component including a hyperlink corresponding to each control and a copy button located on one side of the hyperlink corresponding to each control is displayed at the preset position of each control, and the copy button is used to copy the information of the command corresponding to the hyperlink in the command component. The hyperlink corresponding to each control is a hyperlink with a display content corresponding to the command identifier bound to the control as a title.

2. The method according to claim 1, It is characterized in that Based on the command identifiers bound to the controls, searching the command information table for display content corresponding to the command identifiers includes: In response to a selection event of a target control in a graphical user interface of a measuring instrument or a controller of the measuring instrument, reading the value of a preset attribute of each control within a preset range of the target control to obtain a command identifier bound to each control; Based on the command identifier bound to each control, the display content corresponding to the command identifier is searched from the command information table, where the display content is the title or extended field of the command corresponding to the command identifier.

3. The method according to claim 1, It is characterized in that When there are multiple controls within the preset range of the target control, the method further includes: Based on the length and width of the preset range and the number and / or position of controls within the preset range of the target control, the length and width of the command component corresponding to each control within the preset range of the target control are determined.

4. The method according to claim 1, It is characterized in that The method further comprises: When an operation instruction of the measuring instrument is detected, or the target control is switched from a selected state to an unselected state, or the target control is in a selected state for longer than a preset time, the command component is hidden.

5. The method according to claim 1, It is characterized in that The method further comprises: In response to a click event of a hyperlink in the displayed command component, jump to the entry corresponding to the hyperlink in the command manual; or, In response to a copy instruction of a copy button in the displayed command component, information of the command corresponding to the command component is copied to a clipboard.

6. The method according to any one of claims 1 to 3, It is characterized in that The method further comprises: If it is detected that the mouse hovers over the area corresponding to the target control for a preset time, or if a long press event of the area corresponding to the target control is detected, a selection event of the target control is triggered.

7. A measuring instrument, It is characterized in that comprising a display, a processor, and a memory communicatively connected to the processor; The memory stores computer-executable instructions; The processor executes the computer-executable instructions stored in the memory to implement the method according to any one of claims 1 to 6.