Supercharge Your Innovation With Domain-Expert AI Agents!

XML-based parsing method for SCPI (The Standard Commands for Programmable Instruments)

An analysis method and command technology, applied in special data processing applications, instruments, electrical digital data processing, etc., can solve problems such as error-prone, difficult to reuse, complex analysis process, etc., and achieve high scalability and versatility. complex effect

Inactive Publication Date: 2014-02-05
THE 41ST INST OF CHINA ELECTRONICS TECH GRP
View PDF2 Cites 7 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

It can be seen that the SCPI parsing process is complex and error-prone, it is difficult to reuse, and the structure of the parser is complex

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
  • XML-based parsing method for SCPI (The Standard Commands for Programmable Instruments)

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0023] like figure 1 As shown, the present invention proposes an XML-based SCPI command parsing method. XML is a general markup language proposed by W3C organization. XML allows document developers to create semantic markup that describes the data and constraints that the document adheres to. Any standard XML parser can read, parse, and verify this text-based self-describing document, and access data elements in a platform-independent manner through standard data access interfaces.

[0024] The main feature of XML is semi-structured, which is a type of data between structured data and completely unstructured data. By customizing the description tag data, the XML document is regarded as a tree structure, in which elements and attributes are mapped Become the node of the tree, and the nested relationship between elements is mapped to the edge of the tree. The XML document has a tree structure, which is similar to the SCPI command tree format, so the XML document can be used t...

Embodiment 2

[0027] On the basis of above-mentioned embodiment, further, provide a kind of SCPI order parsing method based on XML, wherein, comprise the following steps:

[0028] Step 1: Use XML documents to describe SCPI commands; set XML documents to describe SCPI command trees;

[0029] Step 2: judge whether to receive the SCPI command, if yes, enter step 3, otherwise continue to judge whether to receive the SCPI command;

[0030] Step 3: Query the XML document to determine whether there is a match; according to the received SCPI command, separate the SCPI command keyword, and query the matching node in the same level of the XML document; if the matching node is found, take Next-level keywords, query in the child nodes of this node, go to step 4 after the last SCPI command keyword; if no matching node is found, it is determined that no matching item is found, and go to step 2;

[0031] Step 4: Obtain the command number and parameter information; identify and execute the command code, p...

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 provides an XML-based parsing method for SCPI, which comprises the following steps: 1, describing the SCPI by adopting XML documents; 2, judging whether the SCPI are received or not; 3, performing XML document enquiry, and judging whether matches exist or not; 4, acquiring command numbers and parameter information; 5, processing the SCPI. Through the adoption of the scheme, the SCPI parser has high expandability and universality, so that the problem that the conventional SCPI parser is complex in structure and difficult to reuse is solved.

Description

technical field [0001] The invention belongs to the technical field of testing, and in particular relates to an XML-based SCPI command parsing method. Background technique [0002] SCPI (The Standard Commands for Programmable Instruments) is an important standard for program-controlled commands of test and measurement instruments. It has been widely used in various program-controlled test and measurement instruments. The use of SCPI standards is also the development trend of programmable instruments. After receiving the SCPI command, the instrument parses the command statement in the SCPI command set according to the SCPI command syntax format specification, and obtains information such as command code, parameter type, parameter value, and parameter unit to complete the operation required by the command. [0003] To use SCPI commands to control the instrument, the first step is to translate the SCPI commands input by the user into a language that the instrument can recognize...

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
IPC IPC(8): G06F17/30
CPCG06F8/427G06F16/80
Inventor 郭同华刘洪庆李云彬孙龙陈秋伟
Owner THE 41ST INST OF CHINA ELECTRONICS TECH GRP
Features
  • R&D
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More