Skip to content

Commit

Permalink
paths qctoolkit test setup
Browse files Browse the repository at this point in the history
  • Loading branch information
M-superposition committed Jun 19, 2018
1 parent 85df932 commit 5c88002
Showing 1 changed file with 29 additions and 10 deletions.
39 changes: 29 additions & 10 deletions MATLAB/+qc/qctoolkitTestSetup.m
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
%% --- Test setup without AWG and Alazar (only qctoolkit) -----------------
global plsdata
plsdata = struct( ...
'path', 'Z:\Code\qc-toolkit-pulses', ...
'path', 'Z:\code\qc-toolkit-pulses', ...
'awg', struct('inst', [], 'hardwareSetup', [], 'sampleRate', 2e9, 'currentProgam', '', 'registeredPrograms', struct(), 'defaultChannelMapping', struct(), 'defaultWindowMapping', struct(), 'defaultParametersAndDicts', {{}}, 'defaultAddMarker', {{}}), ...
'dict', struct('cache', [], 'path', 'Z:\Code\qc-toolkit-dicts'), ...
'dict', struct('cache', [], 'path', 'Z:\code\qc-toolkit-dicts'), ...
'qc', struct('figId', 801), ...
'daq', struct('inst', [], 'defaultOperations', {{}}, 'reuseOperations', false) ...
);
Expand All @@ -24,20 +24,39 @@

% Loading
if util.yes_no_input('Really load smdata?', 'n')
load(fullfile(loadPath, 'smdata_recent.mat'));
info = dir(fullfile(loadPath, 'smdata_recent.mat'));
try
copyfile(fullfile(loadPath, 'smdata_recent.mat'), fullfile(tunePath, 'smdata_recent.mat'));
catch err
warning(err.getReport());
end
load(fullfile(tunePath, 'smdata_recent.mat'));
info = dir(fullfile(tunePath, 'smdata_recent.mat'));
fprintf('Loaded smdata from %s', datestr(info.datenum));
end
load(fullfile(loadPath, 'tunedata_recent.mat'));
info = dir(fullfile(loadPath, 'tunedata_recent.mat'));
try
copyfile(fullfile(loadPath, 'tunedata_recent.mat'), fullfile(tunePath, 'tunedata_recent.mat'));
catch err
warning(err.getReport());
end
load(fullfile(tunePath, 'tunedata_recent.mat'));
info = dir(fullfile(tunePath, 'tunedata_recent.mat'));
fprintf('Loaded tunedata from %s', datestr(info.datenum));

load(fullfile(loadPath, 'plsdata_recent.mat'));
info = dir(fullfile(loadPath, 'plsdata_recent.mat'));
try
copyfile(fullfile(loadPath, 'plsdata_recent.mat'), fullfile(tunePath, 'plsdata_recent.mat'));
catch err
warning(err.getReport());
end
load(fullfile(tunePath, 'plsdata_recent.mat'));
info = dir(fullfile(tunePath, 'plsdata_recent.mat'));
fprintf('Loaded plsdata from %s', datestr(info.datenum));

global tunedata
global plsdata
tunedata.run{tunedata.runIndex}.opts.loadFile = 'Y:\GaAs\Triton 200\Backup\DATA\tune';
import tune.tune

plsdata.path = pulsePath;

% Alazar dummy instrument (simulator not implemented yet)
smdata.inst(sminstlookup(plsdata.daq.instSmName)).data.address = 'simulator';
Expand All @@ -48,7 +67,7 @@
% Initializes hardware setup
% Can also be used for deleting all programs/resetting but then also need to setup Alazar again, i.e. the cell above and the three cells below )
plsdata.awg.hardwareSetup = [];
qc.setup_tabor_awg('realAWG', false, 'simulateAWG', false, 'taborDriverPath', 'Z:\code\python-TaborDriver');
qc.setup_tabor_awg('realAWG', false, 'simulateAWG', false, 'taborDriverPath', 'Z:\code\tabor');

% AWG default settings
% awgctrl('default');
Expand All @@ -67,5 +86,5 @@
% Tune
tunedata.run{tunedata.runIndex}.opts.path = tunePath;

disp(' done!');
disp('done');
% -------------------------------------------------------------------------

0 comments on commit 5c88002

Please sign in to comment.