This repository has been archived by the owner on Aug 12, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.ini
168 lines (147 loc) · 3.32 KB
/
config.ini
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
# General notes on editing this file:
# - Comments must be on their own line. E.g. 'device_id = Dev1 # Qwerty' doesn't work (Maybe there is a way to get it working)
# - Section names probably allows whitespace but I wanted to avoid any potential problems by the naming convention currently used
# General NI DAQ settings (use only numbers for values)
[NI_DAQ]
# Device name (identifier). Not sure if prefix 'Dev' can be changed (ni_daqs file used Dev prefix)
device_id = 1
# Lowest used analog input channel
ai_min = 0
# Largest used analog input channel
ai_max = 4
# Min voltage expected to measure in ai
ai_min_v = -10.0
# Max voltage expected to measure in ai
ai_max_v = 10.0
# Pulse generator channel for the blower
blower_pulse_chan = 0
# Pulse edge counter channel for the Cpc
cpc_counter_chan = 1
# Input channel for counting cpc pulses
cpc_pulses_chan = 0
# Digital I/O port channel
port_chan = 1
# Total concentration valve channel
conc_line_chan = 3
# Sample flow bypass valve channel
bypass_line_chan = 2
# Contains channel numbers and scaling variables
[NI_DAQ:Scaling]
# Pressure sensor
p_chan = 4
# Scaling:
p_value_min = 60000.0
p_value_max = 110000.0
p_v_min = 0.0
p_v_max = 5.0
# Temperature sensor
t_chan = 1
# Scaling:
t_value_min = 16.2
t_value_max = 22.6
t_v_min = 0.613
t_v_max = 0.6395
# RH sensor
rh_chan = 2
# Scaling:
rh_value_min = 0.0
rh_value_max = 100.0
rh_v_min = 0.8260
rh_v_max = 3.976
# High voltage input
hvi_chan = 0
# Scaling:
hvi_value_min = 9.9
hvi_value_max = 10170
hvi_v_min = 0.01
hvi_v_max = 10.0
# High voltage output (analog output)
hvo_chan = 0
# Scaling:
hvo_value_min = 0.01
hvo_value_max = 10.0
hvo_v_min = 10.6
hvo_v_max = 10180
# Pressure difference sensor
f_chan = 3
# Scaling:
f_value_min = 1.005
f_value_max = 3.8336
f_v_min = 0.601
f_v_max = 1.156
# PID control for the blower
[Pid]
# Hz
frequency = 200.0
# seconds
sample_time = 0.1
p = 0.02
i = 0.004
d = 0.003
# Flow meter's serial port settings
[Flow_Meter:Serial_port]
port = COM1
baudrate = 38400
bytesize = 8
parity = N
stopbits = 1
timeout = 1
# Software flow control
xonxoff = 0
# Hardware flow control
rtscts = 0
# Scaling settings for the flow meter
[Flow_Meter:Scaling]
# Flow
f_multiplier = 1
f_offset = 0
# Temperature
t_multiplier = 1
t_offset = 0
# Pressure
p_multiplier = 1
p_offset = 0
# CPC's serial port settings
[Cpc:Serial_port]
port = COM2
baudrate = 115200
bytesize = 8
parity = N
stopbits = 1
timeout = 1
# Software flow control
xonxoff = 0
# Hardware flow control
rtscts = 0
# Settings used in particle concentration calculations
[Dma]
# Small particles settings
# Diameter unit is nm
small_p_d_min = 6.0e-9
small_p_d_max = 20.0e-9
number_of_small_p = 8
# Large particles settings
# Diameter unit is nm
large_p_d_min = 10.0e-9
large_p_d_max = 820.0e-9
number_of_large_p = 25
# Dma physical attributes
# Unit is meters
length = 0.28
in_electrode_r = 0.025
out_electrode_r = 0.033
# Automatic measurement loop settings
[Automatic_measurement]
# Time to count cpc's pulses (s)
pulse_count_t = 5.0
# Waiting time after one measurement loop (s)
cycle_wait_t = 5.0
# Time waited after voltage change (s)
between_voltages_wait_t = 7.0
# Variables are used for calculating the concentration
# 16.67 * 0.984
flow = 16.40328
# 16.67 * 0.984 (*1.1, correction not currently in use)
flow_d = 16.40328
# 0.984 (*1.1, correction not currently in use)
flow_c = 0.984