Hardware Developers Community - NI sbRIO & SOM

cancel
Showing results for 
Search instead for 
Did you mean: 

FPGA DMA for NI sbRIO

Hi,

I would like to ask a question about FPGA DMA on NI sbRIO using LabVIEW. I want to produce square wave from DIO pins. Then using fifo.write method to send Host.vi and show it on Waveform Graph. How can I send square wave to fpga dio pin? (How can I make it with boolean variables True and False and write them continuously to array.)

Another question: I need to connect fpga dio pin from external square wave. These questions are similar but first one is internal signal other one is external signal.

How can I do them?

Thanks in advance.

0 Kudos
Message 1 of 2
(3,390 Views)

Edwarde,

Output for a square wave can be done entirely in the FPGA, there is no need for DMA from the RT.

The frequency of the waveform can be controlled by the time delay of the FPGA loop. If you wanted to change the frequency of the waveform, then you would need to do this from the RT.

Here is what the FPGA code would look like, the "Count(uSec)" sets the timing of the wfm.

FPGA Digital Waveform.png

0 Kudos
Message 2 of 2
(3,025 Views)