<s> from lantz . drivers . ni . daqmx import AnalogInputTask <EOL> from lantz . drivers . ni . daqmx import VoltageInputChannel <EOL> if __name__ == '<STR_LIT:__main__>' : <EOL> import argparse <EOL> parser = argparse . ArgumentParser ( ) <EOL> parser . add_argument ( '<STR_LIT>' , '<STR_LIT>' , action = '<STR_LIT:store_true>' , <EOL> help = '<STR_LIT>' ) <EOL> parser . add_argument ( '<STR_LIT>' , type = str , <EOL> help = '<STR_LIT>' ) <EOL> args = parser . parse_args ( ) <EOL> if args . debug : <EOL> import lantz . log <EOL> lantz . log . log_to_screen ( lantz . log . DEBUG ) <EOL> task = AnalogInputTask ( ) <EOL> task . add_channel ( VoltageInputChannel ( args . phys_channel ) ) <EOL> task . start ( ) <EOL> print ( task . read_scalar ( ) ) <EOL> task . stop ( ) </s>
