-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathmultiprocess_config.py
More file actions
38 lines (30 loc) · 853 Bytes
/
multiprocess_config.py
File metadata and controls
38 lines (30 loc) · 853 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
32
33
34
35
36
37
#!/usr/bin/python
#Configurations for process communications
from configuration import GENERAL_CONFIG as CONFIG
from Queue import Full as Queue_Full
from Queue import Empty as Queue_Empty
TIMEOUT_GET=int(CONFIG['PAQ_USB']/CONFIG['FS'])
TIMEOUT_PUT=int(CONFIG['PAQ_USB']/CONFIG['FS'])/10
#--------
GRAPH_DATA_BUFFER=15
DATA_BUFFER=20
WARNIGNS_BUFFER =20
#--------
EXIT_SIGNAL=0
STOP_SIGNAL=1
START_SIGNAL=2
SLOW_PROCESS_SIGNAL=3
SLOW_GRAPHICS_SIGNAL=4
SLOW_CAPTURE_DATA=5
DATA_NONSYNCHRONIZED=6
DATA_CORRUPTION=7
COUNTER_ERROR=8
DATA_NONSYNCHRONIZED=9
CANT_SYNCHRONIZE=10
#--------
Errors_Messages = {SLOW_PROCESS_SIGNAL: "Loss data in processing",
SLOW_GRAPHICS_SIGNAL: 'Slow graphics',
COUNTER_ERROR: 'Counter, data loss',
CANT_SYNCHRONIZE: 'Cant synchronize',
DATA_NONSYNCHRONIZED: 'data non-synchronized',
DATA_CORRUPTION: 'corrupted data'}