Equipment parameter measurement method and system, electronic equipment and readable storage medium
By establishing a communication link between the measurement computer and the target device, and using parameter measurement codes and communication objects for automated measurement, the problems of hardware compatibility and high cost in the microwave RF field are solved, and efficient and flexible device parameter measurement is achieved.
Patent Information
- Application Number
- CN202511786737.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-11-28
- Publication Date
- 2026-03-20
AI Technical Summary
Existing methods for measuring equipment parameters in the microwave and radio frequency field suffer from poor hardware compatibility, high costs, and low flexibility. In particular, manual measurement is inefficient and automatic measurement software lacks compatibility when testing multiple devices together.
By establishing a communication link between the measurement computer and the target device, automated measurement is performed using parameter measurement codes and communication objects. It supports multiple connection methods (such as USB-GPIB and LAN), requires no hardware interface replacement, and only requires updating the protocol library to adapt to new device models, thus enabling automatic measurement of device parameters.
It improves hardware compatibility, reduces measurement costs, enhances parameter measurement efficiency and flexibility, supports multi-device collaborative testing, and simplifies the device deployment process.
Smart Images

Figure CN121703533A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of data measurement technology, and in particular to a method, system, electronic device, and readable storage medium for measuring device parameters. Background Technology
[0002] The current development trend in the microwave RF field is "multi-parameter synchronous measurement" and "multi-device collaborative testing". Devices or products need to verify multiple core parameters such as reflection coefficient (S11), transmission coefficient (S21), peak power (e.g., 2W-50W) and delay time (e.g., less than 10ns) at the same time. Moreover, it is often necessary to combine three types of equipment, namely vector network analyzer (VNA), signal source and spectrum analyzer, for joint testing.
[0003] Currently, measurement methods in this field are divided into two categories: manual measurement and automatic measurement. Traditional manual measurement requires manual switching of equipment parameter settings, which is very inefficient for multi-device joint testing, and manual operation is prone to measurement errors due to parameter setting deviations. On the other hand, existing automatic measurement software and hardware have poor compatibility, high cost, and poor flexibility. Summary of the Invention
[0004] This application aims to provide a method, system, electronic device, and readable storage medium for measuring device parameters, which can improve software and hardware compatibility, reduce measurement costs, and improve parameter measurement efficiency and flexibility.
[0005] In a first aspect, embodiments of this application provide a method for measuring device parameters, the method comprising: Connect the target device to the measuring computer to obtain parameter measurement codes and various parameters to be set. The parameter measurement codes are used to measure the corresponding target parameters of the target device. The various parameters to be set include basic device parameters and target parameters. Set the various parameters to be set, and run the parameter measurement code; Establish a communication link between the measuring computer and the target device; The device's basic parameters and target parameters are initialized, and a query command corresponding to each target parameter is sent to the target device so that the target device returns target information results related to the target parameter, until a preset number of measurements is reached to complete the device parameter measurement.
[0006] In some implementations, connecting the target device to the measurement computer includes: Obtain the model number of the target device; Based on the model number, determine the connection method; The target device is connected to the measurement computer using the aforementioned connection method.
[0007] In some embodiments, establishing a communication link between the measuring computer and the target device includes: Create a communication object according to the connection method described; Based on the communication object, a communication link is established between the measurement computer and the target device.
[0008] In some implementations, the connection method includes a LAN connection and a USB-GPIB connection, and the step of creating a communication object according to the connection method includes: If the connection method is a LAN connection, then a TCP / IP communication object is created; If the connection method is USB-GPIB connection, then a GPIB communication object is created.
[0009] In some embodiments, after establishing a communication link between the measuring computer and the target device, the method further includes: Obtain the verification information returned by the target device; Based on the verification information, the connection validity and model matching of the target device are verified. The connection validity verifies whether the target device is connected to the measuring computer, and the model matching verifies whether the model in the verification information matches the target device.
[0010] In some embodiments, the plurality of parameters to be set further includes data storage parameters, and after the target device returns target information results related to the target parameters, the method further includes: Retrieve the storage path and file format from the configured data storage parameters; The target information results are stored according to the storage path and the file format.
[0011] In some embodiments, the method further includes, prior to completing the device parameter measurement: If the measurement of target parameters by the target device involves repeated measurements of multiple sets of target parameters, then multiple sets of operating parameters of the target device are preset. Based on the operating parameters of the multiple sets of target devices, set the parameter adjustment range of the operating parameters of the multiple sets of target devices for each measurement; Based on the parameter adjustment range, the operating parameters of the multiple sets of target devices are adjusted for each measurement to perform repeated measurements of the multiple sets of target parameters.
[0012] Secondly, embodiments of this application also provide a device parameter measurement system, the system comprising: The data acquisition unit is used to connect the target device to the measurement computer, acquire parameter measurement codes and various parameters to be set, wherein the parameter measurement codes are used by the target device to measure the corresponding target parameters, and the various parameters to be set include basic device parameters and target parameters; The code execution unit is used to set the various parameters to be set and run the parameter measurement code. A link establishment unit is used to establish a communication link between the measurement computer and the target device; The parameter measurement unit is used to initialize the basic parameters of the device and the target parameters, and send a query instruction corresponding to each target parameter to the target device so that the target device returns the target information result related to the target parameter, until a preset number of measurements is reached to complete the device parameter measurement.
[0013] Thirdly, embodiments of this application also provide an electronic device, including at least one control processor and a memory for communicatively connecting to the at least one control processor; the memory stores instructions executable by the at least one control processor, the instructions being executed by the at least one control processor to enable the at least one control processor to perform a device parameter measurement method as described above.
[0014] Fourthly, embodiments of this application also provide a computer-readable storage medium storing computer-executable instructions for causing a computer to perform a device parameter measurement method as described above.
[0015] In this embodiment, by connecting the target device to a measurement computer, parameter measurement codes and various parameters to be set are obtained. The parameter measurement codes are used by the target device to measure the corresponding target parameters. The various parameters to be set include basic device parameters and target parameters. The parameters to be set are then configured, and the parameter measurement codes are run. A communication link is established between the measurement computer and the target device. The basic device parameters and target parameters are initialized, and a query command corresponding to each target parameter is sent to the target device, causing the target device to return target information results related to the target parameter. This process continues until a preset number of measurements is reached, completing the device parameter measurement. Thus, connecting the target device to the computer via USB and LAN cable significantly improves hardware compatibility. Only the query commands corresponding to different target parameters need to be sent to the target device via code; there is no need to change the hardware interface or customize hardware or drivers for specific device models, reducing measurement costs. By running the parameter measurement codes and sending query commands corresponding to each target parameter to the target device, the target device returns target information results related to the target parameter. When adapting to new target device models, the device only needs to update its protocol library (without modifying the core code), making the computer-side software deployment flexible and improving the efficiency and flexibility of parameter measurement. Attached Figure Description
[0016] The above and / or additional aspects and advantages of this application will become apparent and readily understood from the description of the embodiments taken in conjunction with the following drawings, in which: Figure 1 This is a schematic flowchart of an embodiment of the device parameter measurement method provided in this application; Figure 2 This is a schematic diagram of the overall method flow in the preferred embodiment of the device parameter measurement method provided in this application; Figure 3 This is a schematic diagram of the code execution flow in the preferred embodiment of the device parameter measurement method provided in this application; Figure 4 This is a schematic diagram of the structure of an embodiment of the equipment parameter measurement system provided in this application; Figure 5 This is a schematic diagram of the structure of an embodiment of the electronic device provided in this application. Detailed Implementation
[0017] The embodiments of this application are described in detail below. Examples of these embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals denote the same or similar elements or elements having the same or similar functions throughout. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain this application, and should not be construed as limiting this application.
[0018] In the description of this application, the use of terms such as "first," "second," etc., is for the purpose of distinguishing technical features only and should not be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated or the order of the technical features indicated.
[0019] In the description of this application, it should be understood that the orientation descriptions, such as up, down, etc., are based on the orientation or positional relationship shown in the accompanying drawings, and are only for the convenience of describing this application and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, or be constructed and operated in a specific orientation, and therefore should not be construed as a limitation of this application.
[0020] In the description of this application, it should be noted that, unless otherwise explicitly defined, terms such as "setup," "installation," and "connection" should be interpreted broadly, and those skilled in the art can reasonably determine the specific meaning of the above terms in this application in conjunction with the specific content of the technical solution.
[0021] Traditional manual measurement requires manual switching of equipment parameter settings, resulting in very low efficiency for multi-device joint testing. Furthermore, manual operation is prone to measurement errors due to parameter setting deviations. Existing automatic measurement software and hardware suffer from poor compatibility, high cost, and poor flexibility.
[0022] To address the problems existing in the prior art, this application proposes a method, system, electronic device, and readable storage medium for measuring device parameters.
[0023] Reference Figure 1 This application provides a schematic flowchart of a device parameter measurement method. This method is applied to electronic devices, such as servers or mobile terminals. Figure 1 As shown, the method for measuring the parameters of this device may include the following steps: Step S101: Connect the target device to the measurement computer, obtain the parameter measurement code and various parameters to be set. The parameter measurement code is used to measure the corresponding target parameters of the target device. The various parameters to be set include the basic parameters of the device and the target parameters. Step S102: Set multiple parameters to be set and run the parameter measurement code; Step S103: Establish a communication link between the measurement computer and the target device; Step S104: Initialize the basic parameters and target parameters of the device, and send a query command corresponding to each target parameter to the target device so that the target device returns the target information results related to the target parameter until the preset number of measurements is reached to complete the device parameter measurement.
[0024] In this embodiment, by connecting the target device to a measurement computer, parameter measurement codes and various parameters to be set are obtained. The parameter measurement codes are used by the target device to measure the corresponding target parameters. The various parameters to be set include basic device parameters and target parameters. The parameters to be set are then set, and the parameter measurement codes are run. A communication link is established between the measurement computer and the target device. The basic device parameters and target parameters are initialized, and a query command corresponding to each target parameter is sent to the target device, causing the target device to return target information results related to the target parameter. This process continues until a preset number of measurements is reached, completing the device parameter measurement. Thus, connecting the target device to the computer via USB and LAN cable greatly improves hardware compatibility. Only the query commands corresponding to different target parameters need to be sent to the target device through the code; there is no need to change the hardware interface or customize hardware or drivers for the specific device model, reducing measurement costs. By running the parameter measurement codes and sending query commands corresponding to each target parameter to the target device, the target device returns target information results related to the target parameter. When adapting to new target device models, the device only needs to update its protocol library (without modifying the core code), making the computer-side software deployment flexible and improving the efficiency and flexibility of parameter measurement.
[0025] The above parameter measurement code can be obtained from the MATLAB software.
[0026] The basic parameters of the aforementioned equipment can include the target equipment type, brand, and specific model.
[0027] The target parameters mentioned above can be parameters such as reflection coefficient (S11), transmission coefficient (S21), peak power (e.g., 2W-50W), and delay time (e.g., less than 10ns).
[0028] The aforementioned establishment of a communication link between the measurement computer and the target device can be achieved by connecting the measurement computer and the target device through a LAN cable, an "NI GPIB-USB-HS" cable, or a "USB AB" cable, etc., to enable communication.
[0029] The aforementioned initialization of basic and target parameters of the equipment can be achieved by sending initialization commands to the target equipment to ensure that the target equipment is in a uniform reference state before measurement.
[0030] The above-mentioned query command corresponding to each target parameter is sent to the target device, so that the target device returns the target information result related to the target parameter. For example, if the target device is a vector network analyzer, the measurement computer sends "CALC:DATA? SDATA" (i.e., query command, querying complex form S parameter) to the vector network analyzer through MATLAB software. The target device returns binary data (i.e., the target information result), and the code is read by the fread function and converted into a MATLAB matrix containing amplitude and phase.
[0031] The number of measurements mentioned above can be a preset value based on the actual situation and can be adjusted according to the actual situation. This embodiment does not impose specific limitations.
[0032] In some implementations, connecting the target device to a measuring computer includes: Obtain the model number of the target device; Determine the connection method based on the model number; Connect the target device to the measurement computer via a connection method.
[0033] In this embodiment, the connection method is determined based on the model number, and then the target device is connected to the measurement computer through the connection method. Only the connection method needs to be selected according to the model number. There is no need to change the hardware interface or customize the hardware or driver for the device model, which greatly improves hardware compatibility and reduces measurement costs.
[0034] The connection method is determined based on the model number. For example, if the target device is model N5247A (i.e., Keysight Vector Network Analyzer), when selecting USB-GPIB connection, use a "NI GPIB-USB-HS" cable. Connect one end to the USB port of the measurement computer, and the other end to the GPIB port of the target device through the GPIB interface. When selecting LAN connection, use a Cat 5e LAN cable to directly connect the computer's network port to the device's LAN port, and ensure that both are on the same local area network (this can be achieved through a router or by configuring the IP address directly).
[0035] In some implementations, establishing a communication link between the measuring computer and the target device includes: Create a communication object based on the connection method; Based on the communication object, a communication link is established between the measurement computer and the target device.
[0036] In this embodiment, a communication link is established between the measurement computer and the target device based on the communication object. This eliminates the need to change the hardware interface or customize hardware or drivers for the device model, greatly improving hardware compatibility and reducing measurement costs.
[0037] The aforementioned communication objects can include TCP / IP communication objects and GPIB communication objects.
[0038] In some implementations, the connection methods include LAN connection and USB-GPIB connection, and the creation of a communication object based on the connection method includes: If the connection method is LAN, then a TCP / IP communication object is created; If the connection method is USB-GPIB, then a GPIB communication object is created.
[0039] In this embodiment, at the hardware level, connecting to any device only requires considering the connection method between the computer and the device. For example, a single "USB-GPIB converter cable" (for VNA) or "LAN cable" (for signal generator / spectrum analyzer) can connect VNA, signal generator, and spectrum analyzer. This overcomes the limitation of existing technologies that "only support VNA." When testing multiple devices, parameter commands for different devices can be sent via MATLAB encoding, and it is compatible with all mainstream brand instruments without requiring changes to the hardware interface.
[0040] In some implementations, after establishing a communication link between the measuring computer and the target device, the method further includes: Obtain the verification information returned by the target device; Based on the verification information, verify the connection validity and model compatibility of the target device. Connection validity verifies whether the target device is connected to the measurement computer, and model compatibility verifies whether the model in the verification information matches the target device.
[0041] In this embodiment, the connection validity and model matching of the target device are verified based on the verification information. Connection validity verifies whether the target device is connected to the measurement computer, and model matching verifies whether the model in the verification information matches the target device. This can better establish a communication link between the measurement computer and the target device and improve measurement accuracy.
[0042] The verification information mentioned above can be the returned IDN information, for example, the information "Keysight Technologies, N5247A, MY56789012, 08.01.0000.00" is returned.
[0043] In some implementations, the various parameters to be set also include data storage parameters. After the target device returns target information results related to the target parameters, the method further includes: Retrieve the storage path and file format from the configured data storage parameters; The target information results are stored according to the storage path and file format.
[0044] In this embodiment, by storing the target information results according to the storage path and file format, the storage can be completed automatically, thereby improving the efficiency of parameter measurement.
[0045] The above storage path can be the storage path for the specified measurement data (such as "D:\TestData\20251016").
[0046] The above file format can be a storage file format for the specified measurement data (e.g., ".mat" for subsequent analysis in MATLAB, ".xlsx" for report export).
[0047] In some implementations, the method further includes, before completing the device parameter measurement: If the measurement of target parameters by the target device involves repeated measurements of multiple sets of target parameters, then multiple sets of operating parameters of the target device are preset. Based on the operating parameters of multiple target devices, set the parameter adjustment range for each measurement. Based on the parameter adjustment range, adjust the working parameters of multiple target devices for each measurement to perform repeated measurements of multiple target parameters.
[0048] In this embodiment, by automatically adjusting the working parameters of multiple target devices for each measurement without manual modification, the efficiency of parameter measurement is improved. When measuring target parameters, there is no need to install special testing software or build a calibration module. Ordinary engineers can master the entire process of "connection-configuration-measurement" with a little training, and can perform parameter measurement and analysis while running other measurement software on the computer.
[0049] The above-mentioned code sets the parameter adjustment range for multiple target devices' operating parameters for each measurement. For example, to verify the performance of the target devices in three frequency bands: "3.3GHz to 3.4GHz", "3.4GHz to 3.5GHz", and "3.5GHz to 3.6GHz", the code sets the parameter adjustment range for multiple target devices' operating parameters for each measurement (e.g., the frequency range increments by 0.1GHz each time) to automatically modify the target devices' operating parameters. For example, sending "SENS:FREQ:START 3.4GHz" and "SENS:FREQ:STOP 3.5GHz" will adjust the target devices' operating parameters from "3.3GHz to 3.4GHz" to "3.4GHz to 3.5GHz".
[0050] To facilitate understanding by those skilled in the art, a set of preferred embodiments is provided below: The current development trend in the microwave RF field is "multi-parameter synchronous measurement" and "multi-device collaborative testing." Devices / products need to simultaneously verify multiple core parameters such as reflection coefficient (S11), transmission coefficient (S21), peak power (e.g., 2W-50W), and delay time (e.g., less than 10ns). This often requires a combination of three types of equipment: vector network analyzer (VNA), signal generator, and spectrum analyzer. Currently, existing measurement methods in this field fall into two categories: 1. Manual Measurement: Each device needs to be operated manually. For example, when testing a 5G filter, various parameters such as the frequency range (e.g., 3.3GHz to 3.6GHz), the number of frequency analysis points (e.g., 2001 points), and the scanning mode (e.g., linear scan) need to be manually set on the VNA to measure various parameters of the radar simulator and download them for calculation. A single measurement takes more than 30 minutes. If it is necessary to use the mode of signal source output excitation and spectrum analyzer to collect spurious signals to assist the experiment, the parameter settings of the devices need to be manually switched. The efficiency of multi-device joint testing is very low, and manual operation is prone to measurement errors due to parameter setting deviations.
[0051] 2. Existing Automatic Measurement Solution: Existing technical solutions achieve automation through a "control module, VNA dedicated connection module, and local server": the control module pre-stores the VNA's GPIB communication protocol, connects to the VNA via a dedicated data cable, and the local server runs customized software (compatible with the VNA model) that can automatically send parameter setting commands and collect S11 / S21 data. However, this solution has three core shortcomings, all of which can be addressed in this embodiment: (1) Hardware compatibility limitations: Only supports VNA, not compatible with signal generators and spectrum analyzers. Because the hardware interface of this solution is only compatible with the GPIB interface of VNA, and does not address the automatic control of devices such as spectrum analyzers and signal generators, there is a problem of cumbersome switching. (2) High deployment cost and poor flexibility: A dedicated test environment needs to be set up to deploy the development board and connect various devices. The development cost of the development board itself and the interface cost of the development board will result in high deployment cost. In addition, drivers need to be developed for VNA models, which further increases the deployment cost. (3) Insufficient software compatibility: The requirement for a dedicated development board makes it difficult to quickly adapt to new models of measurement equipment. For example, if the test equipment is changed from Agilent N5247A VNA to N5249B VNA, the communication protocol or internal logic of the new equipment will change, which will require the development board to be adjusted accordingly, increasing development costs and development cycle. At the same time, if the measurement process needs to add test functions, such as adding real-time peak power monitoring and alarm functions that exceed the standard, the development board also needs to be redeveloped.
[0052] To address the limitations of existing technologies that only support Vector Network Analyzers (VNAs) and are incompatible with signal sources and spectrum analyzers; to overcome the deployment challenges of existing technologies requiring dedicated testing environments (dedicated calibration modules, customized hardware / software), resulting in high costs and poor flexibility; and to resolve the cost and time constraints associated with insufficient software compatibility, this embodiment's technical solution specifically includes the following: Phase 1: Hardware connection and parameter visualization configuration before measurement.
[0053] 1. Hardware connection: Universal cable compatible with devices from multiple manufacturers.
[0054] Reference Figure 2 Based on the manufacturer and model of the device under test, select the following general communication cables to achieve the physical connection between the measurement computer and the device under test (i.e., the target device). Taking a typical device as an example: If it is a vector network analyzer from a certain brand (such as the N5247A model): (1) When selecting USB-GPIB connection, use “NI GPIB-USB-HS” model cable, connect one end to the computer’s USB port, and connect the other end to the device’s GPIB port through the GPIB interface; (2) When selecting LAN connection, use a Category 5e LAN cable to directly connect the computer's network port to the device's LAN port and ensure that both are on the same local area network (this can be achieved by configuring the IP address through a router or direct connection).
[0055] If it is a signal generator / spectrum analyzer of a certain brand: you can choose a "USB AB" cable (compatible with USB communication) or a LAN cable (compatible with LAN communication), and the connection logic is the same as above.
[0056] 2. MATLAB parameter configuration: precise control is achieved through a visual interface.
[0057] Open MATLAB software, load the parameter measurement code (a GUI interface can be designed), and complete the visual setting of three types of core parameters (i.e., parameters to be set) in the interface to provide a basis for subsequent automated measurement: (1) Basic equipment parameters: Select the type of equipment under test (such as “vector network analyzer”, “signal source” and “spectrum analyzer”), brand and specific model (such as “N5247A” and “FSW85”); (2) Target parameters to be measured: Select the parameters to be collected (such as S11, S21, peak power and delay time, etc.), and set the measurement range of the parameters (such as setting the frequency range of S11 to "3.3GHz to 3.6GHz", and the number of frequency analysis points to "2001 points"). (3) Data storage parameters: Specify the storage path of the measurement data (e.g., “D:\TestData\20251016”) and the file format (e.g., “.mat” for subsequent MATLAB analysis, “.xlsx” for report export).
[0058] Phase Two: Automated Execution Logic of MATLAB Code.
[0059] After clicking the "Run" button in the MATLAB interface, the code strictly follows the flow. Figure 3 The logic sequentially completes "device connection → status initialization → target information capture and storage → loop measurement → termination judgment," requiring no manual intervention throughout. Specifically, it includes: 1. Connection of the device under test and IDN verification.
[0060] The code calls MATLAB's tcpip (LAN connection) or gpib (USB-GPIB connection) functions to establish a communication link between the measurement computer and the device under test. For example: When using a LAN connection, the code creates a TCP / IP communication object using `visa('ni',['TCPIP0::','169.254.112.1','::INSTR'])`. When using a USB-GPIB connection, the code creates a GPIB communication object using visa('agilent','GPIB0::16::INSTR').
[0061] After communication is established, the code automatically sends the SCPI standard command "*IDN?" to obtain the IDN information (i.e., verification information) returned by the device. For example, it returns "Keysight Technologies, N5247A, MY56789012, 08.01.0000.00", which is used to verify the validity of the device connection and the model matching.
[0062] 2. The initial state of the equipment is set uniformly.
[0063] The code sends initialization commands to the device under test (DUT) based on the "device basic parameters" and "target measurement parameters" configured in Phase 1, ensuring that the DUT is in a uniform reference state before measurement. For example: For the vector network analyzer, send commands such as "SYST:PRES" (restore factory settings), "SENS:FREQ:START3.3GHz" (set start frequency), "SENS:FREQ:STOP 3.6GHz" (set stop frequency), and "SENS:SWE:POIN2001" (set number of analysis points); For the signal source, send commands such as "POW:AMPL -10dBm" (set output power) and "FREQ 3.5GHz" (set output frequency).
[0064] 3. Target information capture and structured storage.
[0065] The code sends the corresponding query command and parses the measurement data returned by the device based on the "Measurement Target Parameters" selected in Phase 1, for example: If collecting S11 parameters: send “CALC:DATA? SDATA” (query complex S-parameters) to the vector network analyzer. The device under test returns binary data. The code is read by the fread function and converted into a MATLAB matrix containing amplitude and phase. To collect peak power: send “FETCH:POW:PEAK?” to the spectrum analyzer (to query the peak power value). The device returns numerical data, and the code is directly stored as a double-precision floating-point number.
[0066] All data will be automatically written to a file at the specified path, such as a .mat file, according to the "data storage parameters" set in Phase 1.
[0067] 4. Parameter adjustment and cyclic measurement.
[0068] If it is necessary to perform repeated measurements of multiple target parameters (such as verifying the performance of the device under test in three frequency bands: 3.3GHz to 3.4GHz, 3.4GHz to 3.5GHz, and 3.5GHz to 3.6GHz), the code will automatically modify the operating parameters of the device under test according to the preset parameter adjustment rules (such as the frequency range incrementing by 0.1GHz each time) (e.g., sending "SENS:FREQ:START 3.4GHz" and "SENS:FREQ:STOP 3.5GHz"), and repeat the process of "target information capture → data storage".
[0069] 5. Determining the termination condition for measurement.
[0070] The code has a built-in "loop count counter". The counter increments by 1 after each set of target parameter measurements is completed. When the counter reaches the "number of measurements" preset by the user in the MATLAB interface (e.g., 30,000 times), the code automatically terminates the loop and completes the current automatic measurement; if the number of measurements has not been reached, it returns to the "adjust parameters" step and continues to the next set of measurements.
[0071] Compared with the prior art, the technical solution of this embodiment has the following beneficial effects: 1. Breakthrough in device compatibility: No dedicated development board required; compatible with multiple brands / models.
[0072] Technical features: The existing technology replaces the "dedicated development board and custom driver" with "universal cables (USB-GPIB / LAN / USB AB) and MATLAB on a computer (supporting multiple protocols such as GPIB, LAN and LXI)".
[0073] Direct effect: No need to customize hardware and drivers for different manufacturers / models of equipment. It has been verified to be compatible with most mainstream brands of microwave and RF equipment, solving the problem of high cost and long cycle of adapting new models due to the dedicated development board of the existing solution.
[0074] 2. Improved deployment efficiency: Eliminates the need for complex environment setup.
[0075] Technical features: Hardware connection is completed with only a common cable, and MATLAB's "GUI design" enables "one-click parameter configuration and one-click code execution".
[0076] Direct effect: No need to install special testing software or build calibration modules. Ordinary engineers can master the entire process of "connection-configuration-measurement" with a little training.
[0077] 3. Improved software compatibility: Other measurement software can be run on the computer to perform measurement analysis simultaneously.
[0078] Technical features: The MATLAB Instrument Control Toolbox is compatible with other measurement software, such as allowing simultaneous control of a vector network analyzer and operation of other data analysis software on a computer.
[0079] Direct effect: It solves the problem of software incompatibility requiring further development during actual testing. The computer-side interface can run multiple software programs simultaneously, controlling instruments for automatic measurement and data analysis. No secondary development on your own development board is needed; it can run directly with compatibility.
[0080] This embodiment focuses on a radar target simulator (designed center frequency 78.5 GHz, bandwidth 5 GHz), requiring the measurement of its frequency domain reflection coefficient (S11), transmission coefficient (S21), and time domain transient response characteristics. An N5230C vector network analyzer was selected and communicated with the measurement computer via USB-GPIB connection (with an NI GPIB-USB-HS adapter card). This verified the advantages of the automatic measurement method in this embodiment in terms of hardware and software compatibility, measurement efficiency, and accuracy.
[0081] Reference Figure 4 This application also provides a device parameter measurement system, which includes a data acquisition unit 401, a code execution unit 402, a link establishment unit 403, and a parameter measurement unit 404, wherein: The data acquisition unit 401 is used to connect the target device to the measurement computer, acquire parameter measurement codes and various parameters to be set. The parameter measurement codes are used to measure the corresponding target parameters of the target device. The various parameters to be set include basic device parameters and target parameters. Code execution unit 402 is used to set various parameters to be set and to run parameter measurement code. Link establishment unit 403 is used to establish a communication link between the measurement computer and the target device; The parameter measurement unit 404 is used to initialize the basic parameters and target parameters of the device, and send a query command corresponding to each target parameter to the target device so that the target device returns the target information result related to the target parameter until the preset number of measurements is reached to complete the device parameter measurement.
[0082] It should be noted that since the device parameter measurement system in this embodiment is based on the same inventive concept as the device parameter measurement method described above, the corresponding content in the method embodiment is also applicable to this system embodiment, and will not be described in detail here.
[0083] Reference Figure 5 This application also provides an electronic device, which includes: At least one memory; At least one processor; At least one program; The program is stored in memory, and the processor executes at least one program to implement the device parameter measurement method described above in this disclosure.
[0084] This electronic device can be any smart terminal, including mobile phones, tablets, personal digital assistants (PDAs), and in-vehicle computers.
[0085] The electronic devices according to embodiments of this application will now be described in detail.
[0086] The processor 1600 can be implemented using a general-purpose central processing unit (CPU), microprocessor, application-specific integrated circuit (ASIC), or one or more integrated circuits, and is used to execute relevant programs to implement the technical solutions provided in the embodiments of this disclosure. The memory 1700 can be implemented as a read-only memory (ROM), static storage device, dynamic storage device, or random access memory (RAM). The memory 1700 can store the operating system and other application programs. When the technical solutions provided in the embodiments of this specification are implemented through software or firmware, the relevant program code is stored in the memory 1700 and is called by the processor 1600 to execute the device parameter measurement method of the embodiments of this disclosure.
[0087] The input / output interface 1800 is used to implement information input and output. The communication interface 1900 is used to enable communication and interaction between this device and other devices. Communication can be achieved through wired means (such as USB, Ethernet cable, etc.) or wireless means (such as mobile network, WIFI, Bluetooth, etc.). Bus 2000 transmits information between various components of the device (e.g., processor 1600, memory 1700, input / output interface 1800, and communication interface 1900); The processor 1600, memory 1700, input / output interface 1800 and communication interface 1900 are connected to each other within the device via bus 2000.
[0088] This disclosure also provides a storage medium, which is a computer-readable storage medium storing computer-executable instructions for causing a computer to perform the above-described device parameter measurement method.
[0089] Memory, as a non-transitory computer-readable storage medium, can be used to store non-transitory software programs and non-transitory computer-executable programs. Furthermore, memory may include high-speed random access memory, and may also include non-transitory memory, such as at least one disk storage device, flash memory device, or other non-transitory solid-state storage device. In some embodiments, memory may optionally include memory remotely located relative to the processor, and these remote memories can be connected to the processor via a network. Examples of such networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.
[0090] The embodiments described in this disclosure are for the purpose of more clearly illustrating the technical solutions of this disclosure and do not constitute a limitation on the technical solutions provided by this disclosure. As those skilled in the art will know, with the evolution of technology and the emergence of new application scenarios, the technical solutions provided by this disclosure are also applicable to similar technical problems.
[0091] Those skilled in the art will understand that the technical solutions shown in the figures do not constitute a limitation on the embodiments of this disclosure, and may include more or fewer steps than shown, or combine certain steps, or different steps.
[0092] The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate; that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs.
[0093] Those skilled in the art will understand that all or some of the steps in the methods disclosed above, as well as the functional modules / units in the systems and devices, can be implemented as software, firmware, hardware, or suitable combinations thereof.
[0094] The terms “first,” “second,” “third,” “fourth,” etc. (if present) in the specification and accompanying drawings of this application are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of this application described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms “comprising” and “having,” and any variations thereof, are intended to cover non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.
[0095] It should be understood that in this application, "at least one (item)" means one or more, and "more than" means two or more. "And / or" is used to describe the relationship between related objects, indicating that three relationships can exist. For example, "A and / or B" can represent three cases: only A exists, only B exists, and both A and B exist simultaneously, where A and B can be singular or plural. The character " / " generally indicates that the preceding and following related objects are in an "or" relationship. "At least one (item) of the following" or similar expressions refer to any combination of these items, including any combination of single or plural items. For example, at least one (item) of a, b, or c can represent: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", where a, b, and c can be single or multiple.
[0096] In the several embodiments provided in this application, it should be understood that the disclosed apparatus and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between apparatuses or units may be electrical, mechanical, or other forms.
[0097] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.
[0098] Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.
[0099] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes multiple instructions to cause an electronic device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods of the various embodiments of this application. The aforementioned storage medium includes various media capable of storing programs, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks. The embodiments of this application have been described in detail above with reference to the accompanying drawings, but this application is not limited to the above embodiments. Various changes can be made within the scope of knowledge possessed by those skilled in the art without departing from the spirit of this application.
Claims
1. A method for measuring equipment parameters, characterized in that, The method includes: Connect the target device to the measuring computer to obtain parameter measurement codes and various parameters to be set. The parameter measurement codes are used to measure the corresponding target parameters of the target device. The various parameters to be set include basic device parameters and target parameters. Set the various parameters to be set, and run the parameter measurement code; Establish a communication link between the measuring computer and the target device; The device's basic parameters and target parameters are initialized, and a query command corresponding to each target parameter is sent to the target device so that the target device returns target information results related to the target parameter, until a preset number of measurements is reached to complete the device parameter measurement.
2. The equipment parameter measurement method according to claim 1, characterized in that, Connecting the target device to the measurement computer includes: Obtain the model number of the target device; Based on the model number, determine the connection method; The target device is connected to the measurement computer using the aforementioned connection method.
3. The equipment parameter measurement method according to claim 2, characterized in that, Establishing a communication link between the measuring computer and the target device includes: Create a communication object according to the connection method described; Based on the communication object, a communication link is established between the measurement computer and the target device.
4. The equipment parameter measurement method according to claim 3, characterized in that, The connection methods include LAN connection and USB-GPIB connection, and the creation of a communication object according to the connection method includes: If the connection method is a LAN connection, then a TCP / IP communication object is created; If the connection method is USB-GPIB connection, then a GPIB communication object is created.
5. The equipment parameter measurement method according to claim 3, characterized in that, After establishing a communication link between the measuring computer and the target device, the method further includes: Obtain the verification information returned by the target device; Based on the verification information, the connection validity and model matching of the target device are verified. The connection validity verifies whether the target device is connected to the measuring computer, and the model matching verifies whether the model in the verification information matches the target device.
6. The equipment parameter measurement method according to claim 1, characterized in that, The various parameters to be set also include data storage parameters. After the target device returns target information results related to the target parameters, the method further includes: Retrieve the storage path and file format from the configured data storage parameters; The target information results are stored according to the storage path and the file format.
7. The equipment parameter measurement method according to claim 1, characterized in that, Before completing the equipment parameter measurement, the method further includes: If the measurement of target parameters by the target device involves repeated measurements of multiple sets of target parameters, then multiple sets of operating parameters of the target device are preset. Based on the operating parameters of the multiple sets of target devices, set the parameter adjustment range of the operating parameters of the multiple sets of target devices for each measurement; Based on the parameter adjustment range, the operating parameters of the multiple sets of target devices are adjusted for each measurement to perform repeated measurements of the multiple sets of target parameters.
8. A device parameter measurement system, characterized in that, The system includes: The data acquisition unit is used to connect the target device to the measurement computer, acquire parameter measurement codes and various parameters to be set, wherein the parameter measurement codes are used by the target device to measure the corresponding target parameters, and the various parameters to be set include basic device parameters and target parameters; The code execution unit is used to set the various parameters to be set and run the parameter measurement code. A link establishment unit is used to establish a communication link between the measurement computer and the target device; The parameter measurement unit is used to initialize the basic parameters of the device and the target parameters, and send a query instruction corresponding to each target parameter to the target device so that the target device returns the target information result related to the target parameter, until a preset number of measurements is reached to complete the device parameter measurement.
9. An electronic device, characterized in that, It includes at least one control processor and a memory for communicatively connecting to the at least one control processor; the memory stores instructions executable by the at least one control processor to enable the at least one control processor to perform the device parameter measurement method as described in any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer-executable instructions for causing a computer to perform the device parameter measurement method as described in any one of claims 1 to 7.