Esempio n. 1
0
def main():
    MsLoggerConfigurator().configure_logging()
    log = logging.getLogger('test')
    s = Scale().calibrate()
    log.info("Please put the weight on then hit enter")
    input()
    w = []
    num = 1000
    for i in range(num):
        w.append(s.measure_weight())
    sum_weights = 0
    for we in w:
        sum_weights += we
    avg = sum_weights / num
    log.info("Measured weight: %s" % avg)
import logging
from equipments.b2902A import B2902A
from ms_logging.ms_logger_configurator import MsLoggerConfigurator

if __name__ == '__main__':
    MsLoggerConfigurator().configure_logging(log_level=logging.INFO)
    log = logging.getLogger("test")
    log.info(B2902A().list_all_resources())
import logging
from ms_logging.ms_logger_configurator import MsLoggerConfigurator
from scenarios.tutorial_board_adc import TutorialBoardAdc

if __name__ == '__main__':
    MsLoggerConfigurator().configure_logging()
    log = logging.getLogger()
    print("first round")
    TutorialBoardAdc().run()
    print("second round")
    TutorialBoardAdc().run()