08-19-2020 02:51 PM - edited 08-19-2020 02:53 PM
Solved! Go to Solution.
08-19-2020 06:46 PM - edited 08-19-2020 06:47 PM
The issue has been resolved. I created a separate while loop with a wait node set to the acquisition time.
08-19-2020 07:02 PM - edited 08-19-2020 07:14 PM
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?
08-20-2020 01:00 AM - edited 08-20-2020 01:04 AM
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:
(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"…