forked from awendt/pyrelacs
removing file
This commit is contained in:
parent
d2cd4f5c02
commit
b0fe6c5723
23
:w
23
:w
@ -1,23 +0,0 @@
|
||||
import uldaq
|
||||
from IPython import embed
|
||||
import typer
|
||||
|
||||
class Input():
|
||||
def __init__(self) -> None:
|
||||
pass
|
||||
|
||||
def connect(self):
|
||||
try:
|
||||
devices = uldaq.get_daq_device_inventory(uldaq.InterfaceType.USB)
|
||||
daq_device = uldaq.DaqDevice(devices[0])
|
||||
daq_device.connect()
|
||||
print(f"Connected to daq_device {devices[0].product_name}")
|
||||
print(f"Connected to daq_device {daq_device.is_connected()}")
|
||||
|
||||
except uldaq.ULException as e:
|
||||
print('\n', e)
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
typer.run(connect)
|
||||
|
Loading…
Reference in New Issue
Block a user