Method for defining, analyzing, executing and testing SCPI (standard commands for programmable instruments)
The invention discloses a method for defining, analyzing, executing and testing the SCPI (standard commands for programmable instruments). The method comprises the following steps: S1, designing the definition rule of the SCPI; S2, preprocessing a rule file; S3, dynamically establishing sorted comma...
Gespeichert in:
Hauptverfasser: | , , |
---|---|
Format: | Patent |
Sprache: | eng |
Schlagworte: | |
Online-Zugang: | Volltext bestellen |
Tags: |
Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
|
Zusammenfassung: | The invention discloses a method for defining, analyzing, executing and testing the SCPI (standard commands for programmable instruments). The method comprises the following steps: S1, designing the definition rule of the SCPI; S2, preprocessing a rule file; S3, dynamically establishing sorted command trees in internal storage according to an SCPI array; S4, analyzing the command input by a user into command code recognizable internally, executing the predefined command function according to the command code, and providing the error code and the error message meeting the SCPI specification; S5, resolving the command defined by the rule file into corresponding forms, and analyzing each form including establishing the SCPI array and command trees, analyzing and executing. According to the invention, the operation is simple, a complete solution of generating the SCPI command in a one-button manner is realized, the general switching software design flow of an instrument is simplified, and the development efficiency of instrument software is improved. |
---|