background image

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

http://www.spincore.com

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 

http://www.spincore.com/support/spinapi

.

Содержание PulseBlasterESR-PRO-200-cPCI

Страница 1: ...PulseBlasterESR PRO 200 cPCI Owner s Manual SpinCore Technologies Inc http www spincore com...

Страница 2: ...r trademarks are the property of their respective owners SpinCore Technologies Inc makes every effort to verify the correct operation of the equipment This equipment version is not intended for use in...

Страница 3: ...7 External Inputs 7 Summary 8 Output Signals 8 Timing Characteristics 8 Instruction Set Program Flow 8 On Board Clock 8 Device Memory 8 External Input Specifications 8 III Installation 9 Installing t...

Страница 4: ...to PulseBlaster Devices 16 Connector Information 16 BNC Header Connectors 16 IDC Headers 17 HWTrig Reset Header 19 VI Related Products and Accessories 21 VI Contact Information 22 I Document Informat...

Страница 5: ...clock cycle The intelligence of the PulseBlasterESR PRO 200 cPCI comes from its proprietary PulseBlaster processor core Unlike general purpose processors the PulseBlaster processor core features a hig...

Страница 6: ...Voltage TTL LVTTL If the channel is on then the device will output 3 3 V unterminated and if the channel is off the device will output 0 0 V unterminated Each channel is capable of delivering up to 25...

Страница 7: ...Pulse Feature will need to be used The Short Pulse Feature allows pulse duration to be as short as one clock cycle 5 ns however at least five clock cycles are still required for the PulseBlaster proc...

Страница 8: ...will start running the program the PulseBlaster device must be programmed first If HW_Reset is activated then the device will be stopped The two separate lines combine the convenience of triggering e...

Страница 9: ...ed up to 8 levels deep Loops can be nested up to 8 levels deep 20 bit loop counters maximum of 1 048 576 repetitions Branch range includes the entire memory Latency after trigger WAIT state 8 clock cy...

Страница 10: ...lug the power cord back in turn on the computer and follow the installation prompts We recommend running example programs after you installed the PulseBlasterESR to verify that your device is function...

Страница 11: ...med with an arbitrary sequence of intervals Each interval can be of unique length and up to 4096 intervals can be accommodated per sequence Because each interval can be a pulse or a delay each interva...

Страница 12: ...tware suite is installed a shortcut to PulseBlaster Interpreter is automatically placed on the desktop More information on PulseBlaster Interpreter is available at http www spincore com support SPBI h...

Страница 13: ...ading files allowing work to be saved and or transferred to another computer Programming errors e g invalid OpCode are indicated to the user immediately reducing debugging time The latest version of t...

Страница 14: ...vice control is done by clicking large buttons at the top of the GUI The MATLAB GUI is compatible with programs from PulseBlaster NET MATLAB is required for using this GUI The latest version of MATLAB...

Страница 15: ...ing experience For users with LabVIEW and programming experience we ve provided basic sub VIs Virtual Instruments that add PulseBlaster interaction with your own LabVIEW programs allowing users to cre...

Страница 16: ...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...

Страница 17: ...lseBlaster s output via the BNC connectors place a resistor that matches the characteristic impedance of the transmission cable in parallel with the coaxial cable at the oscilloscope input e g a 50 re...

Страница 18: ...Each pin of an IDC header corresponds to a bit in the Output Pattern and Control field of an instruction Each bit corresponds to a channel The association between bits and pins are shown in the table...

Страница 19: ...er enters either a reset or idle state Waiting Driven high when the PulseBlaster device has encountered a WAIT OpCode Activating a trigger either hardware or software will resume operation http www sp...

Страница 20: ...gers are used To activate the external inputs the signal pin must be shorted to ground causing the transition Both of these signals are pulled high to 3 3 V via 10k resistors Ground pins are provided...

Страница 21: ...it must be inserted in the same orientation or board damage may occur The external clock signal must be a TTL square wave i e a digital signal of no more than 3 3 V This is the absolute maximum allow...

Страница 22: ...this product can be found in the Related Products and Accessories section NOTE The PulseBlasterESR cPCI requires a 3 3V TTL input signal A signal that is more than 3 3V or less than 0V will damage the...

Страница 23: ...rESR PRO II Alternate versions of the PulseBlaster that are capable of Higher Clock Frequencies currently up to 500 MHz For more information please visit the individual Product URLs of the aforementio...

Страница 24: ...SUITE 103 Gainesville FL 32653 USA Telephone 1 352 271 7383 Fax 1 352 371 8679 Website http www spincore com Contact Email http www spincore com contact shtml VII Document Information Detailed revisio...

Отзывы: