SpinCore PulseBlasterDDSII
LabVIEW Extensions
pb_select_dds.vi
Corresponds to the SpinAPI function int pb_select_dds (int dds_num)
This VI selects which DDS core will get the register values assigned from the following
functions. Once called, the pb_set_freq.vi, pb_set_phase.vi, and pb_set_amp.vi functions
are used to assign register values to whichever DDS core number that was passed into the
function. The function must be called again to change the DDS core that is to receive
register values. All functionality will be bypassed if an error is passed into the VI.
pb_start_programming.vi
Corresponds to the SpinAPI function int pb_start_programming(int device)
This VI initializes the system to receive programming information. It calls the
pb_start_programming function from SpinAPI using the Call Library Function Node. The
Device Enum Control sets the device input of the pb_start_programming function. 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_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 frequency register on a DDS enabled
board. and then check for errors. To do this, first call pb_start_programming.vi, and pass it
"Frequency Registers". The first call pb_set_freq.vi will then program frequency register 0,
the second call will program frequency register 1, etc. When you have programmed all the
registers you intend to, call pb_stop_programming.vi. All functionality will be bypassed if
an error is passed into the VI.
pb_set_phase.vi
Corresponds to the SpinAPI function int pb_set_phase(double phase)
This VI will write the given phase to a phase register on DDS enabled boards and then
check for errors. To do this, first call pb_start_programming.vi, and specify the appropriate
bank of phase registers (TX Phase Registers or RX Phase Registers) as the argument.
The first call pb_set_phase.vi will then program phase register 0, the second call will
program phase register 1, etc. When you have programmed all the registers you intend to,
26
2011-04-29
www.spincore.com