A method for processing program-controlled commands of a multifunctional measuring instrument

A technology of command processing and measuring instruments, which is applied in the field of program-controlled command processing of multi-function measuring instruments, can solve the problems that the syntax of multi-measurement functions cannot be recognized, the advantages of multi-threading and multi-tasking are not played, and the compatibility of multi-measurement function requirements is not considered. , to avoid the uncertainty of the instrument state, ensure the speed of command parsing, and reduce the amount of code writing

Active Publication Date: 2019-12-27
CHINA ELECTRONIS TECH INSTR CO LTD
View PDF4 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0002] With the continuous development of modern network testing and system integration technology, the application of remote control measurement is becoming more and more extensive. The program control function is an essential interface function module for all general testing instruments. Measurement functions: frequency power measurement, phase noise measurement, spectrum monitoring, transient characteristic measurement, baseband noise measurement, and amplitude modulation noise measurement. Each function is independent, and multiple measurement functions need to be matched to implement multiple sets of SCPI command sets. The increase in command sets It will bring the following problems: how to distinguish the measurement function category of the program control command among hundreds of commands; how each measurement function command set works in conjunction with different program control interface transceiver threads to realize command analysis; A large amount of code redundancy caused by repeated maintenance of menu / command parameters and menu / command processing functions in terms of user interface and program control;
[0011] (1) The traditional program-controlled command processing method is designed for a single measurement function, which requires strict compliance with the SCPI specification and does not consider the compatibility of multi-measurement function requirements. The syntax of multi-measurement functions will not be recognized, so for subsequent processing there's nothing you can do
[0012] (2) For the whole machine software and SCPI commands, in the traditional way of implementation, the general situation is to maintain their independence and loosely couple the codes. Usually, two sets of calling functions are implemented. This method is simple to implement, but this This situation will cause code redundancy, and when setting the hardware state, it is easy to have inconsistent state settings and side effects that are not easy to maintain
[0013] (3) The traditional program-controlled command processing method is easy to implement in a serial manner, and the interaction is relatively simple, but it does not take advantage of multi-threading and multi-tasking, so the efficiency is relatively low

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • A method for processing program-controlled commands of a multifunctional measuring instrument
  • A method for processing program-controlled commands of a multifunctional measuring instrument
  • A method for processing program-controlled commands of a multifunctional measuring instrument

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0028] Below in conjunction with accompanying drawing and specific embodiment the present invention is described in further detail:

[0029] 1. Multi-measurement function SCPI command analysis method

[0030] How does the program-controlled part of the multi-function measuring instrument realize the reception and analysis of multi-measurement function commands, so as to realize the equivalent function with the user interface, set the status of the user's whole machine, and then determine the final measurement status of the whole machine after further parameter adjustment. The present invention adopts the following scheme design to realize the program-controlled analysis part of multi-measurement function, as figure 1 Shown:

[0031] It can be known from the attached figure that in the program-controlled working state, the instrument runs Lan thread, USB thread, GPIB thread, and COM thread at the same time, and the four threads continuously detect whether there is command data...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention discloses a method for processing a program-controlled command of a multifunctional measuring instrument, which belongs to the technical field of electronic testing. The invention aims at the demand for multi-mode and multi-measurement function program-controlled commands, and proposes a SCPI command that is expanded and compatible with the SCPI specification, and analyzed separately. For SCPI commands with different functions, the method of preempting the public command buffer with multi-threading and critical area protection ensures the command parsing speed to the greatest extent, and at the same time avoids the uncertainty of the instrument status caused by the multi-port multi-command buffer method Based on the standard SCPI command syntax format, the multi-measurement function command format is extended and defined, which solves the problem of how to distinguish commands between multiple sets of command sets; based on the menu ID and program control ID mapping method, the program control command is realized. The processing of solves the functional processing of two kinds of parameter sources. The amount of code writing is greatly reduced, and the software scale is streamlined.

Description

technical field [0001] The invention belongs to the technical field of electronic testing, and in particular relates to a method for processing program-controlled commands of a multifunctional measuring instrument. Background technique [0002] With the continuous development of modern network testing and system integration technology, the application of remote control measurement is becoming more and more extensive. The program control function is an essential interface function module for all general testing instruments. Measurement functions: frequency power measurement, phase noise measurement, spectrum monitoring, transient characteristic measurement, baseband noise measurement, and amplitude modulation noise measurement. Each function is independent, and multiple measurement functions need to be matched to implement multiple sets of SCPI command sets. The increase in command sets It will bring the following problems: how to distinguish the measurement function category...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Patents(China)
IPC IPC(8): G06F13/10
CPCG06F13/102
Inventor 李伟杜念文白轶荣刘宝东丁建岽
Owner CHINA ELECTRONIS TECH INSTR CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products