23 lines
		
	
	
		
			430 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			23 lines
		
	
	
		
			430 B
		
	
	
	
		
			Python
		
	
	
	
	
	
| def global_var_init():
 | |
| 
 | |
|     # 设置周期,采样频率,记录名称
 | |
|     global cycle, fs, record_name, data_path
 | |
| 
 | |
|     data_path = r"C://Users//Lenovo//Desktop//data_1020" 
 | |
|     record_name = "xueguangyue_1.csv" 
 | |
|     cycle = 1000 # 此处是生成txt文件(to_txt.py)中的周期,而预处理(processing.py)时会处理全部周期
 | |
|     fs = 250 # ECG采样频率
 | |
|     
 | |
|     return  cycle, fs, record_name, data_path
 | |
| 
 | |
| 
 | |
| 
 | |
| 
 | |
| 
 | |
| 
 | |
| 
 | |
| 
 | |
| 
 | |
| 
 | |
| 
 |