B1b_module


class spirack.B1b_module(spi_rack, module, reset=False)

SPI Rack interface code for the B1b IVVI Rack interface module: a module connecting to two IVVI Rack source modules with software controlled signal routing. This class does the low level interfacing with the B1b module. When creating an instance it requires a SPI_rack class passed as a parameter. At initialisation the user can choose to reset the switches to their default routing: everything connected to the DAC (MCX) inputs.

Parameters:

  • spi_rack (SPI_rack) - SPI_rack class object via which the communication runs
  • module (int) - module number set in hardware
  • reset (bool) - if True, resets the switches to their boot position. Otherwise leaves them the way they are set. Defaults to False.

Methods

set_switch(location, switch, position)

Sets the routing of the given switch. Each switch can be set to the corresponding DAC (MCX) input, or the isolated BNC input. The LED will indicate when the switch is connected to the isolated input.

Parameters:

  • location (string) - either ‘left’ or ‘right’. The IVVI Rack module location of which to change the switch.
  • switch (string) - either ‘x1’ or ‘x0.01’. Which switch to set.
  • position (string) - either ‘DAC’ or ‘isolated’. Sets the position of the switch.

get_switch(location, switch)

Gets the routing of the given switch. Each switch can be set to the corresponding DAC (MCX) input, or the isolated BNC input. The LED will indicate when the switch is connected to the isolated input.

Parameters:

  • location (string) - either ‘left’ or ‘right’. The IVVI Rack module location of which to get the switch position.
  • switch (string) - either ‘x1’ or ‘x0.01’. Which switch to get.

reset()

Resets all the switches to their default position: the DAC/MCX input.