bf
This commit is contained in:
		
							parent
							
								
									b4f6fe794e
								
							
						
					
					
						commit
						af4c920a8c
					
				
							
								
								
									
										12
									
								
								rasp_grid.py
									
									
									
									
									
								
							
							
						
						
									
										12
									
								
								rasp_grid.py
									
									
									
									
									
								
							| @ -200,7 +200,7 @@ def main(): | ||||
|         low_channel = 0 | ||||
|         high_channel = channels | ||||
| 
 | ||||
|         samples_per_channel = 20000  # * channels = Buffer size  | ||||
|         samples_per_channel = rate * 2  # * channels = Buffer size | ||||
|         # rate = 20000 | ||||
|         scan_options = ScanOption.CONTINUOUS | ||||
|         flags = AInScanFlag.DEFAULT | ||||
| @ -268,10 +268,11 @@ def main(): | ||||
|     LED_status[0] = True | ||||
|     while GPIO.input(Button1_pin) == GPIO.LOW: | ||||
|         sleep(.1) | ||||
|     sleep(2) | ||||
|     GPIO.output(LED1_pin, GPIO.LOW) | ||||
|     LED_status[0] = False | ||||
| 
 | ||||
|     sleep(2) | ||||
| 
 | ||||
|     LED_t = time() | ||||
|     LED_t_interval = 2 | ||||
| 
 | ||||
| @ -345,6 +346,13 @@ def main(): | ||||
|     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: | ||||
|         # Stop the acquisition if it is still running. | ||||
|         if status == ScanStatus.RUNNING: | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user