LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Why are there gaps in my waveform graph after peer-to-peer streaming?

Solved!
Go to solution
I am generating an arbitrary waveform with the PXI-5412 Arbitrary Waveform Generator and reading them with a PXIe-5122 Oscilloscope. I am then streaming the waveform to a PXIe-7846R FPGA module with Peer-to-Peer Streaming and sending the waveform back to the Host through a DMA FIFO. However, when I graph it, there seem to be gaps in the waveform. Any idea what would cause this? I have attached a screenshot of one graph when reading directly from the waveform generator, and one when passing the waveform to and back from the FPGA where the gaps appear.
0 Kudos
Message 1 of 4
(530 Views)
Solution
Accepted by topic author Trekkie123

The issue has been resolved. I created a separate while loop with a wait node set to the acquisition time.

0 Kudos
Message 2 of 4
(474 Views)

I am generating an arbitrary waveform with the PXI-5412 Arbitrary Waveform Generator and reading them with a PXIe-5122 Oscilloscope. I am then streaming the waveform to a PXIe-7846R FPGA module with Peer-to-Peer Streaming and sending the waveform back to the Host through a DMA FIFO. However, for some reason, after going through the FPGA, it takes about 39,000,000 elements to create the entire waveform whereas the waveform when graphing directly from the oscilloscope is 1,048,576 (the correct amount). Does anyone know what is causing this?

0 Kudos
Message 3 of 4
(497 Views)

Hi Trekkie,

 


@Trekkie123 wrote:

However, for some reason, after going through the FPGA, it takes about 39,000,000 elements to create the entire waveform whereas the waveform when graphing directly from the oscilloscope is 1,048,576 (the correct amount). Does anyone know what is causing this?


See your own FPGA VI:

 

GerdW_0-1597903388639.png(Btw. using AutoCleanup could help here.)

 

The FPGA is set to read the P2P FIFO as fast as possible (in a SCTL running at 40MHz) without any timeout.

So even when the FIFO is empty it will read a value - most probably the default value "0"…

Best regards,
GerdW


using LV2020 on Win8.1+cRIO
0 Kudos
Message 4 of 4
(437 Views)