def measure(self): WriteDUT(self._meas_assets, self._dut_name, self.test_id1, self.ON).run() time.sleep(self.sleep_time) # Start with a bad value curr = -0.1 # Read the state of the first pin result, value = ReadDUT(self._meas_assets, self._dut_name, self.test_id2).run() # Verify the pin state is set if result & value == self.ON: # Read the state of the second pin result, value = ReadDUT(self._meas_assets, self._dut_name, self.test_id3).run() # Verify the pin state is clear if result & value == self.OFF: # Read the DUT output voltage curr = abs(self.mux.measure_vdc(self.slotChan2)) # Verify the result of reading the DUT output voltage self.test_points[self.test_point_name].execute(abs(curr)) time.sleep(self.sleep_time)
def measure(self): WriteDUT(self._meas_assets, self._dut_name, self.test_id, self.OFF).run() time.sleep(self.sleep_time) # Verify the result of reading the DUT output voltage curr = self.mux.measure_vdc(self.slotChan) self.test_points[self.test_point_name].execute(abs(curr)) time.sleep(self.sleep_time)
def tear_down(self): # If this is working with Slot 2, Chan 2 (202) then remember to keep bit 1 ON (it's the key-sense) if self.slotChan1 == 202: self.bit = 1 << 1 self.mux.set_dio_out(self.slotChan1, self.bit) WriteDUT(self._meas_assets, self._dut_name, self.test_id1, self.OFF).run() self.mux.display_clear()
def tear_down(self): WriteDUT(self._meas_assets, self._dut_name, self.test_id, self.OFF).run() self.mux.display_clear()