SpinCore Logo

Using the spinapi to control SpinCore Technologies, Inc. products

   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..

Linux Compilation

Spinapi can be used with Linux on x86 processors. To get your programs running on Linux:
1. Download the SpinAPI archive for Linux from http://www.spincore.com/CD/Setup/linux/SpinAPI_linux.tar and extract it under your home directory.

2. In the spinapi_source/ directory, type "make". You may need superuser privilege to do make. This will create a file called libspinapi.a which you can link your programs against to use SpinCore hardware.
Make sure if the spinapi.h is copied under /usr/include/ to compile correctly.

3. To compile your program, you must link with both the spinapi and math libraries. For example, when compiling the "pb24_ex1.c" example program, you would use a command like (assuming both libspinapi.a and pb24_ex1.c are in the current directory):

$ gcc -opb24_ex1 pb24_ex1.c -L. -lspinapi -lm

This will create an executable called "pb24_ex1".

4. When running programs, you MUST have superuser privilege (ie be running as root). This is because the spinapi library needs to be able to gain access to the low-level hardware resources.


5. Note that although the file include usb.c which is designated to be used for usb products, it may not work properly on some Linux machine. USB version of linux api will be provided later.

Last edited 11/12/2008
Contact Info

SpinCore Technologies, Inc. 
4623 NW 53rd Avenue, SUITE 5 
Gainesville, FL 32653 
USA 

Phone:    (USA) 352-271-7383 
Fax:      (USA) 352-371-8679 
E-mail:   sales@spincore.com
Internet: http://www.spincore.com