PhaseMatrix

PhaseMatrixFSW0020 Signal Generator

class instruments.phasematrix.PhaseMatrixFSW0020(filelike)[source]

Communicates with a Phase Matrix FSW-0020 signal generator via the “Native SPI” protocol, supported on all FSW firmware versions.

Example:

>>> import instruments as ik
>>> import quantities as pq
>>> inst = ik.phasematrix.PhaseMatrixFSW0020.open_serial("/dev/ttyUSB0", baud=115200)
>>> inst.frequency = 1 * pq.GHz
>>> inst.power = 0 * ik.units.dBm  # Can omit units and will assume dBm
>>> inst.output = True
reset()[source]

Causes the connected signal generator to perform a hardware reset. Note that no commands will be accepted by the generator for at least \(5 \mu\text{s}\).

am_modulation

Gets/sets the amplitude modulation status of the FSW0020

Type:bool
blanking

Gets/sets the blanking status of the FSW0020

Type:bool
frequency

Gets/sets the output frequency of the signal generator. If units are not specified, the frequency is assumed to be in gigahertz (GHz).

Type:Quantity
Units:frequency, assumed to be GHz
output

Gets/sets the channel output status of the FSW0020. Setting this property to True will turn the output on.

Type:bool
phase

Gets/sets the output phase of the signal generator channel

Type:Quantity
power

Gets/sets the output power of the signal generator. If units are not specified, the power is assumed to be in decibel-milliwatts (dBm).

Type:Quantity
Units:log-power, assumed to be dBm
pulse_modulation

Gets/sets the pulse modulation status of the FSW0020

Type:bool
ref_output

Gets/sets the reference output status of the FSW0020

Type:bool