ΣSigmaStudio Ask AI Русский Log in

how to properly set the settings in real time display graph

SigmaDSP & SigmaStudio sss36 Aug 12, 2013 00:00 4 replies Original on forum ↗
Thread Summary

Thread Summary

The user is experiencing issues with a real-time display graph showing spikes instead of a 500 Hz sine wave. The final answer suggests using a physical oscilloscope or a sound editor like Audacity to view high-frequency waveforms, as the real-time display is limited to a few tens of Hz. An equivalent-time sampling technique at 498 Hz can also be used to visualize the 500 Hz sine wave. For saving the signal to a PC, optical S/PDIF is recommended as the simplest method, or the analog output can be used if additional DAC and ADC in the signal chain are acceptable.
AI Generated Content
Subscribe
sss36 Question
Aug 12, 2013 00:00

Hi,

I am using real time display graph to plot sine tone freq=500hz. but I am not getting the correct output in real time display graph? I am getting spikes instead of sine wave. I just want to know what are the proper setting for realtimedisplay block. The pic of project is attached

Thanks

b5dbdb4d790922fdc2c0b7d330ac8498.jpg
b5dbdb4d790922fdc2c0b7d330ac8498.jpg
b5dbdb4d790922fdc2c0b7d330ac8498.jpg-450x253.jpg
b5dbdb4d790922fdc2c0b7d330ac8498.jpg-450x253.jpg
ADIApproved Reply
Aug 12, 2013 00:00

Hi sss36,

The display of the real time display is limited by the read/write bandwidth on the USB-to-I2C/SPI port. This makes it unsuitable for displaying signals of a frequency higher than a few 10s of Hz.

Using SPI will get you a few more data points than I2C because the data rate is higher, but it is still not suitable for high frequency signals.

The real time display was meant for monitoring slowly changing signals, such as signal envelopes (to see if they cross a threshold) or DC logic levels used in a decision-making part of the signal flow.

KJBob Reply
Aug 13, 2013 00:00

Hello sss36,

There's a few ways to see a waveform that's too fast for the Real-Time Display (which as Brett notes, is great for following envelopes and compressor side-chains, but not suitable for audio frequency waveforms):

Connect a spare DAC to the desired measuring point and use a physical oscilloscope to view the result.

If a scope is not handy, use a sound editor (like Audacity) to record and view the waveform, like this:

For truly repetitive waveforms you could try an equivalent-time technique, where you re-sample your test waveform at a rate just under the test waveform's frequency. Below, a 500 Hz sine wave is sampled at 498 Hz to draw a 2 Hz version of the original on the Real-Time Display:

Best regards,

Bob

4a88cc3885fa3837be8977fd41b7ce5e.jpg
4a88cc3885fa3837be8977fd41b7ce5e.jpg
4a88cc3885fa3837be8977fd41b7ce5e.jpg-230x130.jpg
4a88cc3885fa3837be8977fd41b7ce5e.jpg-230x130.jpg
77033c62e05622c77212eb4c05e22aa0.jpg
77033c62e05622c77212eb4c05e22aa0.jpg
77033c62e05622c77212eb4c05e22aa0.jpg-564x211.jpg
77033c62e05622c77212eb4c05e22aa0.jpg-564x211.jpg
sss36 Reply
Aug 13, 2013 00:00

Thanks Bob and Brett,

For my paper, I want to plot the signal at one Mic only. For the timing I will try using Oscilloscope to capture result in excel sheet.

Ideally I want to save the wav file from ADAU1446 evaluation board to PC. The evaluation board have lot of different options like SPDIF, Optical and I2S. But which option is cheap and best?

Thanks

ADIApproved Reply
Aug 13, 2013 00:00

The simplest way to do it is optical S/PDIF, assuming you have a sound card that can support it. That way, you'll get a direct representation of the audio signal recorded on your computer.

You can also take the direct analog output from the board into the computer, but that of course has the problem of adding an additional DAC and ADC to the signal chain, which means that you're not truly getting the same signal as what's in the DSP.

However, depending on the level of detail you need in this application, the analog approach might be good enough!