A Method Based on Interpreter for Cyclic Voltage Waveform Generation
In order to meet the demand of generating cyclic voltage waveform as an excitation signal acting on the electrode in electrochemical experiment, a kind of new method of software design based on interpreter is proposed. In this method, the host computer uses the inner DSL to abstract the control instructions of the electrochemical experiment into interpreter source code, and the slave computer adopts hardware timer to interrupt main procedure, and then trigger regularly the interpreter to read, parse and execute the interpreter source transmitted by the host computer, which generates the cyclic voltage waveform. The waveform generation method based on interpreter realizes cyclic voltage waveform much easier. It replaces the traditional waveform generator, makes the operating much simpler and reduces the cost of the system. Electrochemical experiments test results show that the design can complete the generation of the cyclic voltage waveform of more than 30 electrochemical methods.