![]() |
Contact Us
Software Downloads |
![]() |
![]() |
| |
Help For Compiling On Windows This document describes how to
interface with
the SpinAPI control library, which is used to control
all SpinCore
products, including PulseBlaster, PulseBlasterDDS,
PulseBlasterESR,
PulseBlasterESR-PRO, and RadioProcessor. Windows Compilation The SpinAPI control library is a standard windows .dll which can be accessed from a wide variety of programming environments, such as C/C++ programs, LabView, etc. Accessing SpinAPI
From a
C/C++ Program: This section describes the basic steps
needed to
get your C/C++ program to work with SpinAPI.
Virtually any C/C++
compiler/programming environment is compatible, feel
free to use your
favorite. If you do not currently have a C/C++
compiler, there
are several high quality compilers available for free
download on the
internet, see below for some recommendations. Four files are necessary to be able to control
your
board using this approach:
The most straightforward way to compile a program
using
SpinAPI is to create a new, empty directory and copy
each of the four
required files listed above into it. Look in the dll/
directory to find
spinapi.h, spinapi.dll, and the import library. An
example C program
can be found the the appropriate product subdirectory.
Then open the C
file, configure your compiler to link with the import
library, and
start the compile. It is recommended that you compile
one of the
unchanged example programs first, to ensure your
compiler is set up
correctly. Once the example is compiled correctly, you
can move on to
creating custom programs. Below are detailed instructions for specific
compilers on how
to configure them to use SpinAPI. The procedure for
other compilers
should be similar. These instructions assume you have
copied the four
required files into their own directory as described
above. Microsoft Visual
Studio 6:
Free C/C++
Compilers: NOTE: Please make sure that only one version of MinGW is installed at a time. If multiple versions are installed, Dev-C++ will be unable to compile.
Virtually all programming
environments
provide some mechanism for accessing an API provided
by a Windows .dll.
Please consult the help files of your environment if
you are unsure of
how to do this.
|
Home | Products | Design Services | Applications | Contact Us | Purchasing Info | About Us | Software Downloads
© 2012 SpinCore Technologies, Inc.