background image

SpinCore PulseBlasterDDSII 

LabVIEW Extensions

Example VIs

PBLV_DDSII_freq_test.vi

This PBLV-DDS-II Frequency Example VI outputs a sine wave with DDS0, cycling 

through 4 different frequencies which are set in the frequency registers. It also outputs a 
sine wave with DDS1, cycling through the same 4 frequencies but in reverse order.

To start the VI press the Run button at the top of the LabVIEW window (for stand-

alone programs, the program is run automatically when opened).  First you must insert the 
clock frequency value of the board into the “clock_freq (MHz)” field as well as the path to 
spinapi.dll as described above.  Next, the appropriate frequency, phase, and amplitude 
registers must be set.  Both DDS cores initially have these values for their registers: 
frequency registers 0, 1, 2, and 3 are set to 1, 5, 10 and 15 MHz respectively, phase 
register 0 is set to 0 degrees, and amplitude register 0 is set to 1. Then the instructions 
must be set up appropriately.  This VI programs the PBDDS-II board with 6 instructions. 
The first instruction resets the phase and the RF output is disabled for both DDS cores. 
The next four instructions enable output for 2 μs and frequency register 0, 1, 2, and 3 
respectively for DDS0 and frequency register 3, 2, 1, and 0 respectively for DDS1.  All 
instructions use phase register 0 and amplitude register 0.  The last instruction disables the 
output for 1 ms to allow for oscilloscope triggering.  You may change these instructions, 
and registers as desired.  

When the instructions and registers are set up correctly, you must first load the 

board by clicking the “LOAD BOARD” button and then wait until the button becomes 
inactive.  To start the program click on the “START” button, and to stop the program click 
on the “STOP” button.  If there are multiple boards connected to your computer, the 
“CHANGE BOARD” button will change the board that is being programmed to the one 
specified by the “board_num” field. All four functions are independent and may be run at 
any time, however an instruction sequence must be loaded into the board before it can be 
started.  

Caution

:  After pressing STOP, all digital output bits may maintain their final state. 

The RF output will return to 0V when the stop button is pressed.  

See Figure 9 for a screen shot of the PBLV-DDSII Frequency Test. 

16

2011-04-29

www.spincore.com

Summary of Contents for PBLV-DDS-II

Page 1: ...SpinCore PulseBlasterDDS II LabVIEW Extensions User s Manual SpinCore Technologies Inc http www spincore com...

Page 2: ...pinCore Technologies Inc reserves the right to make changes to the product s or information herein without notice RadioProcessor PulseBlaster SpinCore and the SpinCore Technologies Inc logos are trade...

Page 3: ...s 11 Path Terminals 13 Error Terminals 14 LabVIEW Program Flow 14 IV VI descriptions 15 Main VI 15 PBLV_DDSII_Interface vi 15 Example VIs 16 PBLV_DDSII_freq_test vi 16 PBLV_DDSII_phase_test vi 18 PBLV...

Page 4: ...nCore PulseBlasterDDSII LabVIEW Extensions pb_set_amp vi 24 pb_inst_dds2 vi 24 pb_stop_programming vi 24 pb_close vi 24 pb_start vi 25 pb_stop vi 25 V Contact Information 26 4 2011 04 29 www spincore...

Page 5: ...he GUI known as the front panel has all the inputs needed to access the PulseBlaster including instruction registers clock frequency and buttons for loading starting and stopping the board The input i...

Page 6: ...SpinCore PulseBlasterDDSII LabVIEW Extensions 6 2011 04 29 Figure 1 Example of PulseBlasterDDS II LabVIEW Extensions User Interface www spincore com...

Page 7: ...SpinCore PulseBlasterDDSII LabVIEW Extensions 7 2011 04 29 Figure 2 Example of PulseBlaster DDS II LabVIEW Extensions Block Diagram www spincore com...

Page 8: ...td exe Note if you have LabVIEW 2010 or later installed this is not needed LabVIEW PulseBlaster Extensions Stand Alone executables located here Method 2 Customizable VIs In order for PBLV DDS II custo...

Page 9: ...an LED is on then it s corresponding output bit is high and if the LED is off then it s corresponding output bit is low This corresponds to flags in SpinAPI DDS0 RF Output Enable tells the DDS II boa...

Page 10: ...e used for the RF output of DDS1 during this instruction Refer to your board manual for the number of amplitude registers available This corresponds to amp1 in SpinAPI Program Flow determines the flow...

Page 11: ...s available The specific frequency registers must be set in the register bank in order to be used in an instruction as described above If the register box is white then it will be programmed to the bo...

Page 12: ...egisters in Figure 5 Similarly the DDS1 Phase Register Selects instruction corresponds to the phase registers under the heading DDS1 Registers Amplitudes are specified as a percentage of full power an...

Page 13: ...s may be changed depending on the installation All subVIs should have the path in connected For ease of programming the path terminals can be daisy chained since all subVIs point to the same dll See F...

Page 14: ...of the subVIs corresponds to the order in which the functions will be called LabVIEW Program Flow The LabVIEW Block diagram is set up to independently control the four major functions start restart s...

Page 15: ...equency phase and amplitude registers for each DDS core to the values you want When the instructions and registers are set up correctly you must first load the board by clicking the LOAD BOARD button...

Page 16: ...d the RF output is disabled for both DDS cores The next four instructions enable output for 2 s and frequency register 0 1 2 and 3 respectively for DDS0 and frequency register 3 2 1 and 0 respectively...

Page 17: ...SpinCore PulseBlasterDDSII LabVIEW Extensions 17 2011 04 29 www spincore com...

Page 18: ...SpinCore PulseBlasterDDSII LabVIEW Extensions 18 2011 04 29 Figure 9 LabVIEW PulseBlasterDDSII Extension Frequency Test www spincore com...

Page 19: ...is disabled for both DDS cores The next four instructions enable output for 2 s and use phase register 0 1 2 and 3 respectively for DDS0 and phase register 3 2 1 and 0 respectively for DDS1 All instr...

Page 20: ...SpinCore PulseBlasterDDSII LabVIEW Extensions 20 2011 04 29 www spincore com...

Page 21: ...SpinCore PulseBlasterDDSII LabVIEW Extensions 21 2011 04 29 Figure 10 LabVIEW PulseBlasterDDSII Extension Phase Test www spincore com...

Page 22: ...board with 6 instructions The first instruction resets the phase and the RF output is disabled for both DDS cores The next four instructions enable output for 2 s and use amplitude register 0 1 2 and...

Page 23: ...SpinCore PulseBlasterDDSII LabVIEW Extensions 23 2011 04 29 www spincore com...

Page 24: ...SpinCore PulseBlasterDDSII LabVIEW Extensions 24 2011 04 29 Figure 11 LabVIEW PulseBlasterDDSII Extension Amplitude Test www spincore com...

Page 25: ...y Function Node It then checks for an error using the pb_error_handler If there was an error at this stage the VI determines if the board was not previously closed if so the VI clears the error closes...

Page 26: ...nctionality will be bypassed if an error is passed into the VI pb_set_freq vi Corresponds to the SpinAPI function int pb_set_freq double freq This VI will write the given frequency in MHz to a frequen...

Page 27: ...to the board The instruction contains the 4 bit frequency register for both DDS cores 4 bit phase register for both DDS cores 1 bit tx_enable for both DDS cores 1 bit phase reset for both DDS cores 9...

Page 28: ...ction Node It then checks for an error using the pb_error_handler All functionality will be bypassed if an error is passed into the VI pb_stop vi Corresponds to the SpinAPI function int pb_stop This V...

Page 29: ...tact Information SpinCore Technologies Inc 4631 NW 53rd Avenue SUITE 103 Gainesville FL 32653 USA Telephone USA 352 271 7383 Fax USA 352 371 8679 Website http www spincore com Web Form http www spinco...

Reviews: