Commit eea0f234 authored by Martin Drechsler's avatar Martin Drechsler

minor change

parent 1e48dd61
...@@ -27,11 +27,11 @@ ul.ignore_instacal() #instacal will be ignored ...@@ -27,11 +27,11 @@ ul.ignore_instacal() #instacal will be ignored
# First of all, I check which daqs are available and print it. # First of all, I check which daqs are available and print it.
devices = ul.get_daq_device_inventory(interface_type=InterfaceType.USB) devices = ul.get_daq_device_inventory(interface_type=InterfaceType.USB)
device = devices[0] if len(devices) == 1 :
if len(devices)>0: device = devices[0]
print('daq %s is connected' % device.product_name) print('daq %s is connected' % device.product_name)
else: else:
print('No daq connected') warnings.warn('No daq connected')
......
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