详细阐述了改进的SCPI命令解析器的设计,该设计主要采用链表算法,同时结合二维数组存储解析执行函数的标号来共同实现,增强了解析器的可读性和扩展性。在此基础之上,将此改进的解析器应用于IGBT可靠性测试系统。制定符合该系统特征的程控命令,并通过以太网总线传输至系统,系统对其进行解析处理从而完成命令对系统的控制。经过实践证明,该应用具有可行性。
This paper elaborates the design of improved SCPI parser which is achieved by using the linked list algorithm com- bine with a two-dimensional array that stored function labels. This method makes the parser easier to understand and more extensi- ble. Based on the research above, improved parser was applied to IGBT reliability test system. In this system, suitable SCPI commands were designed and transferred via Ethernet bus. After receiving the commands, the system does the command parsing func- tion. Since this process, test system is controlled successfully by SCPI. The result of practice indicates that this application is viable.