Hi,
I'd like to disable the automatic calculation of VBW and RBW made by dataminer and let the device handle the automatic values.
I can see in the documentation that for that we just need to set -1 on the following parameters :
64040 - SPA_PARAM_FACTOR_AUTO_VBW
64041 - SPA_PARAM_FACTOR_AUTO_RBW
I tried to do it in the protocol startup using a QAction and also with Client Test Tools but it seems that it is not having any effect. Right after i perform a set to -1 on one of those parameters I can see in the SLSpectrum.txt the following logging:
[821/506] New device value for Factor Auto VBW: VT_R8 : -1.000000But If I do a get parameter I still get the default value : 0.
Also it seems that these paremeters are not supported by cube, I added them to the protocol but they're not displayed in the spectrum module.
Please note that I'm setting the read parameters mentioned above and not the Write ones. Is this correct?
I believe that in order to have the device (or driver) manage auto VBW/RBW, you'll need to define the following parameters in the driver:
- SPA_PARAM_VBW 64012 (read; value -1 when auto)
- SPA_WPARAM_VBW 64112 (write)
- SPA_PARAM_AUTO_VBW 64019 (read) (real VBW value when VBW set to Auto/-1)
- SPA_PARAM_RBW 64014 (read; value -1 when auto)
- SPA_WPARAM_RBW 64114 (write)
- SPA_PARAM_AUTO_RBW 64020 (read) (real RBW value when RBW set to Auto/-1)
I don't believe there's a need to define the SPA_PARAM_FACTOR_* parameters, but I could be wrong.
Have you tried entirely dropping the SPA_PARAM_FACTOR_* parameters from the driver?
As for the logging “Calculated Auto RBW is 0, based on span 5000000 * factor 0.00 (was 0 without step/discreets applied)” => this would mean that the SPA_PARAM_FACTOR_AUTO_RBW (64040) has value 0 at that time.
You might check what SLSpectrum is receiving from the driver (“New device value for Factor Auto RBW = …”)
As follow up: this turned out to be a bug which is solved starting from 10.0 CU20 / 10.1 CU9 / 10.1.12 (RN31299)
I have all those parameters in the protocol.
Problem is: when I set RBW and VBW to auto in the spectrum UI there’s an automatic calculation happening before I get the 64118 trigger. I can see that in the SLSpectrum logging (example for RBW set to auto):
[821/506] [Administrator] Session Parameter: RBW -> VT_R8 : -1.000000
Calculated Auto RBW is 0, based on span 5000000 * factor 0.00 (was 0 without step/discreets applied)
As you can see the factor is ‘0’ therefore when we receive the 64118 = 1 trigger the value I have in the W parameter of the RBW is ‘0’ instead of ‘-1’.
I guess the factor is ‘0’ because that is the default value. And I’m not being able to set it to -1 to disable the automatic convertion that happens between a set in the UI and the 64118 = 1 trigger.
Any clue?