Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Program control command processing method of multi-function measurement 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: 2018-04-06
CHINA ELECTRONIS TECH INSTR CO LTD
View PDF4 Cites 5 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
  • Program control command processing method of multi-function measurement instrument
  • Program control command processing method of multi-function measurement instrument
  • Program control command processing method of multi-function measurement 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 program control command processing method of a multi-function measurement instrument, and belongs to the technical field of electronic testing. According to the method, an SCPI command which extends and is compatible with SCPI specifications is provided for demand of a multi-mode multi-measurement-function program control command, SCPI commands with different functions are differently parsed, a command parsing speed is guaranteed to the most extent by a manner of adding multiple threads and critical-area protection and preempting a public command buffer area, and instrument state uncertainty brought by manners of multi-port multi-command buffer areas is avoided at the same time; a multi-measurement-function command format is expansively defined on the basis of a standard SCPI command grammar format, and the problem of how to differentiate commands in multiple command sets is well solved; and processing of the program control command is realized on the basis ofa manner of menu ID and program control ID mapping, and the problem of function processing of two parameter sources is solved. A code writing amount is greatly reduced, and a 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 Applications(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 Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products