-
Notifications
You must be signed in to change notification settings - Fork 15
Expand file tree
/
Copy pathinstallQlab.m
More file actions
19 lines (18 loc) · 1014 Bytes
/
installQlab.m
File metadata and controls
19 lines (18 loc) · 1014 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
function installQlab()
answer = inputdlg({'Path to configuration files', 'Path to AWG files', 'Path to PyQLab', 'Data directory', 'Experiment settings file'},'Qlab preference folders');
setpref('qlab', 'cfgDir', answer{1});
setpref('qlab', 'awgDir', answer{2});
setpref('qlab', 'PyQLabDir', answer{3});
setpref('qlab', 'InstrumentLibraryFile', fullfile(answer{3}, 'Instruments.json'));
setpref('qlab', 'ChannelParamsFile', fullfile(answer{3}, 'ChannelParams.json'));
setpref('qlab', 'dataDir', answer{4});
setpref('qlab', 'CurScripterFile', answer{5})
parentPath = fileparts(mfilename('fullpath'));
fprintf('Add these paths to the path:\n');
fprintf('%s\\common\n', parentPath);
fprintf('%s\\common\\util\n', parentPath);
fprintf('%s\\experiments\\muWaveDetection\n', parentPath);
fprintf('%s\\experiments\\muWaveDetection\\src\n', parentPath);
fprintf('%s\\analysis\n', parentPath);
fprintf('%s\\analysis\\cQED_dataAnalysis\n', parentPath);
end