# focus_distance=0.50 # lens_aperture=2.8 # auto_exposure=False # cx = 1916 #Left # cy = 831 #Top # cl = 1252 #Width # cw = 1405 #Height # rect = Rectangle(cx, cy, cl, cw) newDatabaseName = str(datetime.now().strftime("%y%m%d%H%M%S")) + ".ttxm" databasePath = r"C:\Radiant Vision Systems Data\TrueTest\\" + newDatabaseName databasePath = r'C:\oculus\factory_test_omi\factory_test_stations\factory-test_logs\1PR00001UB9262_pancake_pixel-02_20190726-220417_P.ttxm' sequencePath = r"C:\oculus\factory_test_omi\factory_test_stations\test_station\test_equipment\algorithm\Myzy_Sequence_10-3-19.seqx" station_config.load_station('pancake_pixel') # station_config.CAMERA_SN = "Demo" the_instrument = pancakepixelEquipment(station_config) ver = the_instrument.version() print(ver) print("ready before init :{}".format(the_instrument.ready())) isinit = the_instrument.initialize() print("ready after init :{}".format(the_instrument.ready())) # print "PrepareForRun after init:{}" .format(the_instrument.prepare_for_run()) # the_instrument.create_database(databasePath) the_instrument.set_database(databasePath) the_instrument.set_sequence(sequencePath) pass
import test_station import station_config import hardware_station_common.factory_test_gui as gui import test_station.test_station_seacliff_paneltesting as test_station_paneltesting # here we can override the station_config so that we don't have # to monkey with it in the build system station_config.load_station('seacliff_paneltesting') # we just have to pass in the TestStation constructor for this specific station # and the station_config FACTORY_TEST_GUI = gui.FactoryTestGui(station_config, test_station_paneltesting.pancakemuniStation) # enter the main loop FACTORY_TEST_GUI.main_loop()
import test_station import station_config import hardware_station_common.factory_test_gui as gui # here we can override the station_config so that we don't have # to monkey with it in the build system station_config.load_station('pancake_uniformity') # we just have to pass in the TestStation constructor for this specific station # and the station_config FACTORY_TEST_GUI = gui.FactoryTestGui(station_config, test_station.pancakeuniformityStation) # enter the main loop FACTORY_TEST_GUI.main_loop()
del XYZ return dict(zip(stats_summary[0, 0:k], stats_summary[1, 0:k])) def print_to_console(self, msg): pass if __name__ == "__main__": import sys sys.path.append("../../") import types import station_config import hardware_station_common.operator_interface.operator_interface as operator_interface station_config.load_station('seacliff_mot') station_config.print_to_console = types.MethodType(print_to_console, station_config) station_config._verbose = True the_equipment = seacliffmotEquipment(station_config, station_config) print(the_equipment.version()) print(the_equipment.get_config()) config = {"capturePath": "C:\\oculus\\factory_test_omi\\factory_test_stations\\factory-test_logs\\raw\\AA_seacliff_mot-01_20200612-100304"} print(the_equipment.set_config(config)) print(the_equipment.open()) the_equipment.measure_and_export(station_config.TESTTYPE) print(the_equipment.reset()) print(the_equipment.close()) the_equipment.kill()
def _write_serial(self, input_bytes): if self._verbose: self.logger.debug('writing: ' + input_bytes) bytes_written = self._serial_port.write(input_bytes) return bytes_written def _read_response(self): response = self._serial_port.readline() parsed = response.split() data = None cmd = response if len(parsed) > 1: data = parsed[1].split(";") cmd = parsed[0].split(",") return cmd, data if __name__ == "__main__": import sys sys.path.append(r'..\..') import station_config verbose = True station_config.load_station('pancake_pr788') the_instrument = pancakepr788Equipment(station_config) isinit = the_instrument.is_ready() print the_instrument.initialize() print the_instrument.remote_mode() print the_instrument.measure() print the_instrument.quit() the_instrument.close()
import test_station import station_config import hardware_station_common.factory_test_gui as gui # here we can override the station_config so that we don't have # to monkey with it in the build system station_config.load_station('project_station') # we just have to pass in the TestStation constructor for this specific station # and the station_config FACTORY_TEST_GUI = gui.FactoryTestGui(station_config, test_station.projectstationStation) # enter the main loop FACTORY_TEST_GUI.main_loop()
# focus_distance=0.50 # lens_aperture=2.8 # auto_exposure=False # cx = 1916 #Left # cy = 831 #Top # cl = 1252 #Width # cw = 1405 #Height # rect = Rectangle(cx, cy, cl, cw) newDatabaseName = str(datetime.now().strftime("%y%m%d%H%M%S")) + ".ttxm" databasePath = r"C:\Radiant Vision Systems Data\TrueTest\\" + newDatabaseName databasePath = r'C:\oculus\factory_test_omi\factory_test_stations\factory-test_logs\1PR00001UB9262_pancake_pixel-02_20190726-220417_P.ttxm' sequencePath = r"C:\oculus\factory_test_omi\factory_test_stations\test_station\test_equipment\algorithm\Myzy_Sequence_10-3-19.seqx" station_config.load_station('pancake_offaxis') the_instrument = pancakeoffaxisEquipment(station_config) print("ready before init :{}".format(the_instrument.ready())) isinit = the_instrument.initialize() print("ready after init :{}".format(the_instrument.ready())) # print "PrepareForRun after init:{}" .format(the_instrument.prepare_for_run()) # the_instrument.create_database(databasePath) the_instrument.set_database(databasePath) the_instrument.set_sequence(sequencePath) patternList = [ "White", "Gray180", "Gray127", "Gray90", "Red", "Green", "Blue" ] for pattern in patternList: anaList = []
import test_station import station_config import hardware_station_common.factory_test_gui as gui import test_station.test_station_seacliff_eeprom as test_station_eeprom # here we can override the station_config so that we don't have # to monkey with it in the build system station_config.load_station('seacliff_eeprom') # we just have to pass in the TestStation constructor for this specific station # and the station_config FACTORY_TEST_GUI = gui.FactoryTestGui(station_config, test_station_eeprom.seacliffeepromStation) # enter the main loop FACTORY_TEST_GUI.main_loop()