http://www.spincore.com
PulseBlasterESR-PRO-II
V. Programming the PulseBlasterESR-PRO-II
The PulseBlasterESR-PRO-II board is easily programmed using C/C++ with the SpinAPI software. The
PulseBlasterESR-PRO-II is also programmable using any interface that lets you utilize a C API package such
as SpinAPI.
C/C++ Programming
The most dynamic and flexible way to program the PulseBlasterESR-PRO-II board is with C/C++ using
the SpinAPI package. Coding in C/C++ allows you to better utilize the interrupt aspects of the board, and
provides a dynamic and flexible method of programming. With the pre-configured compiler, changing one of
our example programs and recompiling the executable file for use with your PulseBlasterESR-PRO-II board is
as easy as clicking “Rebuild All” (see Figure 8 below). You can get this compiler on our website at
http://www.spincore.com/CD/Setup/SpinCore_SpinAPI_Tools_2007_07_11.exe
Making changes to an example program requires understanding of only a few lines of code. The most
important is the following line from example1_8bit.c or the line after that from example3_24bit.c found in your
SpinCore directory:
pb_inst_hs8("11111111",20.0*us);
or
pb_inst_hs24("111111111111111111111111",20.0*us);
Each of these lines of code provide a high pulse on all output bits that will move on to the next instruction
after 20 us. The first line is for the version of the board with 8 output channels, and the second line is for the
version with 24 output channels. For more information about the example programs and how to modify them
to fit your needs, please consult the appendix at the end of this manual.
2016/08/17
12
Figure 8:
Compiling a C program to run the PulseBlaster board is easy!