Using the NI-5640R Asynchronous Programming Palette
- Updated2025-04-22
- 3 minute(s) read
- Double-click the My Simple Spectrum Analyzer(FPGA).vi to open the VI and then open the block diagram.
- Scroll down the block diagram to the area labeled "ADD YOUR CODE HERE."
-
Place the ADC node on the block diagram in this area.
The ADC node is located on the Functions palette under .
- Create a While Loop below the ADC node. The While Loop is located on the Functions palette under .
- Wire a FALSE constant to the Loop Condition terminal.
-
Open the front panel of the My Simple Spectrum Analyzer (FPGA) VI and create a Boolean Push Button control.
This control is located on the Controls palette under Boolean.
- Rename the control as Acquire.
-
Create a Boolean LED indicator.
This indicator is located on the Controls palette under Boolean.
- Rename the indicator as Input Overflow.
-
On the LabVIEW block diagram, drag the
Acquire control and the
Input Overflow indicator into the While Loop.
Your block diagram should now look like the following figure.
Figure 12. My Simple Spectrum Analyzer (FPGA) VI Block Diagram 
-
Place a Write Accessor node in the While Loop to the right of the
Acquire control.
The Write Accessor node is located on the Functions palette under NI-5640R Asynchronous Programming.
- Wire the Acquire control to the Write Accessor node.
- Wire the Write Accessor node to the start trigger parameter on the ADC node.
-
Place a Read Accessor node inside the While Loop to the left of the
overflow indicator on the ADC node.
The Read Accessor node is located on the Functions palette under NI-5640R Asynchronous Programming.
- Wire the overflow indicator on the ADC node to the Read Accessor node.
- Wire the Read Accessor node to the Input Overflow indicator.
-
Place a DMA to Host node outside the While Loop to the right of the ADC node.
The DMA to Host node is located on the Functions palette under NI-5640R Asynchronous Programming.
-
Click the DMA FIFO glyph on the DMA to Host node to launch the
Configure Target to Host
dialog box and make the changes shown in the following figure.
Figure 13. Configure Target to Host DMA Dialog Box 
- Wire the ADC I/Q Data terminal to the data in parameter of the DMA to Host node.
- Enable the clock domain terminal of the DMA to Host node by right-clicking the node and selecting Add Clock Domain Terminal.
-
Wire the
I/Q Clk terminal to the
clock domain parameter of the DMA to Host node.
Your block diagram should now look like the following figure.
Figure 14. Completed FPGA VI Block Diagram Using NI-5640R Asynchronous Programming Palette 
- Save the VI and the project.