LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to make spectrogram?

I'm trying to create a time domain spectrogram from a real-time frequency response spectrum. Is there any way to do this in LV 6.0.1?
0 Kudos
Message 1 of 6
(4,564 Views)
Try:
Functions -> Analyze -> Signal Processing -> Frecuency Domain -> STFT Espectrogram.vi
0 Kudos
Message 2 of 6
(4,552 Views)
Thanks for pointing me to the right place. Now I have a new problem. I'm trying to read data from a sound card using SI Read.vi, but my program just locks up and gives me a 10846 error. The error description is:

NI-DAQ LV: Your application was unable to retrieve data from the background acquisition buffer fast enough so the unretrieved data was overwritten with new data. To prevent this error, you might increase the size of the background acquisition buffer, increase the amount of data you read from it per call to the read function/VI, slow down your acquisition rate, or reduce the number of tasks your computer is performing.

How do I increase the buffer size or slow down the acquisition rate?
0 Kudos
Message 3 of 6
(4,541 Views)
Hello Bpl,

It sounds like you are doing a lot of processing with the acquired data and not emptying the data buffer fast enough. There are a few things that I could suggest, but I would like to have more details about your program. What is the SI Read.vi? which version of NI-DAQ are you using? Could you send a screen shot of that part of your block diagram?
0 Kudos
Message 4 of 6
(4,525 Views)
SI read allows for audio data input to the program from the sound card. I'm not sure what version of NI-DAQ I'm using. As for the screenshots, I've uploaded them here and here. I downloaded an audio I/O schematic and modified it.
0 Kudos
Message 5 of 6
(4,514 Views)
Hi BPL,

In your block diagram, you are using the SI Config VI. This VI has two inputs: Sound format & Buffer size. The Sound format cluster has the following 3 elements: Sound Quality, Rate, and bits per sample. Reducing any of these will reduce the size of data coming in. Specifically, lowering the rate will acquire less samples per second and will hopefully allow you to read out the data fast enough to where the buffer does not overflow.

Hopefully this helps,
Travis H.
LabVIEW R&D
National Instruments
0 Kudos
Message 6 of 6
(4,490 Views)