PhaseMatrix
PhaseMatrixFSW0020 Signal Generator
- class instruments.phasematrix.PhaseMatrixFSW0020(filelike, *args, **kwargs)[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 instruments.units as u >>> inst = ik.phasematrix.PhaseMatrixFSW0020.open_serial("/dev/ttyUSB0", baud=115200) >>> inst.frequency = 1 * u.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}\).
- property am_modulation
Gets/sets the amplitude modulation status of the FSW0020
- Type:
bool
- property blanking
Gets/sets the blanking status of the FSW0020
- Type:
bool
- property 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:
- Units:
frequency, assumed to be GHz
- property output
Gets/sets the channel output status of the FSW0020. Setting this property to
Truewill turn the output on.- Type:
bool
- property 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:
- Units:
log-power, assumed to be dBm
- property pulse_modulation
Gets/sets the pulse modulation status of the FSW0020
- Type:
bool
- property ref_output
Gets/sets the reference output status of the FSW0020
- Type:
bool