class spirack.S5i_module(spi_rack, module, frequency=100e6, enable_output=1, output_level=0.0)
S5i module interface class. This class does the low level interfacing with the S5i RF generator module. It requires an SPI Rack object and module number at initialization. A start up frequency can be given, otherwise it defaults to 100 MHz. The output power will default to 0 dBm.
Parameters:
set_frequency(frequency)
Sets the frequency with the grid set by set_stepsize
. Will calculate the correct register values and raises ValueErrors if the frequency is not possible. This can be due to limitations in the stepsize or when it exceeds the chip limitations.
Parameters:
get_optimal_stepsize(frequency)
Calculates the optimal stepsize for a given frequency such that the phase noise in minimised.
Parameters:
Returns - the optimal stepsize in Hz (float)
set_stepsize(stepsize)
Sets the stepsize with which the frequency will be set in set_frequency
.
Parameters:
set_output_power(level)
Sets the output power of the unit. Can be varied from -14 dBm to 20 dBm.
Parameters:
enable_output_soft(enable)
Enables/disable the output of the RF generator IC. This is not the same as the mute input on the front of the module. It disables the chip output internally: it has less attenuation and is slower.
Parameters:
write_registers()
Writes data via the SPI Rack class to the S5i module. Writes the current register settings to the ADF4351 in reversed order of storage: REG5 to REG0. This is required according to the datasheet. The output is only updated when REG0 is written to
Attribute | Info |
---|---|
module |
the module number set by the user (must coincide with hardware) |
rf_frequency |
the currently set RF output frequency in Hz |
stepsize |
the set stepsize in Hz |
output_status |
output enabled/disabled |