8.12 Hamlib -- Text display box - bandwidth display with WRXA and WRXB
A late modification was to replace the lowermost slider in the middle section by a text display box.
The box has four text data items, each with a caption in black and data text in a user defined colour.
The four text items appear in the sliders / slidersciv /slidershl tables with slidernos: 51 to 54.
Each item is essentially a slider caption and a slider text data display without the slider in between them.
The caption is defined by slider.caption The slider.color field is used for the data text colour.
The mult, divide, offset, units, lookup and decpoint fields act on the data display exactly as for sliders.
min and max are unused. ( They are used by sliders to match slider travel to min and max data range limits.)
In this example, the RIT and XIT items, 52 and 54 are synchronised to the data values in the rig. The BW items, 51 and 53 here are using a special Hamlib feature. This is related to the fact that the necessary repetitive Hamlib mode readings also automatically return bandwidth. |
This example is from my FTdx101-H Hamlib configuration (ie: connecting using the Hamlib rigctld daemon.)
The CAT data configuration is the same as for a slider (except min and max unused)
So please refer to the configuration information for table slidershl.
The above table is split into left and right parts. The unused setmask and answermask fields are not shown.
(Note that answermask would be used with \send_cmd_rx for a CAT command that is not supported by Hamlib)
The BW main and BW sub above are a special Hamlib feature, see below.
The RIT and XIT items represent the usual configuration of these text data items for all other level data.
RIT and XIT offset
The CAT data field here is readmask which with Hamlib rigctld is: \get_rit Main. (See: rigctl documentation )
The offset frequency data is returned as a numeric with range -9990 to +9990.
This needs no scaling and so mult = 1 and divide = 1.
(For AF gain with range 0.000 to 1.000 we might set mult = 100 to scale the displayed value to 0 - 100)
Above, I have used code=RITO and code=XITO. I could have used any code of my choice.
code and vx are sent to the client. code and abx are used on the server. They form the client - server link.
(See: README - vx and abx )
active = T
For a text data item, we set active = T as in the above table.
This has the same effect as setting active = S (sync) for a slider.
This is essential so that the text item is repetitively updated with other controls with active = S or T.