Commit b802fe76 authored by Alén Arias Vázquez's avatar Alén Arias Vázquez 😎

change default device

parent 8aca4beb
......@@ -73,13 +73,11 @@ class CPX400DP(object):
def get_values(self, chan=1, volts=10.0, amps=0.3):
self.set_voltage(volts=volts, chan=chan)
self.set_current(amps=amps, chan=chan)
for i in range()
def main():
parser = argparse.ArgumentParser(description='Control CPX400DP from USB', formatter_class=argparse.ArgumentDefaultsHelpFormatter)
parser.add_argument('--device', "-D", type=str, default='/dev/tty_CPX', help="Linux device name")
parser.add_argument('--device', "-D", type=str, default='/dev/ttyACM0', help="Linux device name")
parser.add_argument('--baudrate', "-b", type=int, default=115200, help="Serial baudrate")
parser.add_argument('--chan', "-C", type=int, default=1, help="Channel selector")
parser.add_argument('--volts', "-V", type=float, default=12.0, help="Volts")
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment