For Mirny, also use the corresponding CPLD: self._mirny_cpld.read_reg(2)
will return a 4-bit integer representing four channels' state. However, the state of each mirny channel is controlled by the Logical Addition of the CPLD register value and the state of each channel's sw_device. For it to represent the actual statue of each channel, we need to turn off the sw_device mirny.sw.off()
and only use code like self._mirny_cpld.write_reg(2, 0b1001)
to control the state of each channel.