def main(): sour=serial.Serial(h.dev, h.baud_rate, rtscts=h.rtscts); h.power_on(sour, h.current_limit, h.voltages) print "turned on: %s" % (time.strftime("%Y-%m-%d %H:%M:%S"))
def main(): sour = serial.Serial(h.dev, h.baud_rate, rtscts=h.rtscts) h.power_on(sour, h.current_limit, h.voltages) return 0
def main(): sour=serial.Serial(h.dev, h.baud_rate, rtscts=h.rtscts); h.power_on(sour, h.current_limit, h.voltages) return 0