Forum
Please or Register to create posts and topics.

How to record Average values samples only

Hi, I'd like to ask if there's a way of getting data from de Spectrum block (I need the average values of the data), instead of getting the data from the IQ power spectrum block. I've tried to get it though the "/sample" endpoint, it gives data with the IQ Power spectrum block connected to the HTTP Server, but it returns "null" when using the Spectrum block.

 

First configuration (IQ to HTTP server), it gives data with the "http://localhost:54664/sample"

Second configuration (Spectrum to HTTP server), it gives "null" with "http://localhost:54664/sample"

The traces in the Spectrum block cannot be accessed outside the Spectrum block at this time (you can change their settings, but not access their data).

What you can do is (in the "Main"config section) to adjust the "Time Compression" and "Compression Mode" settings. Those factors are however applied to the data  at the blocks input, before any traces are generated and cannot be reverted by later blocks. So if you need both "live" and "average" data forwarded to the HTTP block you'll need a more complex setup.

Also you probably need to change the "Output Range" setting from "Cursor" to "View", else only the area selected by the cursor is forwarded to the output (or nothing if you haven't selected anything). Note that with "View" only the currently visible spectrum is forwarded, e.g. when you're zoomed in.

Alternatively you could connect a Script block between the IQ Power Spectrum and HTTP Server to process the data, but that will require a bit of programming.

Adri8 has reacted to this post.
Adri8

This might be what you are looking for: https://v6-forum.aaronia.de/forum/topic/how-to-export-the-average-traces-from-spectrum-to-script-block/

Adri8 has reacted to this post.
Adri8