QA403 REST API and attenuator setting

Hello,

I am trying to follow the guide at wiki/QA40x-API and want to change the attenuator setting.

But if the analyzer is running it does not change, is this by design.

How do I Stop and Run the analyzer with REST?

BR, Frank

Hi @Westerdahl, with REST you start and acquisition, and the HTTP call will block and not return until the acquisition is finished. See ``POST /Acquisition```

While the acquisition is running, you don’t want to change levels. You want to set the level you want, set the FFT size you want and once you have all your parameters set, you do the ``POST /Acquisition```

If your FFT size is 128k and your sample rate is 48k, then the call will block for about 128k/48k=about 3 seconds.