BC-Mux Interface

class BCMuxInterface(ip, port)

BC-Mux control class.

With this class the BC-MUX Multiplexer can be controlled remotely without the BC-Mux Controller software.

The USB interface of the BC Mux is not supported by Python. Also the network settings must be done with the program BC-Mux Network Config before using python.

The BC-MUX is an extension which makes it possible to separate up to 16 channels of a cyclizer individually with switch boxes from the cyclizer and to switch them to the Zennium for e.g. impedance measurements. This allows the cyclizer to be extended up to 16 channels with sequential impedance measurements. Only one channel at a time can be switched to the Zennium for a measurement, no parallel impedance measurements are possible.

This class makes it possible to control the Zennium and the Multiplexer from one Python instance via Remote2, which makes the use more flexible than with the BC-Mux Controller. Also, if the cyclizer supports it, the complete system can be controlled from a single Python software.

Parameters
  • ip (str) – SerialCommandInterface object to control the device.

  • port (int) – SerialDataInterface object for online data.

close()

Closing the connection.

Disconnects the TCP/IP connection to the BC-MUX.

connectChannel(channel)

Connects the channel to the zennium.

With this command, a channel is disconnected from the cyclizer and switched to the Zennium, for example for impedance measurements.

Parameters

channel – The channel to connect to the zennium.

Returns

The response string from the device.

Return type

string

disconnectChannel()

Disconnects all channels from the zennium.

All channels are disconnected from the Zennium and switched to the specific cyclizer channel.

Returns

The response string from the device.

Return type

string

setPulseLength(length)

Setting the relais control.

The BC-MUX supports switchboxes containing monostable or bistable relais. With this command, the control of the relais is set.

If a number other than 0 is set, the relay is switched with a pulse. The pulse is then the number in 10 milliseconds long.

Parameters

length – The length of the switching pulse in 10 milliseconds. 0 for monostable relays. 1 for 10 ms. Maximum 255.

Returns

The response string from the device.

Return type

string

_executeCommandAndReadReply(command)

Private function to send a command to the device and read a string.

This command sends the command to the device and returns the response from the device.

Returns

Response string from the device.

Return type

string