System configuration processing method, device, instrument, medium and product
By acquiring and associating the image information of the target display interface with the system configuration information in the electronic measuring instrument, the problem of accurately identifying the configuration file in the prior art is solved, and efficient system configuration management and secure configuration recovery are achieved.
Patent Information
- Application Number
- CN202611332318.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-08-31
- Publication Date
- 2026-11-06
AI Technical Summary
When saving system configurations, existing electronic measuring instruments make it difficult for users to accurately identify the actual measurement scenario corresponding to the configuration through text information such as file names. Users need to frequently load configuration files for judgment, which makes the operation process cumbersome, consumes system resources, and affects testing efficiency.
The system acquires image information of the target display interface and stores it in association with system configuration information. When generating the system configuration file, the image information is included as part of the association relationship, or stored as an independent file through an index relationship. Users can intuitively identify the configuration status through image information without having to load the file to make a judgment.
It simplifies the user operation process, improves the efficiency of saving system configuration information, reduces system resource consumption, and enhances the accuracy and security of configuration file management.
Smart Images

Figure CN123048046A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of instrumentation engineering technology, and in particular to methods, devices, instruments, media and products for system configuration processing. Background Technology
[0002] In the use of electronic measuring instruments, system snapshot configuration can permanently store core information such as the current measurement parameter configuration, waveform data, system operating status, and interface layout parameters of the electronic measuring instrument in the form of a file on the local disk. Therefore, users can load this configuration file during use to restore the instrument to the measurement state at the time the configuration was saved, which is a key function to improve the testing efficiency of electronic measuring instruments.
[0003] Currently, most electronic measuring instrument manufacturers offer system snapshot configuration functions. However, when saving the system configuration, these products only collect and store the system configuration information separately. Therefore, users can only know the parameter values contained in the configuration file, and cannot intuitively predict the complete interface state and measurement results that the instrument will present before the configuration is loaded.
[0004] Furthermore, for multiple configuration files with only minor differences in parameters and similar measurement scenarios, users can only distinguish them based on textual information such as filenames and creation times, making it difficult to accurately identify the actual measurement scenarios corresponding to each configuration. To confirm whether a configuration is the target configuration, users must load each one into the electronic measurement instrument system one by one, and only after the configuration is completely restored can a judgment be made. This operation method is not only cumbersome, requiring frequent configuration loading, restoration, and switching, but also consumes a large amount of instrument system resources, seriously affecting testing efficiency. Summary of the Invention
[0005] This application discloses a system configuration processing method, apparatus, instrument, medium, and product, which is used to solve the problem of low efficiency when identifying and managing system snapshot configurations solely by filename, simplify the operation process, and improve the operational efficiency of configuration management.
[0006] Firstly, this application provides a system configuration processing method applied to electronic measuring instruments, comprising: acquiring image information of a target display interface, wherein the target display interface is the display interface presented by the electronic measuring instrument after loading system configuration information; generating a corresponding system configuration file based on the system configuration information, wherein the system configuration information is a set of parameters configured by the electronic measuring instrument when performing measurement and / or displaying measurement results; and storing the system configuration file and the image information, wherein the system configuration file and the image information are associated, and the electronic measuring instrument displays a related image of the image information when indexing the system configuration file. In this solution, by acquiring the system configuration information and image information corresponding to the target display interface, it ensures that the interface state reflected by the image information corresponds to the system configuration parameters. Then, the system configuration file generated based on the system configuration information is associated and stored with the image information, and the related image of the image information is displayed when the electronic measuring instrument indexes the system configuration file. Thus, when browsing the system configuration file, the user can intuitively identify the measurement state corresponding to the configuration through the aforementioned related images, without needing to wait until the system configuration file is loaded, which simplifies the user operation process and improves the efficiency of saving system configuration information.
[0007] In one possible implementation, the system configuration file and the image information are two independent files, and the association between the system configuration file and the image information is an index relationship between them. In this embodiment, the system configuration file and the image information are stored as two independent files, and an association is established between them through an index relationship. This allows the system configuration file and the image information to be stored independently, and when indexing the system configuration file, the corresponding image information can be found based on the above index relationship, and the relevant image can be displayed.
[0008] In one possible implementation, the indexing relationship between the system configuration file and the image information includes one of the following: a binding relationship between the ID of the system configuration file and the ID of the image information; a binding relationship between the address of the system configuration file and the image information; a binding relationship between the ID of the system configuration file and the timestamp of the image information; a binding relationship between the filename of the system configuration file and the filename of the image information; or a binding relationship between index records of the system configuration file and the image information. In this implementation, various indexing strategies are provided through multiple specific implementations of the indexing relationship to adapt to different file management scenarios and storage architectures. Among these features, ID binding relationships are achieved by associating image information with system configuration files, maintaining this association even if the system configuration file is renamed or its storage location is changed. Address binding relationships allow direct retrieval of image information by recording its storage address within the system configuration file, improving retrieval speed during configuration file parsing. Timestamp binding relationships facilitate version management of system configuration files. Filename binding relationships use identical filenames, reducing learning curve for users and implementation difficulty for developers. Index record binding relationships manage the association between system configuration files and image information through index files or database tables, enhancing the flexibility of configuration file management. When adjustments or updates to the association are needed, only the index records need to be adjusted, without modifying the system configuration file or image information. This allows for flexible selection of indexing strategies based on actual application scenarios, adapting to different file management scenarios and storage architectures.
[0009] In one possible implementation, the image information is a portion of the information in the system configuration file; generating the corresponding system configuration file based on the system configuration information includes: generating the system configuration file based on the system configuration information and the image information, wherein the binary data corresponding to the image information is located in a preset field in the system configuration file; storing the system configuration file and the image information includes: storing the system configuration file including the system configuration information and the image information. In this implementation, the image information is embedded as binary data into a preset field within the system configuration file, forming a single file for storage. This packages the system configuration file and the image information as a whole, ensuring that the system configuration file and the image information exist as a whole, avoiding the problem of lost association due to missing system configuration files or image information, simplifying management operations, and allowing direct location of the preset field to read the image information during parsing.
[0010] In one possible implementation, the relevant image is the image information itself or a thumbnail of the image information. In this embodiment, the image information displayed when indexing the system configuration file of the electronic measuring instrument is the image information itself or a thumbnail of the image information. Detailed image information can be displayed through the image information itself, or a thumbnail can be used to display a thumbnail of the image information, facilitating the identification of the system configuration file through the image information or thumbnail and improving the efficiency of configuration saving.
[0011] In one possible implementation, the system configuration processing method includes: displaying a related image of the image information corresponding to the system configuration file; and, in response to a third operation on the related image of the image information, loading the system configuration file to perform a system recovery operation. In this implementation, during system recovery, a related image of the image information corresponding to historical configuration files is first displayed. The user selects the target system configuration file based on the visualized image information, triggering loading for recovery. This avoids the difficulty users face when selecting from multiple system configuration files based solely on filenames or timestamps, eliminating the need for repeated loading attempts. By displaying image information, users can intuitively see the image information corresponding to each system configuration file, quickly identifying the system configuration file that needs recovery, improving work efficiency, avoiding incorrect loading of system configuration files, and enhancing the security and accuracy of the system recovery operation.
[0012] In one possible implementation, the system configuration file and the image information are two independent files, and the association between the system configuration file and the image information is an index relationship between the system configuration file and the image information. Displaying the related image of the image information corresponding to the system configuration file includes: indexing the system configuration file; determining the image information corresponding to the system configuration file based on the system configuration file and the index relationship; and displaying the related image of the image information. In this implementation, by using a storage method combining independent files and an index relationship, the system configuration file is first indexed during recovery, and then the corresponding image information is located and displayed through the index relationship. Therefore, image information can be found from the system configuration file through the index relationship, and even if the image information is stored in different paths, it can be accurately located, ensuring that the displayed image information accurately corresponds to the system configuration file.
[0013] In one possible implementation, the image information is a portion of the information in the system configuration file, and the binary data corresponding to the image information is located in a preset field in the system configuration file. Displaying the related image of the image information corresponding to the system configuration file includes: reading the binary data of the preset field in the system configuration file; parsing the binary data of the preset field to obtain the image information; and displaying the related image of the image information. In this implementation, with the image information embedded in the system configuration file, during recovery, binary data is read from the preset field of the system configuration file and the image information is parsed and displayed. There is no need to maintain independent index relationships or additional image information files; the image information can be extracted directly from the system configuration file itself, simplifying the recovery process. Furthermore, by locating through the preset field, the image information can be quickly read without parsing the entire contents of the system configuration file.
[0014] In one possible implementation, before the step of loading the system configuration file for system recovery operation in response to a third operation on the related image of the image information, the method further includes: displaying the image information in response to a fourth operation on the thumbnail. In this implementation, before loading the recovery operation, the user can perform a fourth operation (such as clicking) on the thumbnail to zoom in and view the complete image information. This allows the user to clearly see specific parameter annotations or waveform details before confirming loading, thus providing the ability to view from the thumbnail to the original image. Users can confirm details without loading the system configuration file, further reducing the risk of misoperation. This ensures the convenience of the preview operation and allows users to clearly view the details in the image information, improving the preview experience and accuracy.
[0015] In one possible implementation, after the step of loading the system configuration file to perform a system recovery operation in response to the third operation on the related image of the image information, the method further includes: obtaining target system configuration information, wherein the target system configuration information is the system configuration information of the electronic measuring instrument after the system recovery operation; and performing verification based on the target system configuration information and the system configuration information in the system configuration file to obtain a verification result. In this implementation, obtaining the current target system configuration information after system recovery and comparing it with the system configuration parameters in the historical configuration file to complete the recovery operation can add a verification step to the system recovery operation, ensuring that the restored system configuration parameters are consistent with those saved, and improving the accuracy and reliability of configuration restoration.
[0016] Secondly, this application provides a system configuration processing device for use in electronic measuring instruments, comprising: An information acquisition module is used to acquire image information of a target display interface, wherein the target display interface is the display interface presented by the electronic measuring instrument after loading system configuration information; a file generation module is used to generate a corresponding system configuration file based on the system configuration information, wherein the system configuration information is a set of parameters configured by the electronic measuring instrument when performing measurement and / or displaying measurement results; and a file storage module is used to store the system configuration file and the image information, wherein there is an association between the system configuration file and the image information, and the electronic measuring instrument is used to display the relevant image of the image information when indexing the system configuration file.
[0017] Thirdly, this application provides an electronic measuring instrument, which includes a processor and a memory; wherein the memory is used to store a computer program, which is loaded and executed by the processor to implement the aforementioned system configuration processing method.
[0018] Fourthly, this application provides a computer-readable storage medium for storing a computer program, which, when executed by a processor, implements the aforementioned system configuration processing method.
[0019] Fifthly, this application provides a computer program product, including a computer program that, when executed by a processor, implements the steps of the aforementioned system configuration processing method.
[0020] The technical effects of the solutions in the second to fifth aspects can be referred to the description in the first aspect, and will not be repeated here. Attached Figure Description
[0021] 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.
[0022] Figure 1A This is a schematic diagram of an electronic measuring instrument structure provided in an embodiment of this application; Figure 1B A system architecture diagram of an electronic measuring instrument is provided for embodiments of this application; Figure 2 A flowchart illustrating a system configuration processing method provided in this application embodiment; Figure 3 A schematic diagram illustrating the saving of a system configuration file provided in this application embodiment; Figure 4A schematic diagram illustrating a system configuration file provided in an embodiment of this application; Figure 5 A flowchart illustrating a specific system configuration processing method provided in this application embodiment; Figure 6 This is a schematic diagram illustrating an image information display provided in an embodiment of this application; Figure 7 This application provides a schematic diagram of a UI interface after system recovery. Figure 8 A schematic diagram of a processing device structure for a system configuration provided in an embodiment of this application; Figure 9 This is a structural diagram of an electronic measuring instrument provided in an embodiment of this application.
[0023] Explanation of reference numerals in the attached figures: 10-Electronic measuring instruments; 101-Display screen; 102-Processor; 103-Memory; 104-Transceiver; 20 - Processing unit configured in the system; 201 - Information Acquisition Module; 202 - File Generation Module; 203 - File Storage Module. Detailed Implementation
[0024] The technical solutions of the embodiments of this application will be 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.
[0025] It should be noted that, in the description of this application, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. The terms "first," "second," etc., in this application are used to distinguish similar objects and are not used to describe a specific order or sequence.
[0026] Traditional electronic measuring instruments only save configuration parameter data when saving system configuration files. This means that when faced with multiple system configuration files, users cannot quickly determine the specific parameter configuration of each file from its filename and other information; they must load each configuration file individually to confirm, resulting in low operational efficiency. This application, however, simultaneously acquires the system configuration information and image information corresponding to the target display interface in a single operation, ensuring that the interface state reflected in the image information corresponds to the system configuration parameters. The system configuration file and image information are then stored together, and the relevant image information is displayed when the electronic measuring instrument indexes the system configuration file. Thus, users can intuitively identify the measurement status corresponding to the system configuration file through these related images, simplifying the user operation process and improving the efficiency of saving system configuration information.
[0027] To enable those skilled in the art to better understand the present application, the present application will be further described in detail below with reference to the accompanying drawings and specific embodiments.
[0028] The technical solutions provided in this application can be applied to electronic measuring instruments. Exemplarily, electronic measuring instruments include, but are not limited to, oscilloscopes, spectrum analyzers, spectrum meters, signal generators, network analyzers, and other instruments and equipment with displays and configurable measurement parameters. In other words, this application can be applied to all scenarios requiring snapshot saving of system configurations and rapid system restoration based on the saved snapshots.
[0029] See Figure 1A The electronic measuring instrument 10 may include a display screen 101, a processor 102, and a memory 103. The display screen 101 is used to present the user interface (UI). When the electronic measuring instrument 10 loads a system configuration file, the display state presented by this user interface becomes the target display interface. For example, the target display interface may include interface elements such as a spectrum waveform window, parameter setting bar, measurement result report, and function menu, and presents specific parameter values and waveform shapes corresponding to the loaded system configuration file. The processor 102 is used to save, manage, and restore the system configuration. The memory 103 (e.g., a local disk) is used to store the system configuration file and image information. See also... Figure 1BThe technical solution provided in this application can run on an electronic measuring instrument, which includes hardware, an operating system, and testing software. The hardware includes a processor (Central Processing Unit, CPU), memory (RAM / hard disk), and peripherals (such as a display screen, buttons, etc.). The memory is used to store system configuration files and image information; the processor is used to execute operation instructions such as saving, managing, and restoring system configurations; and the display screen is used to present user interface and related images. The testing software includes at least system configuration saving software and system recovery software. The system configuration saving software is used to obtain the current system configuration information of the electronic measuring instrument and the image information of the target display interface, generate a system configuration file based on the system configuration information, and associate and store the system configuration file with the image information in the memory. The system recovery software is used to display the related images of the image information corresponding to the system configuration file when the electronic measuring instrument has a system configuration file and corresponding image information pre-saved locally, and in response to operations on the related images of the image information, load the corresponding historical system configuration file to perform a system recovery operation. It should be noted that... Figure 1B The architecture diagram shown is for illustrative purposes only. The functions of some modules can be integrated into the same software unit, or they can be further divided into more sub-modules, as long as they can implement the system configuration saving and recovery method of this application. This application does not impose any restrictions on this.
[0030] In practical use of electronic measuring instruments, it is often necessary to repeatedly adjust the instrument's system configuration parameters for different measured objects and measurement scenarios. To reduce repetitive operations, avoid parameter setting errors, and improve testing efficiency, electronic measuring instruments typically provide a system snapshot configuration function. This function saves the device's current measurement parameters, waveform data, system operating status, interface layout parameters, and other information to the memory in the form of a system configuration file. When the system configuration parameters are needed again, the system configuration file can be quickly recalled, and the instrument can be restored to the state when the system configuration parameters were saved with one click. In this embodiment, the system configuration parameters can be summarized and a system configuration file can be generated and saved to the memory 103. At the same time as saving the system configuration file, the image information corresponding to the target display interface is collected and associated with it. In this way, the system configuration file and its corresponding image information can be associated, managed, and displayed. The interface state reflected by the image information is the effect achieved after the system configuration file is loaded. Users can load the system configuration information according to the system configuration file saved to the memory 103, and restore the parameters, waveforms, etc. displayed by the electronic measuring instrument 10 to the state when the system configuration information was saved. The restoration result is consistent with the image information associated with the system configuration information.
[0031] Example 1
[0032] This embodiment provides a system configuration processing method applied to electronic measuring instruments. See also... Figure 2 As shown, the system configuration processing methods include: Step S11: Obtain image information of the target display interface. The target display interface is the interface displayed by the electronic measuring instrument after loading the system configuration information.
[0033] In one implementation, the electronic measuring instrument can respond to a first operation to acquire image information of the target display interface. The first operation is an instruction triggered by a user clicking an icon or button on the electronic measuring instrument's display screen that indicates entry into a save dialog box, or pressing a physical save button on the panel. For example, the first operation is triggered after the user clicks the "Enter Save Page" icon. Specifically, the first operation is used to trigger the initiation of the system configuration information saving process. In response to the first operation, the electronic measuring instrument enters... Figure 3 The configuration management page shown automatically acquires image information of the target display interface, such as taking a screenshot of the current display interface and generating a PNG (Portable Network Graphics) image. Furthermore, the target display interface is a page presented while loading system configuration information. System configuration information refers to the set of parameters configured by the electronic measuring instrument when performing measurements and / or displaying measurement results. Taking a spectrum analyzer as an example, system configuration information may include measurement parameters such as center frequency, reference level, sweep width, and resolution bandwidth, as well as interface layout parameters; among which, interface layout parameters may include the number of columns in the target display interface, the active measurement function windows, and the display scale range.
[0034] For example, after the user clicks the "Enter Save Page" icon, the processor of the electronic measuring instrument will perform an image acquisition operation, taking a screenshot of the target display interface currently displayed on the screen and generating corresponding image information. Simultaneously, the electronic measuring instrument will also scan and read the instrument's currently operating parameter data (such as center frequency, reference level, sweep width, resolution bandwidth, and other measurement parameters, as well as layout parameters such as the number of columns in the display interface, measurement function windows, and display scale range) according to preset parameter classification rules to obtain the current system configuration information. Figure 3 As shown, the image information will then be filled into the screenshot dialog box corresponding to the "Add New Configuration" hotspot in the configuration management page, so that the user can confirm or preview it during the subsequent save operation. Therefore, the first operation only triggers the entry into the save page and the corresponding image and parameter acquisition actions. The actual configuration saving operation can be completed by the user by clicking the "Save Configuration" button after entering the save page, thus allowing the user to preview and confirm the system configuration file before it is saved.
[0035] The image acquisition operation allows an electronic measuring instrument to capture a screenshot of the image information displayed on the current target display interface within the same clock cycle after receiving a command to trigger the first operation, generating a visual image with the same resolution as the screen's physical resolution (e.g., 1920×1080 pixels) and in PNG format. The target display interface can be the complete user interface on the electronic measuring instrument's screen after loading the corresponding system configuration information, including a spectrum waveform window, parameter settings, measurement results, and function menus. Correspondingly, interface features can be visually identifiable elements and data in the target display interface, including but not limited to the interface layout structure (e.g., number of windows, column positions, menu arrangement), parameter values (e.g., displayed values of center frequency, reference level, etc.), waveform morphology, measurement result data, and function buttons. In this embodiment, the image information can be a bitmap file or compressed image file generated in binary data form after capturing the target display interface through the image acquisition operation. For example, the image information can be a PNG file, a JPEG (Joint Photographic Experts Group) file, or a BMP (Bitmap) file with a resolution of 1920×1080 pixels. The corresponding file data is stored in the memory of the electronic measuring instrument and can be rendered and presented in the UI interface as an original image or a thumbnail. Furthermore, the image information can include all interface features of the target display interface, including but not limited to the spectral waveform shape, parameter setting values, measurement result data, and function menu layout.
[0036] Step S12: Generate the corresponding system configuration file based on the system configuration information.
[0037] For example, the system configuration file can be a configuration file generated by an electronic measuring instrument according to a preset data format. Simultaneously or after acquiring the image information of the target display interface in step S11, the acquired system configuration information can be encapsulated and verified to generate a binary data file, i.e., the aforementioned system configuration file. For example, the system configuration file can be structured and stored using XML (Extensible Markup Language), JSON (JavaScript Object Notation), or a custom binary format. Furthermore, this system configuration file can be uniquely identified, read, and loaded by the electronic measuring instrument, thereby achieving accurate configuration restoration. Thus, because the system configuration file is encapsulated in a preset binary format and carries verification information, it can be uniquely identified when the system configuration file is read and loaded, thereby achieving accurate configuration restoration.
[0038] In one implementation, the image information can be a portion of the information in the system configuration file. In this implementation, when generating the system configuration file based on the system configuration information and the image information, the system configuration file can be generated at least based on the system configuration information and the image information, or based on the system configuration information, the image information, and other information, such as the timestamp of the generation time, the user-defined system configuration file version number, etc. The binary data corresponding to the image information is located in a preset field in the system configuration file, for example, in the extended data segment of the system configuration file. This preset field defines the starting storage location and data length of the image information, so that the image information can be quickly located and extracted during parsing. In this implementation, the image information is a portion of the information in the system configuration file; that is, the binary data of the image is directly written into the system configuration file, so that the system configuration file contains both parameter data and image data. The aforementioned preset field is a predefined area in the format of the system configuration file for storing image data, for example, defined in an XML-formatted system configuration file. <screenshot>Tags are used to store image data. For example... Figure 4 As shown, after the user clicks "Save Configuration", a new system configuration file, such as "Transient_CHIRP_125M", will be added to the "Saved Configurations" hotspot. This system configuration file displays its associated interface image information in the form of thumbnails.
[0039] Step S13: Store the system configuration file and image information. The system configuration file and image information are correlated; the electronic measuring instrument displays relevant images when indexing the system configuration file.
[0040] For example, in response to the second operation, the above steps S12-S13 can be performed, for example, in response to the user clicking "Save Configuration" ( Figure 3 The operation is performed to execute the above steps S12-S13. In this embodiment, after obtaining the image information and generating the system configuration file, the system configuration file and the image information can be stored. The system configuration file and the image information are associated, and during the subsequent system recovery process, the electronic measuring instrument can display the relevant image of the image information when indexing the system configuration file. In one embodiment, based on the content of step S12, it is known that the image information can be part of the information in the system configuration file. Accordingly, the system configuration file including system configuration information and image information can be stored. In this way, the image file (e.g., PNG) can be represented by binary data and directly written into the specified field area of the system configuration file. When generating the system configuration file, the configuration information and the image information are encapsulated in the same file and stored in the form of a single file. This can avoid the problem of loss of association between the system configuration file and the image information due to file missing, and reduce the operational burden caused by having to manage two files at the same time. Furthermore, since the binary data corresponding to the image information is in a preset field, the image data can be directly located and read during parsing without searching the entire file. This simplifies the file management process and improves the reading efficiency of the system configuration file while ensuring the integrity of the association between the configuration and the image.
[0041] In another implementation, the system configuration file and image information can also be two independent files. That is, in step S12 above, only the system configuration information is encapsulated and verified to generate the system configuration file, without introducing image information. Accordingly, the association between the system configuration file and the image information is an index relationship between the system configuration file and the image information. Thus, in this implementation, the index relationship is a mapping record used to locate the corresponding image file from the system configuration file, or to locate the corresponding system configuration file from the image file. By storing the system configuration file and image information as two independent files, they can be managed independently; and by establishing an index relationship between them, even if the two files are stored separately, the image information corresponding to the system configuration file can still be accurately found based on the index relationship, improving the accuracy of configuration file reading.
[0042] In this embodiment, the index relationship between the system configuration file and the image information includes one of the following: a binding relationship between the ID (Identification) of the system configuration file and the ID of the image information; a binding relationship between the address of the system configuration file and the image information; a binding relationship between the ID of the system configuration file and the timestamp of the image information; a binding relationship between the filename of the system configuration file and the filename of the image information; and a binding relationship between the index records of the system configuration file and the image information. For example, the ID binding relationship could be that both the system configuration file and the image file have unique IDs, such as UUIDs (Universally Unique Identifiers), and the mapping between these IDs is recorded in a database or index table. The address binding relationship could be the storage location where the image information is stored in the system configuration file. The binding relationship between the ID of the system configuration file and the timestamp of the image information could be that the system configuration file is associated with the timestamp of the image capture time through its own ID. The filename binding relationship could be that the system configuration file and the image information use the same filename, for example, only with different extensions. The index record binding relationship can be maintained in a separate index file or database table, where each record contains a mapping between system configuration file paths and corresponding image file paths. For example, each record can store a one-to-one correspondence between a system configuration file path and an image file path in key-value pairs. For instance, a record can use the system configuration file path as the key and the image file path as the value, allowing retrieval of the corresponding image file path by querying the system configuration file path. Thus, the index relationship can take various specific forms, such as ID binding, address binding, file ID and timestamp binding, filename binding, and index record binding. A matching indexing strategy can be selected based on the actual file management scenario and storage architecture, improving the adaptability and flexibility of the system configuration file management process under different file management scenarios and storage architectures.
[0043] Furthermore, in one possible implementation, the relevant image displayed when indexing system configuration files can be the image information itself or a thumbnail of the image information. When the image information itself is used, the user sees the full-resolution interface details, resulting in high recognition accuracy; when a thumbnail is used, the image is compressed to a smaller size, occupying less display space and rendering resources in the UI interface. For example, when the actual need is to confirm image details, the relevant image can be set as the image information itself; when the actual need is to browse the image information corresponding to multiple system configuration files on the same screen, the relevant image can be set as a thumbnail of the corresponding image information. In this way, the presentation form of the relevant image can be flexibly selected according to the actual display scenario, thereby improving recognition accuracy and display efficiency.
[0044] For example, when an electronic measuring instrument indexes a system configuration file, the system configuration file and its associated image information can be displayed as thumbnails in the "Saved Configurations" hotspot of the configuration management center. This implementation can store system configuration files and image information in association, and use the image information to display relevant images when indexing system configuration files. Therefore, when a user browses the list of saved configurations in the configuration management center, the corresponding image can be displayed next to the system configuration file. Since the relevant image is acquired at the same time as the system configuration information, it can intuitively reflect the interface state after the configuration is loaded. Therefore, without loading the system configuration file, the measurement state and scenario corresponding to the system configuration file can be directly determined through the relevant image, reducing invalid operations during the search process after saving the system configuration file, thereby improving the efficiency of saving and recognizing system configuration information.
[0045] In summary, this application obtains the system configuration information and image information corresponding to the target display interface, ensuring that the interface state reflected in the image information corresponds to the system configuration parameters. Then, the system configuration file generated based on the system configuration information is associated and stored with the image information. Furthermore, when the electronic measuring instrument indexes the system configuration file, the relevant image information is displayed. Thus, when browsing the system configuration file, users can intuitively identify the measurement status corresponding to the configuration through the aforementioned relevant images, eliminating the need to load the system configuration file first. This simplifies the user operation process and improves the efficiency of saving system configuration information.
[0046] Example 2
[0047] For the system configuration processing method based on the above embodiments, please refer to... Figure 5 As shown, this embodiment can also implement corresponding system recovery operations based on the system configuration file saved in the above embodiments. It can be understood that when implementing a system recovery operation, the electronic measuring instrument pre-stores the system configuration file and corresponding image information locally. The system configuration file and the corresponding image information are associated. The image information is used to characterize the target display interface, which is the display interface presented by the electronic measuring instrument after loading the system configuration file. The system configuration file and corresponding image information can be generated and stored by the system configuration processing method of the aforementioned embodiments. In this embodiment, the system configuration processing method includes: Step S21: Display the relevant images corresponding to the image information of the system configuration file.
[0048] In this embodiment, if the relevant images of the image information are displayed as thumbnails by default in step S21, then in this embodiment, before performing system configuration recovery, the complete image information can be displayed in response to the fourth operation on the thumbnail. For example, the fourth operation is the user's action of viewing the complete image on the thumbnail. For example, the fourth operation can be the user clicking the thumbnail area, touching the thumbnail area, long-pressing the thumbnail to trigger a magnified preview, or hovering the mouse over the thumbnail to trigger a floating window to display the complete image. In response to any of the above fourth operations, the electronic measuring instrument can read the complete image information corresponding to the thumbnail from the memory and display it in a preview window or floating window on the current display interface, so that the user can view the complete interface details before loading the configuration file. Thus, before the recovery operation, the user can perform the fourth operation on the thumbnail through clicking, long-pressing, etc., and the system displays the complete image information accordingly. Therefore, before confirming the loading of the system configuration file, users can quickly browse through thumbnails or zoom in to view the full image when needed, thus seeing specific parameter annotations or waveform details. Moreover, the viewing process occurs before the configuration is loaded, without actually loading the configuration. Users can confirm configuration details without loading the configuration, further reducing the risk of misoperation. This not only improves the convenience of the preview operation but also enhances the accuracy of configuration file identification, thereby improving the preview experience and accuracy.
[0049] As described in the previous embodiment, in one implementation, the system configuration file and image information are two independent files, and the association between them is an index relationship. Accordingly, displaying the relevant image for the image information corresponding to the system configuration file includes: indexing the system configuration file; and displaying the relevant image for the image information corresponding to the system configuration file based on the index relationship. Therefore, in a storage method where the system configuration file and image are two independent files associated through an index relationship, during recovery, the historical system configuration file is first indexed, and then the corresponding image is determined and displayed based on the historical system configuration file and the index relationship. Thus, the image corresponding to the system configuration file can be accurately determined based on the index relationship, ensuring that the image displayed on the target display interface during system recovery accurately corresponds to the system configuration file selected by the user.
[0050] In another implementation, the image information is a portion of the information in the system configuration file, and the binary data corresponding to the image information is located in a preset field in the system configuration file. Accordingly, displaying the image information related to the system configuration file includes: reading the binary data from the preset field in the system configuration file; parsing the binary data to obtain the image information; and displaying the image information related to the image. For example, the image storage area can be located in the system configuration file and the binary data therein can be read. The read binary data can then be decoded according to the image format to achieve binary data parsing. In this implementation, with the image embedded in the system configuration file, during system recovery, binary data is read from the preset field of the system configuration file, and the image information is parsed and then displayed. Since the image information is stored in the system configuration file, there is no need to maintain an index relationship or access additional image files during recovery. Preview images can be directly extracted from the system configuration file itself, and there is no need to parse the entire contents of the system configuration file. The preset field can be directly located to read the image information, simplifying the system recovery process and further improving the image data reading speed.
[0051] Additionally, in one implementation, such as Figure 6 As shown, the related images in the image information section are information used to help users identify system configuration files, such as displaying screenshot thumbnails and text annotations. Furthermore, the related images in the image information section are displayable content derived from the image information of the original screenshot; this can be the original image itself or a thumbnail of the original image. When the related images in the image information section are the image information itself, the image information the user sees is the original screenshot image itself, such as directly displaying a complete 1920×1080 pixel PNG screenshot. In this case, because the related images in the image information section are the image itself, that is, the original screenshot is directly displayed on the recovery interface, the user can see the interface details at full resolution, such as specific measurement values, waveform details, etc., which can improve the user's accuracy in identifying the system configuration corresponding to different system configuration files. When the related image of the image information is a thumbnail, the image information corresponding to the system configuration file can be determined based on the system configuration file and index relationship. Then, a thumbnail of the image information is generated and displayed. At this time, the thumbnail is a small-sized image generated by scaling down the original screenshot. Since the user sees a compressed small-sized image instead of the complete original image, when there are a large number of historical system configuration files, the display space and rendering resources occupied by displaying the thumbnail are significantly less than those of directly displaying the original image. This can reduce the interface loading time and allow multiple configuration previews to be displayed on the target display interface at the same time, making it convenient for users to quickly browse and compare multiple configurations.
[0052] Step S22: In response to the third operation on the image information related to the image, load the system configuration file to perform a system recovery operation.
[0053] In this embodiment, in response to a third operation on a related image of the image information, a system configuration file can be loaded to perform a system recovery operation. The third operation can be selecting a related image of the image information in the system configuration file and triggering the loading of the system configuration file. For example, the third operation can be a user clicking, double-clicking, or touching a related image of the image information in a system configuration file, or clicking, double-clicking, or touching a button associated with the related image. Since the image information is associated with the system configuration file, when the related image is triggered, the system configuration file can be indexed and loaded to achieve system recovery. The system recovery operation can be an operation that switches the electronic measuring instrument from its current operating state to the operating state recorded at the time of saving in the selected system configuration file. For example, the system recovery operation can include reading the binary data of the system configuration file, parsing the parameters recorded in the file, overwriting the parsed parameters into the instrument's currently operating parameter register, and refreshing the display screen to present an interface layout and waveform consistent with the state at the time of configuration saving. In this way, the instrument state can be restored to the state shown in the image. Figure 7 The configuration shown is in its saved state. For example, the corresponding image information can be retrieved based on the file identifier and timestamp of the thumbnail, and the corresponding image information can be displayed on the screen for easy viewing and preview by the user.
[0054] Therefore, during system recovery, this implementation can first display images related to the system configuration files. Before selecting the configuration to be recovered, the user can see the interface features corresponding to each system configuration file, and this image information intuitively reflects the interface state after the configuration is loaded. The user can directly identify which historical configuration is the target configuration to be recovered, without having to guess based solely on the filename or timestamp. After identifying the target configuration, the user performs a third operation on the image related to that image information, thereby loading the corresponding historical system configuration file for recovery. This reduces invalid loading attempts, improves the efficiency of system recovery operations, and lowers the risk of mistakenly loading incorrect configurations, thus improving the accuracy and security of system recovery operations.
[0055] In one implementation, after loading the system configuration file for system recovery, the target system configuration information of the electronic measuring instrument after the system recovery operation can be obtained. Verification is then performed based on the target system configuration information and the system configuration information in the system configuration file to obtain a verification result. For example, the target system configuration information is the current state parameter data generated by rescanning and reading the currently running parameter data in the instrument's memory after the system recovery operation is completed. Furthermore, the parameters in the target system configuration information can be compared with the corresponding parameters in the original system configuration information parsed from the historical system configuration file. A verification result is generated after the comparison. The verification result indicates whether the current system recovery operation successfully restored the instrument to the state recorded in the configuration file at the time of saving. For example, if the verification result indicates that the target system configuration information is consistent with the historical system configuration information, i.e., all parameters are the same, then the system recovery is confirmed to be successful, and a "Recovery Successful" message can be displayed on the user interface, and the verification interface can be closed. If the verification result indicates that there is a deviation, i.e., one or more parameters are different, then a "Recovery Deviation Exists" message can be displayed on the user interface, listing the names of the deviation parameters, the saved values in the configuration file, and the actual values after the current recovery, so that the user can confirm whether the recovery operation needs to be re-executed or the parameters need to be manually adjusted. In this way, after the system recovery operation is completed, the current target system configuration information is retrieved again and verified with the original system configuration information in the historical system configuration file to determine whether there is a parameter deviation between the two. If they are consistent, it means that the recovery is accurate; if there is a deviation, the deviation item can be marked and the user is notified. This ensures that the restored system configuration information is completely consistent with the original configuration information when it was saved, improving the accuracy and reliability of configuration recovery.
[0056] Based on the system configuration processing methods described in the above embodiments, this embodiment provides a corresponding system configuration processing device. The following device embodiments are based on the same inventive concept as the foregoing method embodiments. The specific working process of each module in the device and the technical effects it can achieve can be found in the corresponding descriptions in the foregoing method embodiments, and will not be repeated here.
[0057] See Figure 8 As shown, this embodiment provides a system configuration processing device 20 for implementing the system configuration processing method in the aforementioned method embodiment, applied to electronic measuring instruments, including: The information acquisition module 201 is used to acquire image information of the target display interface, wherein the target display interface is the display interface presented by the electronic measuring instrument after loading system configuration information.
[0058] The file generation module 202 is used to generate a corresponding system configuration file based on system configuration information, wherein the system configuration information is a set of parameters configured by the electronic measuring instrument when performing measurement and / or displaying measurement results.
[0059] The file storage module 203 is used to store the system configuration file and the image information, wherein there is an association between the system configuration file and the image information, and the electronic measuring instrument is used to display the relevant image of the image information when the system configuration file is indexed.
[0060] Specifically, the information acquisition module 201 can respond to a first operation, such as a user clicking the "Enter Save Page" icon, to acquire the current system configuration information of the electronic measuring instrument and the image information of the target display interface. The system configuration information includes the measurement parameters and interface layout parameters currently being used by the electronic measuring instrument; the image information is a screenshot of the target display interface, which is the display interface presented by the electronic measuring instrument after loading the system configuration information. The information acquisition module 201 is connected to the file generation module 202 and the file storage module 203, and can send the acquired system configuration information to the file generation module 202 and the acquired image information to the file storage module 203.
[0061] The file generation module 202 can receive system configuration information from the information acquisition module 201 and encapsulate the system configuration information into a corresponding system configuration file according to a preset format. Furthermore, the file generation module 202 is connected to the file storage module 203 and is used to send the generated system configuration file to the file storage module 203.
[0062] The file storage module 203 can receive image information from the information acquisition module 201 and system configuration files from the file generation module 202, and associate the system configuration files with the image information to store in the memory of the electronic measuring instrument. Furthermore, the electronic measuring instrument can display relevant images of the image information when indexing the system configuration files.
[0063] For example, in one example, the information acquisition module 201 sends image information to the file storage module 203, and the file generation module 202 sends a system configuration file to the file storage module 203. The file storage module 203 establishes an association between the image information and the system configuration file and stores it in the memory. In another example, the information acquisition module 201 sends image information to the file generation module 202, and the file generation module 202 generates a system configuration file based on the system configuration information and the image information. The binary data corresponding to the image information is located in a preset field of the system configuration file, and the file storage module 203 stores the system configuration file in the memory.
[0064] Based on the methods described in the above embodiments, this embodiment provides an electronic measuring instrument, a computer-readable storage medium, and a computer program product.
[0065] See Figure 9 As shown, this embodiment provides an electronic measuring instrument 10, which includes a processor 102 coupled to a memory 103. The memory 103 stores computer programs or instructions and / or data. The processor 102 executes the computer programs or instructions stored in the memory 103, or reads the data stored in the memory 103, to perform the methods in the above-described method embodiments. Optionally, there may be one or more processors 102. Optionally, there may be one or more memories 103. Optionally, the memory 103 may be integrated with the processor 102, or may be separately configured. Optionally, the electronic measuring instrument 10 also includes a transceiver 104 for receiving and / or transmitting signals. For example, the processor 102 controls the transceiver 104 to receive and / or transmit signals.
[0066] In addition, this application also provides a computer-readable storage medium storing computer instructions that, when executed on a computer, cause the methods in the various method embodiments of this application to be performed.
[0067] This application also provides a computer program product, which includes computer program code or instructions, such that when the computer program code or instructions are run on a computer, the methods in the various method embodiments of this application are executed.
[0068] Furthermore, this application also provides a chip including a processor. A memory for storing a computer program is provided independently of the chip, and the processor is used to execute the computer program stored in the memory to perform the methods in the various method embodiments of this application.
[0069] Furthermore, the chip may also include a communication interface. The communication interface may be an input / output interface or an interface circuit, etc. Furthermore, the chip may also include a memory.
[0070] It should be understood that the processor in the embodiments of this application can be an integrated circuit chip with the ability to process signals. In implementation, each step of the above method embodiments can be completed by the integrated logic circuits in the processor's hardware or by instructions in software form. The processor can be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components. A general-purpose processor can be a microprocessor or any conventional processor. The steps of the method disclosed in the embodiments of this application can be directly implemented by a hardware encoding processor, or implemented by a combination of hardware and software modules in the encoding processor. The software modules can be located in random access memory, flash memory, read-only memory, programmable read-only memory, electrically erasable programmable memory, registers, or other mature storage media in the art. The storage medium is located in memory, and the processor reads the information in the memory and, in conjunction with its hardware, completes the steps of the above method.
[0071] The memory in this application embodiment can be volatile memory or non-volatile memory, or it can include both volatile and non-volatile memory. The non-volatile memory can be read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), or flash memory. The volatile memory can be random access memory (RAM), which is used as an external cache. By way of example, but not limitation, many forms of RAM are available, such as static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM), enhanced synchronous dynamic random access memory (ESDRAM), and synchronous link dynamic memory (SLDRAM).
[0072] It should be noted that when the processor is a general-purpose processor, DSP, ASIC, FPGA, or other programmable logic device, discrete gate or transistor logic device, or discrete hardware component, the memory can be integrated into the processor.
[0073] It should also be noted that the memory described herein is intended to include, but is not limited to, these and any other suitable types of memory.
[0074] The above embodiments of this application have further described the purpose, technical solution and advantages of this application in detail. It should be understood that the above description is only an embodiment of this application and is not intended to limit this application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of this application should be included within the protection scope of this application.< / screenshot>
Claims
1. A processing method of a system configuration, characterized by, Applications in electronic measuring instruments, including: Acquire image information of the target display interface, wherein the target display interface is the display interface presented by the electronic measuring instrument after loading system configuration information; A corresponding system configuration file is generated based on the system configuration information, wherein the system configuration information is a set of parameters configured by the electronic measuring instrument when performing measurement and / or displaying measurement results; and, The system configuration file and the image information are stored, wherein there is an association between the system configuration file and the image information, and the electronic measuring instrument is used to display the relevant image of the image information when the system configuration file is indexed.
2. The processing method of system configuration according to claim 1, characterized in that, The system configuration file and the image information are two independent files, and the association between the system configuration file and the image information is the index relationship between the system configuration file and the image information.
3. The processing method of claim 2, wherein, The index relationship between the system configuration file and the image information includes one of the following: The binding relationship between the ID of the system configuration file and the ID of the image information; The system configuration file is linked to the address of the image information. The binding relationship between the ID of the system configuration file and the timestamp of the image information; The filename of the system configuration file is bound to the filename of the image information; The system configuration file and the image information are linked by an index record binding relationship.
4. The processing method of claim 1, wherein The image information is part of the information in the system configuration file; The step of generating a corresponding system configuration file based on the system configuration information includes: generating the system configuration file based on the system configuration information and the image information, wherein the binary data corresponding to the image information is located in a preset field in the system configuration file; The storage of the system configuration file and the image information includes: storing the system configuration file including the system configuration information and the image information.
5. The processing method of a system configuration according to any one of claims 1 to 4, characterized by, The relevant image is the image information itself or a thumbnail of the image information.
6. The processing method of a system configuration according to any one of claims 1 to 5, characterized by, The method includes: Display the relevant images corresponding to the image information in the system configuration file; In response to a third operation on the related image of the image information, the system configuration file is loaded to perform a system recovery operation.
7. The processing method of claim 6, wherein, The system configuration file and the image information are two independent files, and the association between the system configuration file and the image information is an index relationship between the system configuration file and the image information; The images related to displaying the image information corresponding to the system configuration file include: Index the system configuration file; Based on the relationship between the system configuration file and the index, the image information corresponding to the system configuration file is determined; Display related images of the image information.
8. The processing method of claim 6, wherein, The image information is part of the information in the system configuration file, and the binary data corresponding to the image information is located in a preset field in the system configuration file. The images related to displaying the image information corresponding to the system configuration file include: Read the binary data of a preset field in the system configuration file; Parse the binary data of the preset field to obtain the image information; and, Display related images of the image information.
9. The processing method of claim 6, wherein, Before the step of loading the system configuration file to perform a system recovery operation in response to the third operation on the related image of the image information, the method further includes: In response to the fourth operation on the thumbnail, the image information is displayed.
10. The processing method of a system configuration according to any one of claims 6 to 8, characterized by, After the step of loading the system configuration file to perform a system recovery operation in response to the third operation on the related image of the image information, the method further includes: Obtain target system configuration information, wherein the target system configuration information is the system configuration information after the electronic measuring instrument performs the system recovery operation; and, The verification is performed based on the target system configuration information and the system configuration information in the system configuration file to obtain the verification result.
11. A processing device configured for a system, the processing device comprising: Applications in electronic measuring instruments, including: The information acquisition module is used to acquire image information of the target display interface, wherein the target display interface is the display interface presented by the electronic measuring instrument after loading system configuration information; The file generation module is used to generate a corresponding system configuration file based on system configuration information, wherein the system configuration information is a set of parameters configured by the electronic measuring instrument when performing measurement and / or displaying measurement results; and, The file storage module is used to store the system configuration file and the image information, wherein there is an association between the system configuration file and the image information, and the electronic measuring instrument is used to display the relevant image of the image information when the system configuration file is indexed.
12. An electronic measuring instrument, characterized by The electronic measuring instrument includes a processor and a memory; wherein the memory is used to store a computer program, which is loaded and executed by the processor to implement the system configuration processing method as described in any one of claims 1 to 10.
13. A computer-readable storage medium, characterized in that, Used to store computer programs, which, when executed by a processor, implement the system configuration processing method as described in any one of claims 1 to 10.
14. A computer program product comprising a computer program, characterized in that, When the computer program is executed by the processor, it implements the steps of the system configuration processing method as described in any one of claims 1 to 10.
