PulseBlasterESR-PRO-200-cPCI
C/C++ Programming
Programming PulseBlaster devices using C/C++ is easier than ever. SpinCore Technologies offers a pre-
configured C/C++ compiler, and the SpinAPI library provides functions for programming PulseBlaster devices.
Programming using C/C++ allows the user to fully utilize the device, including the use of interrupt features.
Additionally, repetitive instructions may be easier to program using C/C++ because you can copy and paste lines
of code, which may be faster than performing many instructions using a GUI.
SpinCore Technologies provides many example programs that demonstrate features of PulseBlaster devices.
Example programs are available by going to “
Start>Programs>SpinCore>SpinAPI
.” Inside this folder, open the
folder for your device (e.g., PBESR-PRO for PulseBlasterESR-PRO devices). To run an example program,
double-click on the executable file (*.exe). A PulseBlaster device must be installed for the program to run
properly.
An easy method of creating programs using C/C++ is to modify an existing example program, and recompile.
To recompile, select the “Rebuild All” button (see the figure below). The pre-configured compiler will create an
executable file that will handle device programming, and will start the pulse program. Double click on the
executable file (*.exe) to run the program.
Download information and installation instructions are available at our website at:
http://www.spincore.com/support/spinapi/
. A description of SpinAPI and the included C functions can be found at:
http://www.spincore.com/support/spinapi/using_spin_api_pb.shtml
16
2017/01/24
Figure 6:
Compiling a C program to run PulseBlaster devices is easy! Programs can be made
quickly by using the available pre-configured compiler and the supplied example programs. Open an
example program with the supplied compiler, modify to your needs, then click “Rebuild All.” The
compiler will create an executable file that will handle device programming, and starting your
program. The compiler is available at