This commit is contained in:
tillraab 2019-09-16 17:13:56 +02:00
parent b4f6fe794e
commit af4c920a8c

View File

@ -200,7 +200,7 @@ def main():
low_channel = 0 low_channel = 0
high_channel = channels high_channel = channels
samples_per_channel = 20000 # * channels = Buffer size samples_per_channel = rate * 2 # * channels = Buffer size
# rate = 20000 # rate = 20000
scan_options = ScanOption.CONTINUOUS scan_options = ScanOption.CONTINUOUS
flags = AInScanFlag.DEFAULT flags = AInScanFlag.DEFAULT
@ -268,10 +268,11 @@ def main():
LED_status[0] = True LED_status[0] = True
while GPIO.input(Button1_pin) == GPIO.LOW: while GPIO.input(Button1_pin) == GPIO.LOW:
sleep(.1) sleep(.1)
sleep(2)
GPIO.output(LED1_pin, GPIO.LOW) GPIO.output(LED1_pin, GPIO.LOW)
LED_status[0] = False LED_status[0] = False
sleep(2)
LED_t = time() LED_t = time()
LED_t_interval = 2 LED_t_interval = 2
@ -345,6 +346,13 @@ def main():
f.close() f.close()
temp_f.close() temp_f.close()
if LED_status[0] == False:
GPIO.output(LED1_pin, GPIO.HIGH)
if LED_status[1] == False:
GPIO.output(LED2_pin, GPIO.HIGH)
sleep(2)
if daq_device: if daq_device:
# Stop the acquisition if it is still running. # Stop the acquisition if it is still running.
if status == ScanStatus.RUNNING: if status == ScanStatus.RUNNING: