Pulse CompilerI wrote a compiler that converts timing information specified in this language into commands that can be downloaded to a pulse generator. Although the compiler is designed for a specific pulse generator (the ADwin Gold), it would be relatively straightforward to adapt the compiler to other similar devices.
Files
Command syntaxThe syntax for the language is as follows:
<cmd> --> p<name> : <cmd>
--> invert <digital channel>
--> define t<name> <time>
--> define c<name> <int>
--> define a<name> <int>
--> begin_comment <cmds> end_comment
--> [<time>, <time>] <digital channel>
--> <time> aout <analog channel> > <float>
--> <time> inline ' <string> '
--> <time> loop <int> { <cmds> }
<time> --> <time> + <time>
--> <time> - <time>
--> ( <time> )
--> start( p<name> )
--> stop( p<name> )
--> t<name>
--> <float>
<digial channel> --> c<name>
--> <int>
<analog channel> --> a<name>
--> <int>
|