Comet

CitoPlus1310 RF Generator

class instruments.comet.CitoPlus1310(filelike)[source]

Communicate with the Comet Cito Plus 1310 RF generator.

Various connection options are available for different models. Note that this driver is only tested with the RS-232 interface and that, according to the manual, communication over TCP/IP is different.

Important: Make sure that the correct parity is set in the instrument and when calling the instrument. The default seems to be even parity. Below example used even parity for the communication. In general, all communication parameters (baud rate, parity, etc.) can be set in the instrument itself. Below example just shows one possible configuration.

Example:
>>> import serial
>>> import instruments as ik
>>> port = '/dev/ttyUSB0'
>>> baud = 115200
>>> inst = ik.comet.CitoPlus1310.open_serial(port, baud, parity=serial.PARITY_EVEN)
>>> inst.rf  # query RF state
False
>>> inst.rf = True  # turn on RF
class RegulationMode(*values)[source]

Regulation modes that are available on the Cito Plus 1310.

ForwardPower = 0
LoadPower = 1
ProcessControl = 2
query(pkg: bytes, write_cmd=False) None | bytes[source]

Query instrument.

This will check if the command is accepted by the instrument and if not, raise an OSError with the appropriate return code that came back.

Parameters:
  • pkg (bytes) – The package to send to the instrument.

  • boolwrite_cmd – If True, this is a write command and will only check if received package the same as sent one.

sendcmd(pkg: bytes) None[source]

Write a command to the instrument.

Uses the query command to check return, i.e., that everything is fine, but does not return data.

Parameters:

pkg (bytes) – The package to send to the instrument.

property forward_power: Quantity

Get the actual forward power of the generator in W.

Returns:

Forward power.

Return type:

Quantity

property load_power: Quantity

Get the actual load power of the generator in W.

Returns:

Load power.

Return type:

Quantity

property name: str

Get the name of the instrument.

property output_power: Quantity

Get/set the set output power of the generator in W.

Returns:

Output power.

Return type:

Quantity

property reflected_power: Quantity

Get the actual reflected power of the generator in W.

Returns:

Reflected power.

Return type:

Quantity

property regulation_mode: RegulationMode

Get/set the regulation mode of the generator.

Returns:

Regulation mode.

Return type:

RegulationMode

property rf: bool

Get/set the RF state.

Returns:

The RF state.

Return type:

bool