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