/** \page rig_xml_page Rig Xml How to \tableofcontents This document describes the contents of the rig definition file \"rig.xml\".
A number of transceivers have rig definition files written and tested which you may use. These are found in the xmls directory on this site: xml archives. You will find subdirectories by manufacturer which contain files named by rig type, ie: TS-850.xml. If you create, test and verify the proper operation for a transceiver not yet posted please share that with others by sending it as an attachment to feedback [at] w1hkj [dot] com and I will post it on the web site. You are encouraged to study the various rig definition files to learn more about how they are organized. Comments are contained within the tag pair:
\
 0,0; 255,100 



  0,0; 16,1; 32,4; 48,7;
  64,12; 80,18; 96,24; 112,32;
  128,40; 144,50; 160,61; 176,73; 
  192,85; 208,100



 0,0; 255,100 
The query and respective responses are coded as any other command/reply pair: For the FT-950:

  SMETER
  7
  RM1
  
    DECIMAL
    3
  
  ;



  GET_SMETER
  4
  RM1;
  SMETER



  PWRMETER
  7
  RM5
  
    DECIMAL
    3
  
  ;



  GET_PWRMETER
  4
  RM5;
  PWRMETER

and for the IC-706MkIIG:

    SMETER
    10
    FE FE E0 58 15 02
    
        BCD
         3 
         255 
         0 
         1 
     
    FD



    GET SMETER
    7
    FE FE 58 E0 15 02 FD
    SMETER

\section notch_control Notch Control The transceiver manual notch can be both read and controlled using rigCAT. There are a few requirements that may not be met by all transceivers.

Here is an example for the FT-950:

  1,10; 300,3000;



    SET_NOTCH_ON
    8
    BP00001;



    SET_NOTCH_OFF
    8
    BP00000;



    SET_NOTCH_VAL
    8
    BP01
    
        DECIMAL
        3
    
    ;



  NOTCH_ON
  8
  BP00001;



  GET_NOTCH_ON
  5
  BP00;
  NOTCH_ON



  NOTCH
  8
  BP01
  
    DECIMAL
    3
  
  ;



  GET_NOTCH
  5
  BP01;
  NOTCH

The notch is controlled from fldigi using the alt-ctl-left-click on the waterfall. The same keyboard-mouse combination is used to both set and clear the notch. Point the cursor to an offending signal, and then use the keyboard-mouse combination to set the manual notch at that frequency. Repeat the keyboard-mouse combination anywhere in the waterfall to clear the notch. The SET notch is indicated by a dashed vertical line on the waterfall display at the audio frequency being notched. You should also see a pronounced reduction in signal at that point. fldigi will also annunciate any transceiver changes made to the manual notch. \section power_level Power Level Control rigCAT can control the power level of the transceiver if that is a supported CAT command. The definitions for the power level are similar to the notch in that the conversion should be bilateral. Another example using the FT-950 transceiver:

  0,0; 100,100;



  PWRLEVEL
  6
  PC
  
    DECIMAL
    3
  
  ;



  GET_PWRLEVEL
  3
  PC;
  PWRLEVEL



  SET_PWRLEVEL
    6
    PC
    
        DECIMAL
        3
    
    ;

The rigCAT controls for all share a common space on the main fldigi display.
\image html rigcat-1.png "Mode/Bandwidth controls" \image latex rigcat-1.png "Mode/Bandwidth controls" width=2.0in
\image html rigcat-2.png "S-meter" \image latex rigcat-2.png "S-meter" width=2.0in
\image html rigcat-3.png "Power-meter" \image latex rigcat-3.png "Power-meter" width=2.0in
\image html rigcat-4.png "Power Level" \image latex rigcat-4.png "Power Level" width=2.0in

The transition between Mode/Bandwidth and the other control/displays is made using the button just to the right of the bandwidth control. The transition from either S-meter or Power-meter to the Power Level is make by left clicking on the S-meter or Power-meter. \section debugging Debugging To assist in debugging an xml file you may place the following statement within the body of the ... pair. true fldigi will then record critical events as they occur during the execution of the rigCAT loop. Remove the debug statement from the xml when the file has been proven and before publishing. You can test an xml to observe the CAT send sequences by inhibiting the actual connection to the serial port. true/false - default false The serial i/o events are normally recorded as a sequence of HEX values. This behavior can be changed to record the events as a string of ASCII characters. true/false - default false You can use the xml remarks brackets
\