-
Notifications
You must be signed in to change notification settings - Fork 0
/
userconfig.py
91 lines (73 loc) · 3.21 KB
/
userconfig.py
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
# This file contains user-specific settings for qtlab.
# It is run as a regular python script.
import sys, os
BASE = os.path.join(os.getcwd(), '..')
sys.path.append(BASE)
# FIXME: this is a dirty fix to ensure qtlab/source is the first in sys.path
sys.path.insert(0,os.path.join(BASE, 'qtlab', 'source'))
# Do not change the following line unless you know what you are doing
config.remove([
'datadir',
'startdir',
'scriptdirs',
'user_ins_dir',
'startgui',
'gnuplot_terminal',
])
# QTLab instance name and port for networked operation
config['instance_name'] = 'qtlab_lt1'
config['port'] = 12002
# A list of allowed IP ranges for remote connections
config['allowed_ips'] = ('192.168.0.*', )
# '130.161.*.*',
# '145.94.*.*',
# Start instrument server to share with instruments with remote QTLab?
config['instrument_server'] = False
## This sets a default directory for qtlab to start in
config['startdir'] = os.path.join(BASE,'measurement/scripts')
## A default script (or list of scripts) to run after qtlab started
config['startscript'] = [] #e.g. 'initscript1.py'
## A default script (or list of scripts) to run when qtlab closes
config['exitscript'] = [] #e.g. ['closescript1.py', 'closescript2.py']
## This sets a default location for data-storage
config['datadir'] = os.path.join(BASE,'data')
# Add directories containing scripts here. All scripts will be added to the
# global namespace as functions.
config['scriptdirs'] = [
os.path.join(BASE,'measurement/scripts'),
]
## This sets a user instrument directory
## Any instrument drivers placed here will take
## preference over the general instrument drivers
config['user_insdir'] = os.path.join(BASE,'measurement/instruments')
# cyclops configuration
cyclops_dir = os.path.join(BASE,'cyclops')
config['cyclops_dir'] = cyclops_dir
sys.path.append(cyclops_dir)
sys.path.append(os.path.join(cyclops_dir, 'source'))
config['setup_cfg'] = os.path.join(os.getcwd(), 'setup.cfg')
config['pq_dll'] = 'd:/measuring/measurement/bin/pq_tttr.dll'
config['anc350_dll'] = os.path.join(BASE, 'bin', 'attocube_ANC350',
'hvpositionerv2.dll')
config['adwin_programs'] = 'd:/measuring/measurement/ADwin_Codes/'
config['adwin_lt1_subfolder'] = 'adwin_gold_2_lt1'
config['adwin_lt2_subfolder'] = 'adwin_pro_2_lt2'
# config files
config['cfg_path'] = os.path.join(BASE, 'measurement', 'config')
config['ins_cfg_path'] = "../measurement/config/"
config['samples_cfg'] = os.path.join(os.getcwd(), '../measurement/config/samples.cfg')
config['protocols_cfg'] = os.path.join(os.getcwd(), '../measurement/config/protocols.cfg')
config['awg_cfg'] = os.path.join(os.getcwd(), '../measurement/config/awgchannels.cfg')
# Whether to start the GUI automatically
config['startgui'] = True
# Default gnuplot terminal
#config['gnuplot_terminal'] = 'x11'
#config['gnuplot_terminal'] = 'wxt'
#config['gnuplot_terminal'] = 'windows'
# cyclops configuration
cyclops_dir = os.path.join(BASE,'cyclops')
config['cyclops_dir'] = cyclops_dir
sys.path.append(cyclops_dir)
sys.path.append(os.path.join(cyclops_dir, 'source'))
# Enter a filename here to log all IPython commands
config['ipython_logfile'] = '' #e.g. 'command.log'