rig : Rig (CAT) control via flrig, hamlib, RigCAT, RTS/DTR, or GPIO

class pyfldigi.client.rig.Rig(clientObj)[source]

Bases: object

Rig (CAT) control via flrig, hamlib, RigCAT, RTS/DTR, or GPIO

Note

An instance of this class automatically gets created under fldigi.Client() when it is constructed.

bandwidth

The name of the current transceiver bandwidth

Getter:Returns the name of the current transceiver bandwidth
Setter:Selects a bandwidth previously added by rig.set_bandwidths
Type:str
Example:
>>> import pyfldigi
>>> fldigi = pyfldigi.Client()
>>> fldigi.rig.bandwidth
'  '
bandwidths

The list of available rig bandwidths

Getter:Returns the list of available rig bandwidths
Setter:Sets the list of available rig bandwidths
Type:str
Example:
>>> import pyfldigi
>>> fldigi = pyfldigi.Client()
>>> fldigi.rig.bandwidths
['  ']  # This is what my radio returns :-/
frequency

Returns the RF carrier frequency

Getter:Returns the RF carrier frequency, in Hz.
Setter:Sets the RF carrier frequency, in Hz.
Type:float
Example:
>>> import pyfldigi
>>> fldigi = pyfldigi.Client()
>>> fldigi.rig.frequency  # read to demonstrate its initial value
7070200.0
>>> fldigi.rig.frequency = 7000000.0  # Set to 7 MHz
>>> fldigi.rig.frequency  # read back to demonstrate that it changed
7000000.0
mode

The name of the current transceiver mode

Getter:Returns the name of the current transceiver mode
Setter:Selects a transceiver mode
Type:str
Example:
>>> import pyfldigi
>>> fldigi = pyfldigi.Client()
>>> fldigi.rig.mode
'CW'
>>> fldigi.rig.mode = 'USB'
>>> fldigi.rig.mode
'USB'
modes

The list of available rig modes

Getter:Returns the list of available rig modes.
Setter:Sets the list of available rig modes
Type:list of str
Example:
>>> import pyfldigi
>>> fldigi = pyfldigi.Client()
>>> fldigi.rig.modes  # read to demonstrate its initial value
['NONE', 'AM', 'CW', 'USB', 'LSB', 'RTTY', 'FM', 'WFM', 'CWR', 'RTTYR', 'AMS', 'PKTLSB', 'PKTUSB', 'PKTFM']
name

The rig name, e.g. ‘FT-817’ or ‘IC-7300’

Getter:Returns the rig name previously set via rig.set_name
Setter:Sets the rig name for xmlrpc rig
Type:str

Note

This doesn’t seem to have an effect when hamlib is enabled. However it seems to work ex expected when using flrig via xml-rpc.

Example:
>>> import pyfldigi
>>> fldigi = pyfldigi.Client()
>>> fldigi.rig.name
'FT-817'
release_control()[source]

Switches rig control to previous setting before take_control() was called

Example:
>>> import pyfldigi
>>> fldigi = pyfldigi.Client()
>>> fldigi.rig.release_control()
take_control()[source]

Switches rig control to XML-RPC

Example:
>>> import pyfldigi
>>> fldigi = pyfldigi.Client()
>>> fldigi.rig.take_control()