A waveform recorder data integration processing method and device
By running script programs on the waveform recorder and controlling the measurement terminal using the communication bus to collect and analyze data, the complex problem of waveform recorder maintenance is solved, and flexible data acquisition and analysis is realized, which is suitable for a variety of testing environments.
Patent Information
- Application Number
- CN202110155814.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-02-04
- Publication Date
- 2024-12-06
- Estimated Expiration
- 2041-02-04
AI Technical Summary
When existing waveform recorders increase in data acquisition requirements, they require multiple boards, which leads to complex maintenance and makes it difficult to flexibly cope with the needs of different data acquisition functions.
Determine the script file through script selection operations, and send configuration information to the measurement terminal on the communication bus based on the script program, collect and store measurement data, realize data analysis and processing, avoid making new boards, reduce maintenance difficulty, and allow users to By modifying the script file, control the measurement terminal and collect data from different target devices.
No need to configure the host computer software, it realizes data acquisition, storage and analysis, reduces the difficulty of maintenance of the waveform recorder, improves operational flexibility, and is suitable for a variety of test scenarios.
Smart Images

Figure CN112925579B_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the field of measurement technology, and in particular to a method and device for integrating and processing waveform recorder data. Background Art
[0002] Existing waveform recorders collect signals by inserting various boards, and commonly used boards include voltage cards, frequency cards, temperature cards, etc.
[0003] If you need to run different data acquisition functions on the waveform recorder, such as the integrated power calculation function, you need to make a board with the corresponding function. For example, if you need to record specific data such as CAN data, you need to make a corresponding CAN board and implement CAN-related functions on the recorder. As the demand for data acquisition increases, the number of boards required for the recorder increases, making the maintenance of the waveform recorder more and more difficult. Summary of the invention
[0004] The embodiments of the present application provide a waveform recorder data integration processing method and device to reduce the difficulty of waveform recorder maintenance work.
[0005] In a first aspect, an embodiment of the present application provides a waveform recorder data integration processing method, comprising:
[0006] In response to a script selection operation, determining a script file corresponding to the script selection operation, and running a corresponding script program based on the script file;
[0007] Sending measurement configuration information to the measurement terminal via the communication bus, so that the measurement terminal collects measurement data based on the measurement configuration information;
[0008] Acquire the measurement data provided by the measurement terminal through the communication bus, and store the measurement data in a set data storage location;
[0009] Based on the collection feedback message sent by the script program, the measurement data is acquired from the data storage location, and data analysis processing is performed based on the measurement data to obtain a data analysis result.
[0010] Furthermore, before determining the script file corresponding to the script selection operation in response to the script selection operation, the method further includes:
[0011] In response to a script input operation, a script file corresponding to the script input operation is determined, and the script file is stored in a set script storage location, and different script files correspond to script programs that execute different data measurement functions.
[0012] Furthermore, the script file records the communication connection mode with the measurement terminal, configuration command information for controlling the measurement terminal, query command information for obtaining measurement data collected by the measurement terminal, and script function information of one or more of the conversion and storage modes of the measurement data.
[0013] Further, acquiring the measurement data provided by the measurement terminal through the communication bus and storing the measurement data in a set data storage location includes:
[0014] Determine whether the current collection state is the collection completion state;
[0015] If yes, then end the script program;
[0016] Otherwise, the measurement data provided by the measurement terminal is obtained through the communication bus, the measurement data is subjected to standard processing to obtain standard waveform data set data, the standard waveform data set data is stored in a set data storage location, and it is re-determined whether the current acquisition state is the acquisition completion state.
[0017] Furthermore, the step of performing standard processing on the measurement data to obtain standard waveform data set data includes:
[0018] The measurement data is converted into a trend waveform format, and data description information corresponding to the measurement data is added to obtain standard waveform data set data.
[0019] Further, the acquiring the measurement data from the data storage location based on the collection feedback message sent by the script program, and performing data analysis processing based on the measurement data to obtain a data analysis result, includes:
[0020] Based on the collection feedback message sent by the script program, determining the message type of the collection feedback message, the message type including a collection progress message and a collection end message;
[0021] If the message type is a collection progress message, the measurement data is obtained from the data storage location, the measurement data is converted into a format required for display, data analysis is performed based on the measurement data to obtain a data analysis result, and the data analysis result is displayed;
[0022] If the message type is a collection end message, the data collection process is stopped, and data analysis is performed based on the measurement data to obtain data analysis results, and the data analysis results are displayed.
[0023] In a second aspect, an embodiment of the present application provides a waveform recorder data integration processing device, including a script selection module, an acquisition configuration module, a data acquisition module and a data analysis module, wherein:
[0024] The script selection module is used to determine the script file corresponding to the script selection operation in response to the script selection operation, and run the corresponding script program based on the script file;
[0025] The acquisition configuration module is used to send measurement configuration information to the measurement terminal through the communication bus, so that the measurement terminal acquires measurement data based on the measurement configuration information;
[0026] The data acquisition module is used to acquire the measurement data provided by the measurement terminal through the communication bus, and store the measurement data in a set data storage location;
[0027] The data analysis module is used to obtain the measurement data from the data storage location based on the collection feedback message sent by the script program, and perform data analysis processing based on the measurement data to obtain data analysis results.
[0028] In a third aspect, an embodiment of the present application provides a waveform recorder data integration processing system, including a waveform recorder, a communication bus and a measurement terminal, wherein the waveform recorder is provided with a terminal application, a script processing process, a script program and a storage medium, wherein the terminal application communicates with the script processing process and the storage medium, the script program communicates with the script processing process and the storage medium, and communicates with the measurement terminal through the communication bus, wherein:
[0029] The terminal application determines, in response to the script selection operation, a script file corresponding to the script selection operation, and notifies the script processing process to run a corresponding script program based on the script file;
[0030] The script program sends measurement configuration information to the measurement terminal through the communication bus, so that the measurement terminal collects measurement data based on the measurement configuration information;
[0031] The script program acquires the measurement data provided by the measurement terminal through the communication bus, and stores the measurement data in a data storage location set in the storage medium;
[0032] Based on the collection feedback message sent by the script program, the terminal application obtains the measurement data from the data storage location, and performs data analysis processing based on the measurement data to obtain a data analysis result.
[0033] In a fourth aspect, an embodiment of the present application provides a waveform recorder data integration processing device, including: a memory and one or more processors;
[0034] The memory is used to store one or more programs;
[0035] When the one or more programs are executed by the one or more processors, the one or more processors implement the waveform recorder data integration processing method as described in the first aspect.
[0036] In a fifth aspect, an embodiment of the present application provides a storage medium comprising computer executable instructions, which, when executed by a computer processor, are used to execute the waveform recorder data integration processing method as described in the first aspect.
[0037] The embodiment of the present application determines the script file corresponding to the script selection operation, runs the corresponding script program based on the script file, and sends configuration information to the measurement terminal through the communication bus, so that the measurement terminal collects measurement data according to the configuration information, obtains and saves the measurement data provided by the measurement terminal through the communication bus, and at the same time, obtains the measurement data based on the collection feedback message sent by the script program, and performs data analysis and processing based on the measurement data to obtain the data analysis result. There is no need to make a new board, run the script program on the waveform recorder, control other measurement terminals and read the measurement data of other measurement terminals at regular intervals, and store and analyze the measurement data. At the same time, there is no need to configure the host computer software for data collection and storage, which effectively reduces the difficulty of maintenance of the waveform recorder, and the user can control the measurement terminal by modifying the script file, collect data from different target devices, and the operation is flexible. BRIEF DESCRIPTION OF THE DRAWINGS
[0038] Figure 1 It is a structural schematic diagram of a waveform recorder data integration processing system provided in an embodiment of the present application;
[0039] Figure 2 It is a flow chart of a waveform recorder data integration processing method provided by an embodiment of the present application;
[0040] Figure 3 It is a structural schematic diagram of another waveform recorder data integration processing system provided in an embodiment of the present application;
[0041] Figure 4 is a flow chart of another waveform recorder data integration processing method provided in an embodiment of the present application;
[0042] Figure 5 It is a structural schematic diagram of a waveform recorder data integration processing device provided in an embodiment of the present application;
[0043] Figure 6 It is a structural schematic diagram of a waveform recorder data integration processing device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0044] In order to make the purpose, technical scheme and advantages of the present application clearer, the specific embodiments of the present application are further described in detail below in conjunction with the accompanying drawings. It is understood that the specific embodiments described herein are only used to explain the present application, rather than to limit the present application. It should also be noted that, for the convenience of description, only the part related to the present application but not all the contents are shown in the accompanying drawings. Before discussing the exemplary embodiments in more detail, it should be mentioned that some exemplary embodiments are described as processes or methods depicted as flow charts. Although the flow chart describes each operation (or step) as a sequential process, many of the operations therein can be implemented in parallel, concurrently or simultaneously. In addition, the order of each operation can be rearranged. The process can be terminated when its operation is completed, but it can also have additional steps not included in the accompanying drawings. The process can correspond to a method, a function, a procedure, a subroutine, a subprogram, etc.
[0045] Figure 1 A schematic diagram of the structure of a waveform recorder data integration processing system provided in an embodiment of the present application is given, such as Figure 1 As shown, the waveform recorder data integration processing system includes a waveform recorder, a communication bus and a measurement terminal. The waveform recorder is configured with a terminal application, a script processing process, a script program and a storage medium, wherein the terminal application communicates with the script processing process and the storage medium, the script program communicates with the script processing process and the storage medium, and communicates with the measurement terminal through the communication bus. The waveform recorder is a waveform data acquisition recorder device that can continuously and synchronously acquire and record trend waveforms of multiple channels and multiple signals (such as voltage, current, frequency, temperature, etc.) for a long time. One or more measurement terminals can be set, and this application does not limit it.
[0046] Among them, the terminal application determines the script file corresponding to the script selection operation in response to the script selection operation, and notifies the script processing process to run the corresponding script program based on the script file. The script program sends measurement configuration information to the measurement terminal through the communication bus, so that the measurement terminal collects measurement data based on the measurement configuration information. The script program obtains the measurement data provided by the measurement terminal through the communication bus, and stores the measurement data in the data storage location set in the storage medium. Based on the collection feedback message sent by the script program, the terminal application obtains the measurement data from the data storage location, and performs data analysis processing based on the measurement data to obtain the data analysis result.
[0047] Figure 2A flow chart of a waveform recorder data integration processing method provided in an embodiment of the present application is given. The waveform recorder data integration processing method provided in the embodiment of the present application can be executed by a waveform recorder data integration processing device and run in the waveform recorder data integration processing system provided in the above embodiment. The waveform recorder data integration processing device can be implemented by hardware and / or software and integrated in a waveform recorder data integration processing device (such as a waveform recorder).
[0048] The following description is made by taking the waveform recorder data integration processing device executing the waveform recorder data integration processing method as an example. Figure 2 , the waveform recorder data integration processing method includes:
[0049] S101: In response to a script selection operation, determining a script file corresponding to the script selection operation, and running a corresponding script program based on the script file.
[0050] Exemplarily, the terminal application is run to enable the terminal application integration function of the waveform recorder, the terminal application and the script processing process are run in the waveform recorder, and the script selection operation is detected through the terminal application.
[0051] The terminal application provided in this embodiment and the script processing process agree on a communication protocol and communication method, such as a message queue, semaphore, socket, etc. After detecting the script selection operation, the terminal application determines the script file corresponding to the script selection operation, and sends the script information corresponding to the script file to the script processing process based on the agreed communication protocol and communication method, so as to notify the script processing process to run the corresponding script program based on the script file. After receiving the script information, the script processing process loads the script file in the background and runs the corresponding script program.
[0052] The waveform recorder data integration processing device provided in this embodiment stores different script files, and can run script programs corresponding to different data acquisition and analysis functions based on different script files. The terminal application provided in this embodiment is a waveform recorder front-end application, which interacts with the user through the front-end interface and schedules other hardware work, such as boards, FPGAs and other hardware, to realize waveform acquisition process control, and can process, analyze and display data.
[0053] S102: Send measurement configuration information to a measurement terminal via a communication bus, so that the measurement terminal collects measurement data based on the measurement configuration information.
[0054] The measurement terminal is a measuring instrument that supports data acquisition and is used to connect to the target device. The communication bus is used to connect the waveform recorder and the measurement terminal so that the waveform recorder and the measurement terminal can communicate. The communication connection methods of the communication bus include TCP, USB, GPIB, RS232, etc.
[0055] Exemplarily, the script program running in the waveform recorder sends measurement configuration information to the measurement terminal through the communication bus. The measurement terminal sets the acquisition parameters according to the received measurement configuration information, collects data from the target device based on the set acquisition parameters, and obtains the measurement data. Generally, the measurement terminal lacks a recording function or has a limited recording buffer, such as a digital multimeter, a power meter, a power analyzer, etc. This embodiment obtains the measurement data collected by the measurement terminal through the communication bus to store the measurement data.
[0056] S103: Acquire the measurement data provided by the measurement terminal through the communication bus, and store the measurement data in a set data storage location.
[0057] Exemplarily, the script program obtains the measurement data collected by the measurement terminal from the communication bus, and saves the measurement data to a set data storage location, wherein the data storage location is set in a storage medium provided by the waveform recorder data integration processing system.
[0058] The storage medium provided in this embodiment can be a medium that can store data, such as a memory, a hard disk, a USB flash drive, or an SD card.
[0059] S104: Based on the collection feedback message sent by the script program, the measurement data is acquired from the data storage location, and data analysis is performed based on the measurement data to obtain a data analysis result.
[0060] Exemplarily, the script program determines the current data collection process according to the measurement data received from the collection terminal and the collection process requirements indicated by the script file, generates a corresponding collection feedback message, and sends it to the terminal application.
[0061] Further, after receiving the collection feedback message sent by the script program, the terminal application determines whether the data collection process is completed according to the collection feedback message. If the data collection process has been completed or the collection stop operation is detected, the measurement data is obtained from the above data storage location, and data analysis is performed based on the measurement data to obtain the data analysis result. Optionally, after obtaining the data analysis result, the data analysis result is displayed on the display screen of the waveform recorder.
[0062] In the above, by determining the script file corresponding to the script selection operation, and running the corresponding script program based on the script file, and sending configuration information to the measurement terminal through the communication bus, the measurement terminal collects measurement data according to the configuration information, obtains and saves the measurement data provided by the measurement terminal through the communication bus, and at the same time, obtains the measurement data based on the collection feedback message sent by the script program, and performs data analysis and processing based on the measurement data to obtain the data analysis results. There is no need to make a new board, run the script program on the waveform recorder, control other measurement terminals and read the measurement data of other measurement terminals at regular intervals, and store and analyze the measurement data. At the same time, there is no need to configure the host computer software for data collection and storage, which effectively reduces the difficulty of maintenance of the waveform recorder, and the user can modify the script file to realize the control of the measurement terminal and collect data from different target devices, which is flexible to operate.
[0063] Based on the above embodiments, Figure 3 A schematic structural diagram of another waveform recorder data integration processing system provided in an embodiment of the present application is given. The waveform recorder data integration processing system is further configured on the basis of the above-mentioned waveform recorder data integration processing system.
[0064] Specifically, based on the waveform recorder data integration processing system provided in the above embodiment, the terminal application provided in this embodiment is provided with a display screen, a display module, an analysis module and an acquisition module that communicate in sequence, wherein the acquisition module is communicatively connected to the script processing process, and the script program is configured with a control module, a conversion module and a storage module that communicate in sequence, wherein the control module is communicatively connected to the communication bus, and the storage module communicates with the storage medium.
[0065] Among them, the display screen is used to display the interactive interface and detect touch operations, the display module is used to display the trend waveform data or numerical list data in the data set on the interactive interface, the analysis module is used to analyze the data in the data set, and perform secondary analysis on the data by searching, measuring, calculating, and statistical methods, and form the analysis results and send them to the display module for display, and the acquisition module is used to control the data acquisition process, interact with the script processing process, read the data in the storage medium and distribute it to each module. The script processing process is a background process, which is used to interact with the terminal application, receive commands from the terminal application, such as script execution, script stop commands, etc., and call the script program to control other measurement terminals to realize integrated functions, and return the script execution log and status information to the terminal application.
[0066] Furthermore, the control module is used to communicate with the measurement terminal, send SCPI commands to control the measurement terminal, and read the measurement data collected by the measurement terminal. The conversion module is used to convert the instantaneous numerical value in the measurement data read from the measurement terminal into a trend waveform format, and add other measurement data and data description information to combine into the standard waveform data set data of the recorder. The storage module is used to store the standard waveform data set data in a storage medium.
[0067] Based on the above embodiments, Figure 4 A flowchart of another waveform recorder data integration processing method provided in an embodiment of the present application is given. The waveform recorder data integration processing method is a specific embodiment of the above-mentioned waveform recorder data integration processing method, and the waveform recorder data integration processing method provided in an embodiment of the present application can be run in the waveform recorder data integration processing system provided in the above-mentioned embodiment. Figure 4 , the waveform recorder data integration processing method includes:
[0068] S201: In response to a script input operation, determining a script file corresponding to the script input operation, and storing the script file in a set script storage location.
[0069] The script input operation provided in this embodiment can be to directly input the script file into the waveform recorder, or to create and edit the script on the waveform recorder to obtain the script file, or to edit and update the script file saved by the waveform recorder itself to obtain the script file. In addition, the script file provided in this embodiment is saved in a set script storage location, and the script storage location can be set in a storage medium.
[0070] The script file provided in this embodiment records the communication connection method with the measurement terminal, configuration command information for controlling the measurement terminal, query command information for obtaining measurement data collected by the measurement terminal, and one or more script function information of the conversion and storage method of the measurement data, and different script files correspond to script programs that execute different data measurement functions.
[0071] Before using the measurement terminal to collect data from the target device, it is necessary to first build an integrated environment corresponding to the waveform recorder data integration processing system. That is, the waveform recorder and the measurement terminal are connected to the same communication bus, the communication between the waveform recorder and the measurement terminal is established, and the measurement terminal can be connected to the target device to detect the target device and generate corresponding measurement data.
[0072] Specifically, in response to the script input operation of the user, the script file corresponding to the script input operation is determined, and the input script file is stored in the set script storage location. For example, the user writes the script code and generates a script file based on the script code, such as writing a Python script, and the following functions are implemented in the script: communicate with the measurement terminal, send SCPI setting commands to control the measurement terminal, send SCPI query commands to obtain data from the measurement terminal, call the interface provided by the waveform recorder to convert the data into a trend waveform, and call the interface provided by the waveform recorder to store data in the trend waveform format. The script storage location can be set in the waveform recorder directory, and the written script file can be stored in the waveform recorder directory.
[0073] S202: In response to a script selection operation, determining a script file corresponding to the script selection operation, and running a corresponding script program based on the script file.
[0074] S203: Send measurement configuration information to the measurement terminal through the communication bus, so that the measurement terminal collects measurement data based on the measurement configuration information.
[0075] S204: Determine whether the current acquisition state is the acquisition completion state. If yes, jump to step S205, otherwise jump to step S206.
[0076] Specifically, the control module in the script program detects the current acquisition state of the waveform recorder and determines whether the current acquisition state is the acquisition completion state. When the script program completes the required amount of data acquisition according to the acquisition requirements of the script file, the acquisition state is updated to the acquisition completion state, or when the acquisition stop operation performed by the user is detected, the acquisition state is updated to the acquisition completion state, otherwise the acquisition state is maintained in the acquisition progress state. If the current acquisition state is the acquisition completion state, jump to step S205, otherwise jump to step S206.
[0077] S205: End the script program.
[0078] If the current acquisition state is the acquisition completion state, it can be considered that the specified number of waveform points has been acquired or the user stops the acquisition, then the script program exits the control of the measurement terminal, ends the current script program, and sends an acquisition feedback message to the terminal application through the script processing process to notify the terminal application of the end of acquisition. After the script program ends, jump to step S207.
[0079] S206: Acquire the measurement data provided by the measurement terminal through the communication bus, perform standard processing on the measurement data to obtain standard waveform data set data, store the standard waveform data set data to a set data storage location, and re-determine whether the current acquisition state is an acquisition completion state.
[0080] If the current acquisition state is the acquisition in progress state, the control module sends a SCPI command to the measurement terminal to obtain the measurement data acquired by the measurement terminal. Further, the measurement data is subjected to standard processing to obtain standard waveform data set data.
[0081] Furthermore, the standard waveform data set data is stored in the data storage location set by the storage medium through the storage module. The script program sends a collection feedback message to the terminal application through the script processing process to notify the terminal application of the current data collection progress, that is, the number of waveform points collected, and returns to step S204 to re-determine whether the current collection state is the collection completion state.
[0082] In a possible embodiment, the standard processing of the measurement data to obtain the standard waveform data set data includes: converting the measurement data into a trend waveform format, and adding data description information corresponding to the measurement data to obtain the standard waveform data set data. That is, the measurement data obtained from the measurement terminal is converted into a trend waveform format through a conversion module, and other measurement data and data description information are added to form a standard waveform data set data suitable for the waveform recorder.
[0083] S207: Based on the collection feedback message sent by the script program, determine whether the message type of the collection feedback message is a collection progress message. If yes, jump to step S208, otherwise jump to step S209.
[0084] The message types provided in this embodiment include a collection progress message and a collection end message.
[0085] After receiving the collection progress message sent by the script processing process, the terminal application will execute the data processing process. Specifically, after receiving the collection feedback message sent by the script program, the application terminal determines whether the message type of the collection feedback message is a collection progress message or a collection end message. If it is a collection progress message, it jumps to step S208, otherwise it jumps to step S209.
[0086] S208: Acquire the measurement data from the data storage location, convert the measurement data into a format required for display, perform data analysis based on the measurement data to obtain a data analysis result, and display the data analysis result.
[0087] Specifically, if the received message type is an acquisition progress message, the acquisition module reads the measurement data from the data storage location, such as reading the standard waveform data set data, and converts the measurement data into a data format required by the analysis module for processing the data.
[0088] Furthermore, the analysis module performs data analysis and processing on the measurement data after format conversion, such as waveform scaling, searching, calculation, statistics, etc., and generates data analysis results, converts the data analysis results into the data format required by the display module, and the display module displays the data analysis results on the display screen.
[0089] It is understandable that when the script program sends out an acquisition progress message and the application terminal performs analysis and display, the script program continues to execute the data acquisition process until the set number of waveform points is acquired or the user ends the acquisition process.
[0090] S209: Stop the data collection process, perform data analysis based on the measurement data to obtain data analysis results, and display the data analysis results.
[0091] Specifically, if the received message type is a collection end message, the data collection process of the script program is stopped, and the collection module further reads the measurement data from the data storage location, and converts the measurement data into a data format required by the analysis module for processing the data. Further, the analysis module performs data analysis on the measurement data after the format conversion, generates a data analysis result, converts the data analysis result into a data format required by the display module, and the display module displays the data analysis result on the display screen.
[0092] In the above, by determining the script file corresponding to the script selection operation, and running the corresponding script program based on the script file, and sending configuration information to the measurement terminal through the communication bus, the measurement terminal collects measurement data according to the configuration information, obtains and saves the measurement data provided by the measurement terminal through the communication bus, and at the same time, obtains the measurement data based on the collection feedback message sent by the script program, and performs data analysis and processing based on the measurement data to obtain the data analysis results. There is no need to make a new board, run the script program on the waveform recorder, control other measurement terminals and read the measurement data of other measurement terminals at regular intervals, and store and analyze the measurement data. At the same time, there is no need to configure the host computer software for data collection and storage, which effectively reduces the difficulty of maintenance of the waveform recorder, and the user can modify the script file to realize the control of the measurement terminal and collect data from different target devices, which is flexible to operate.
[0093] At the same time, data integration and control integration technologies are utilized. By running script files on the waveform recorder, SCPI commands are used to control the measurement terminal, and the measurement terminal data is read, and the raw data of the measurement terminal is converted into a unified standard data set format and stored in the waveform recorder storage medium. This application uses the waveform recorder as a terminal, runs a control script on the recorder to periodically read the measurement data collected by the target device, converts the measurement data of the collection terminal into a data set suitable for the recorder, stores it in the set data storage location, displays the trend waveform and value list corresponding to the measurement data in the waveform recorder interface, and can use the recorder analysis function to process the measurement data. Moreover, it is not necessary to manufacture new boards to integrate the acquisition terminal function and display the acquisition terminal measurement data. It is not necessary to use the host computer software to collect, save data, and display waveforms and values. It is not necessary to configure an additional PC. These functions can be integrated in the waveform recorder, which expands the functions of the waveform recorder and the acquisition terminal. The waveform recorder can be used to analyze the acquisition terminal data, such as measurement, calculation, FFT (Fast Fourier Transform), search, statistics, etc., and the user can control the acquisition terminal by modifying the script file to collect data from different instruments. The operation is flexible and suitable for outdoor test scenarios, such as vehicle-mounted test environments. Power station test environments, etc.
[0094] Figure 5 A schematic diagram of the structure of a waveform recorder data integration processing device provided in an embodiment of the present application is given. Figure 5 The waveform recorder data integration processing device includes a script selection module 51, an acquisition configuration module 52, a data acquisition module 53 and a data analysis module 54.
[0095] Among them, the script selection module 51 is used to determine the script file corresponding to the script selection operation in response to the script selection operation, and run the corresponding script program based on the script file; the acquisition configuration module 52 is used to send measurement configuration information to the measurement terminal through the communication bus, so that the measurement terminal collects measurement data based on the measurement configuration information; the data acquisition module 53 is used to acquire the measurement data provided by the measurement terminal through the communication bus, and store the measurement data to a set data storage location; the data analysis module 54 is used to acquire the measurement data from the data storage location based on the acquisition feedback message issued by the script program, and perform data analysis processing based on the measurement data to obtain data analysis results.
[0096] In the above, by determining the script file corresponding to the script selection operation, and running the corresponding script program based on the script file, and sending configuration information to the measurement terminal through the communication bus, the measurement terminal collects measurement data according to the configuration information, obtains and saves the measurement data provided by the measurement terminal through the communication bus, and at the same time, obtains the measurement data based on the collection feedback message sent by the script program, and performs data analysis and processing based on the measurement data to obtain the data analysis results. There is no need to make a new board, run the script program on the waveform recorder, control other measurement terminals and read the measurement data of other measurement terminals at regular intervals, and store and analyze the measurement data. At the same time, there is no need to configure the host computer software for data collection and storage, which effectively reduces the difficulty of maintenance of the waveform recorder, and the user can modify the script file to realize the control of the measurement terminal and collect data from different target devices, which is flexible to operate.
[0097] The embodiment of the present application also provides a waveform recorder data integration processing device, which can integrate the waveform recorder data integration processing device provided in the embodiment of the present application. Figure 6 Schematic diagram of the structure of a waveform recorder data integration processing device provided in an embodiment of the present application. Figure 6 The waveform recorder data integration processing device includes: an input device 63, an output device 64, a memory 62 and one or more processors 61; the memory 62 is used to store one or more programs; when the one or more programs are executed by the one or more processors 61, the one or more processors 61 implement the waveform recorder data integration processing method provided in the above embodiment. The input device 63, the output device 64, the memory 62 and the processor 61 can be connected by a bus or other means. Figure 6 The example of connecting through bus is taken in the following.
[0098] The memory 62, as a computing device readable storage medium, can be used to store software programs, computer executable programs and modules, such as the program instructions / modules corresponding to the waveform recorder data integration processing method described in any embodiment of the present application (for example, the script selection module 51, the acquisition configuration module 52, the data acquisition module 53 and the data analysis module 56 in the waveform recorder data integration processing device). The memory 62 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function; the data storage area may store data created according to the use of the device, etc. In addition, the memory 62 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other non-volatile solid-state storage device. In some instances, the memory 62 may further include a memory remotely arranged relative to the processor 61, and these remote memories may be connected to the device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network and a combination thereof.
[0099] The input device 63 may be used to receive input digital or character information and generate key signal input related to user settings and function control of the device. The output device 64 may include a display device such as a display screen.
[0100] The processor 61 executes various functional applications and data processing of the device by running the software programs, instructions and modules stored in the memory 62, that is, realizes the above-mentioned waveform recorder data integration processing method.
[0101] The waveform recorder data integration processing device, equipment and computer provided above can be used to execute the waveform recorder data integration processing method provided in any of the above embodiments, and have corresponding functions and beneficial effects.
[0102] An embodiment of the present application also provides a storage medium containing computer executable instructions, which, when executed by a computer processor, are used to execute a waveform recorder data integration processing method as provided in the above embodiment, and the waveform recorder data integration processing method includes: determining a script file corresponding to the script selection operation in response to a script selection operation, and running a corresponding script program based on the script file; sending measurement configuration information to a measurement terminal via a communication bus, so that the measurement terminal collects measurement data based on the measurement configuration information; acquiring the measurement data provided by the measurement terminal via the communication bus, and storing the measurement data in a set data storage location; acquiring the measurement data from the data storage location based on a collection feedback message sent by the script program, and performing data analysis processing based on the measurement data to obtain a data analysis result.
[0103] Storage medium - any of various types of memory devices or storage devices. The term "storage medium" is intended to include: installation media, such as CD-ROM, floppy disk or tape device; computer system memory or random access memory, such as DRAM, DDR RAM, SRAM, EDO RAM, Rambus RAM, etc.; non-volatile memory, such as flash memory, magnetic media (such as hard disk or optical storage); registers or other similar types of memory elements, etc. Storage media may also include other types of memory or combinations thereof. In addition, the storage medium may be located in the first computer system in which the program is executed, or may be located in a different second computer system, which is connected to the first computer system via a network (such as the Internet). The second computer system can provide program instructions to the first computer for execution. The term "storage medium" may include two or more storage media that may reside in different locations (for example, in different computer systems connected by a network). The storage medium may store program instructions (for example, embodied as a computer program) that can be executed by one or more processors.
[0104] Of course, the storage medium containing computer executable instructions provided in the embodiment of the present application is not limited to the waveform recorder data integration processing method described above, and can also execute related operations in the waveform recorder data integration processing method provided in any embodiment of the present application.
[0105] The waveform recorder data integration processing device, equipment and storage medium provided in the above embodiments can execute the waveform recorder data integration processing method provided in any embodiment of the present application. For technical details not described in detail in the above embodiments, please refer to the waveform recorder data integration processing method provided in any embodiment of the present application.
[0106] The above are only preferred embodiments of the present application and the technical principles used. The present application is not limited to the specific embodiments described herein, and various obvious changes, readjustments and substitutions that can be made by those skilled in the art will not deviate from the scope of protection of the present application. Therefore, although the present application is described in more detail through the above embodiments, the present application is not limited to the above embodiments, and may include more other equivalent embodiments without departing from the concept of the present application, and the scope of the present application is determined by the scope of the claims.
Claims
1. A waveform recorder data integration processing method, characterized in that: include: In response to a script input operation, determining a script file corresponding to the script input operation, and storing the script file in a set script storage location, wherein different script files correspond to script programs that execute different data measurement functions; In response to a script selection operation, determining a script file corresponding to the script selection operation, and running a corresponding script program based on the script file; Sending measurement configuration information to the measurement terminal via the communication bus, so that the measurement terminal collects measurement data based on the measurement configuration information; Acquire the measurement data provided by the measurement terminal through the communication bus, and store the measurement data in a set data storage location; Based on the collection feedback message sent by the script program, the measurement data is acquired from the data storage location, and data analysis processing is performed based on the measurement data to obtain a data analysis result.
2. The waveform recorder data integration processing method according to claim 1, characterized in that: The script file records the communication connection mode with the measurement terminal, configuration command information for controlling the measurement terminal, query command information for obtaining measurement data collected by the measurement terminal, and script function information of one or more of the conversion and storage modes of the measurement data.
3. The waveform recorder data integration processing method according to claim 1, characterized in that: The step of acquiring the measurement data provided by the measurement terminal through the communication bus and storing the measurement data in a set data storage location includes: Determine whether the current collection state is the collection completion state; If yes, then end the script program; Otherwise, the measurement data provided by the measurement terminal is obtained through the communication bus, the measurement data is subjected to standard processing to obtain standard waveform data set data, the standard waveform data set data is stored in a set data storage location, and it is re-determined whether the current acquisition state is the acquisition completion state.
4. The waveform recorder data integration processing method according to claim 3 is characterized in that: The step of performing standard processing on the measurement data to obtain standard waveform data set data includes: The measurement data is converted into a trend waveform format, and data description information corresponding to the measurement data is added to obtain standard waveform data set data.
5. The waveform recorder data integration processing method according to claim 1, characterized in that: The acquiring the measurement data from the data storage location based on the collection feedback message sent by the script program, and performing data analysis processing based on the measurement data to obtain a data analysis result, includes: Based on the collection feedback message sent by the script program, determining the message type of the collection feedback message, the message type including a collection progress message and a collection end message; If the message type is a collection progress message, the measurement data is obtained from the data storage location, the measurement data is converted into a format required for display, data analysis is performed based on the measurement data to obtain a data analysis result, and the data analysis result is displayed; If the message type is a collection end message, the data collection process is stopped, and data analysis is performed based on the measurement data to obtain data analysis results, and the data analysis results are displayed.
6. A waveform recorder data integration processing device, characterized in that: It includes script selection module, collection configuration module, data acquisition module and data analysis module, among which: The script selection module is used to determine the script file corresponding to the script selection operation in response to the script selection operation, and run the corresponding script program based on the script file; The acquisition configuration module is used to send measurement configuration information to the measurement terminal through the communication bus, so that the measurement terminal acquires measurement data based on the measurement configuration information; The data acquisition module is used to acquire the measurement data provided by the measurement terminal through the communication bus, and store the measurement data in a set data storage location; The data analysis module is used to obtain the measurement data from the data storage location based on the collection feedback message sent by the script program, and perform data analysis processing based on the measurement data to obtain data analysis results; The waveform recorder data integration processing device is also used to, in response to a script input operation, determine a script file corresponding to the script input operation, and store the script file in a set script storage location, wherein different script files correspond to script programs that execute different data measurement functions.
7. A waveform recorder data integration processing system, characterized in that: The invention comprises a waveform recorder, a communication bus and a measuring terminal, wherein the waveform recorder is provided with a terminal application, a script processing process, a script program and a storage medium, wherein the terminal application communicates with the script processing process and the storage medium, the script program communicates with the script processing process and the storage medium, and communicates with the measuring terminal through the communication bus, wherein: The terminal application determines, in response to the script input operation, a script file corresponding to the script input operation, and stores the script file in a set script storage location, wherein different script files correspond to script programs that execute different data measurement functions; The terminal application determines, in response to the script selection operation, a script file corresponding to the script selection operation, and notifies the script processing process to run a corresponding script program based on the script file; The script program sends measurement configuration information to the measurement terminal through the communication bus, so that the measurement terminal collects measurement data based on the measurement configuration information; The script program acquires the measurement data provided by the measurement terminal through the communication bus, and stores the measurement data in a data storage location set in the storage medium; Based on the collection feedback message sent by the script program, the terminal application obtains the measurement data from the data storage location, and performs data analysis processing based on the measurement data to obtain a data analysis result.
8. A waveform recorder data integration processing device, characterized in that: include: memory and one or more processors; The memory is used to store one or more programs; When the one or more programs are executed by the one or more processors, the one or more processors implement the waveform recorder data integration processing method as described in any one of claims 1 to 5.
9. A storage medium containing computer executable instructions, characterized in that: The computer executable instructions are used to execute the waveform recorder data integration processing method as described in any one of claims 1 to 5 when executed by a computer processor.
Citation Information
Patent Citations
High-voltage frequency converter data collection system and data storage method based on controller area network interface card
CN107451032A
Power data centralized control system integrating multi-source power information
CN111884347A
Telephone call handling system
US20110319104A1
