From d721c94513f040923ce85a89753cff26ff9246e5 Mon Sep 17 00:00:00 2001 From: raab Date: Tue, 10 Sep 2019 14:26:25 +0200 Subject: [PATCH] adaptations to read confic and create folder correctly --- rasp_grid.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/rasp_grid.py b/rasp_grid.py index f2d0bf9..7e91532 100644 --- a/rasp_grid.py +++ b/rasp_grid.py @@ -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()