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
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
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...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More - R&D
- Intellectual Property
- Life Sciences
- Materials
- Tech Scout
- Unparalleled Data Quality
- Higher Quality Content
- 60% Fewer Hallucinations
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2025 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com
