adaptations to read confic and create folder correctly
This commit is contained in:
parent
2d9991c295
commit
d721c94513
@ -175,8 +175,8 @@ def main():
|
|||||||
|
|
||||||
# f.close()
|
# f.close()
|
||||||
|
|
||||||
embed()
|
#embed()
|
||||||
quit()
|
#quit()
|
||||||
|
|
||||||
LED1_pin = 11
|
LED1_pin = 11
|
||||||
LED2_pin = 13
|
LED2_pin = 13
|
||||||
@ -198,7 +198,7 @@ def main():
|
|||||||
low_channel = 0
|
low_channel = 0
|
||||||
high_channel = channels
|
high_channel = channels
|
||||||
|
|
||||||
samples_per_channel = 20000 # ToDo: ???? Buffer size ?!
|
samples_per_channel = 20000 # * channels = Buffer size
|
||||||
# rate = 20000
|
# rate = 20000
|
||||||
scan_options = ScanOption.CONTINUOUS
|
scan_options = ScanOption.CONTINUOUS
|
||||||
flags = AInScanFlag.DEFAULT
|
flags = AInScanFlag.DEFAULT
|
||||||
@ -216,7 +216,7 @@ def main():
|
|||||||
# Create the DAQ device object associated with the specified descriptor index.
|
# Create the DAQ device object associated with the specified descriptor index.
|
||||||
daq_device = None
|
daq_device = None
|
||||||
daq_device = DaqDevice(devices[descriptor_index])
|
daq_device = DaqDevice(devices[descriptor_index])
|
||||||
|
|
||||||
# Get the AiDevice object and verify that it is valid.
|
# Get the AiDevice object and verify that it is valid.
|
||||||
ai_device = None
|
ai_device = None
|
||||||
ai_device = daq_device.get_ai_device()
|
ai_device = daq_device.get_ai_device()
|
||||||
@ -323,6 +323,7 @@ def main():
|
|||||||
last_idx = index
|
last_idx = index
|
||||||
|
|
||||||
except KeyboardInterrupt:
|
except KeyboardInterrupt:
|
||||||
|
embed()
|
||||||
pass
|
pass
|
||||||
|
|
||||||
f.close()
|
f.close()
|
||||||
|
Loading…
Reference in New Issue
Block a user