Forum
Please or Register to create posts and topics.

How to set transmitter Gain with JSON ?

How to set transmitter Gain with JSON ?

Here is an example using JSON data with curl

curl -X PUT -d '{
"request": 1,
"config": {
"type": "group",
"name": "Block_Spectran_V6B_0",
"items": [
{
"type": "group",
"name": "main",
"label": "Main",
"items": [
{
"type": "float",
"name": "transattn",
"value": -31.54
}
]
}
]
}

does the value keyword here represent gain?how can i set the rbw freq with JSON?

You can simply open http://localhost:54664/remoteconfig in your browser (or make a GET request using the language/tool of your choice) to see which settings are available for your current setup. For the transmitter gain this would result in

{"type":"float","name":"transattn","label":"Transmitter Gain","min":-100,"max":10,"step":0.01,"value":-20,"default":-20,"unit":"dB"},

The "label" variable is how the setting is called in the UI, the "value" variable is the value or index (in case of list settings) of the setting in the corresponding base unit  of whatever is specified as "unit" (e.g. Hz for frequency values, seconds for duration values, and so on).

Note that not all blocks+settings support the remote config feature.