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