-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmain.py
More file actions
31 lines (23 loc) · 826 Bytes
/
main.py
File metadata and controls
31 lines (23 loc) · 826 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
import sys
import os
import src.app.appDAQ as daq
import src.app.appCalibrationMethod as calibration_method
import src.app.appDataAcquisition as data_acquisition
# Gets the path of the current script
current_dir = os.path.dirname(os.path.abspath(__file__))
# Adds the parent directory (project root) to the Python path
parent_dir = os.path.dirname(current_dir)
sys.path.append(parent_dir)
def main():
# --- DAQ SELECTION ---
niDAQ = daq.run_select_daq()
while not niDAQ.is_exit_requested():
# --- CALIBRATION ---
calibration_method.run_calibrate(niDAQ)
if niDAQ.is_exit_requested():
niDAQ.exit()
continue
# --- ACQUIRE DATA ---
data_acquisition.run_data_acquisition(niDAQ)
if __name__ == "__main__":
main()