From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Displaying audio data sampled in FPGA in graph

Solved!
Go to solution

Hi, I need to display the audio data sampled at approximately 44100 Hz for 20 seconds into graph, that means there will be about 865k data points to be displayed on graph. I obtain my audio analog input from FPGA.

 

Is there any suggestion on how to do that?

0 Kudos
Message 1 of 8
(2,959 Views)

Hi Elena,

 

suggestion: stream your data from FPGA to RT. Then stream from RT to PC host and display the data there…

 

(labVIEW comes with example projects ecplaining how to do exactly this suggestion.)

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 8
(2,955 Views)

Hi,

Is the streaming method you meant the one related to DMA? The maximum number of data points that can be written into the graph is 16384 which is not enough for the 20 seconds sampled audio data. Or do you mean another method of streaming?

 

Thank you.

0 Kudos
Message 3 of 8
(2,898 Views)
Solution
Accepted by topic author ElenaW

Hi Elena,

 

Is the streaming method you meant the one related to DMA?

Streaming data from FPGA to RT host uses the "DMA FIFO", so yes.

 

The maximum number of data points that can be written into the graph is 16384

A graph usually takes more data, but DMA FIFOs are limited in buffer size.

The point is: you need to read the FIFO regularly on the RT host to avoid buffer overruns!

 

Or do you mean another method of streaming?

To stream data from RT to PC host you could use "network streams"…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 4 of 8
(2,895 Views)

Hi,

Is it necessary to stream the data to pc for display? Can I display it on RT?

 

Thank you.

0 Kudos
Message 5 of 8
(2,893 Views)

Hi Elena,

 

Can I display it on RT?

Usually RT targets work "headless" without a display attached, but some RT targets by NI do have a monitor output.

As long as you don't tell us which hardware you are using I will recommend the "usual/common sense" stuff…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 6 of 8
(2,888 Views)

I am using myRIO 1900.

0 Kudos
Message 7 of 8
(2,878 Views)

Hi Elena,

 

the myRIO doesn't provide any display connector (like VGA, HDMI, DP, …) so it is a "headless" device.

You need to stream data to your PC to be able to display them!

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 8 of 8
(2,874 Views)