Skip to content

Commit

Permalink
sc
Browse files Browse the repository at this point in the history
  • Loading branch information
M-superposition committed Jul 9, 2018
1 parent 7eb183d commit bccc803
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 2 deletions.
45 changes: 45 additions & 0 deletions MATLAB/+qc/qcToolkitTestSetupUploadProgram.m
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
% set upload pulse
% upload_pulse = 'dnp_wait_dbz_4chan';
% upload_pulse = 'decay_j_fid_4chan';
% upload_pulse = 's_pumping_AB_4chan';
% upload_pulse = 'pumping_s_stp';
% upload_pulse = 'pumping_s';
upload_pulse = 'dnp_decay_dbz_fid_4chan';




%% Just an example with the Tabor AWG simulator
% awgctrl('default except offsets')
plsdata.awg.inst.send_cmd(':OUTP:COUP:ALL HV');
args = tunedata.run{1}.(upload_pulse).opts(1).scan.configfn(4).args;
args{end}.window_mapping.A = py.None;
args{end}.window_mapping.B = py.None;
args{end}.window_mapping.DBZFID_A = py.None;
args{end}.window_mapping.DBZFID_B = py.None;
args{end}.operations = {};
feval(args{2:end});

%% reset AWG
awgctrl('default except offsets');

%% check out sequ table wait_4chan
entries = qc.get_sequence_table('wait_4chan', false)
entries{1}{end}
entries{1}{end-1}
entries{1}{end-2}
entries{1}{end-5}


%% check seq table j_fid_4chan
entries = qc.get_sequence_table('j_fid_4chan', false)
entries{1}{end}
entries{1}{end-1}
entries{1}{end-2}
entries{1}{end-5}

%%
entries = qc.get_sequence_table('wait_4chan', true)
disp(entries{1}{1});
disp(entries{2}{1});
% disp(entries{3}{1});
6 changes: 4 additions & 2 deletions MATLAB/+qc/qctoolkitTestSetup.m
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@
info = dir(fullfile(tunePath, 'smdata_recent.mat'));
fprintf('Loaded smdata from %s\n', datestr(info.datenum));
try
% copyfile(fullfile(loadPath, 'tunedata_recent.mat'), fullfile(tunePath, 'tunedata_recent.mat'));
copyfile(fullfile(loadPath, 'tunedata_2018_06_25_21_08.mat'), fullfile(tunePath, 'tunedata_recent.mat'));
copyfile(fullfile(loadPath, 'tunedata_recent.mat'), fullfile(tunePath, 'tunedata_recent.mat'));
% copyfile(fullfile(loadPath, 'tunedata_2018_06_25_21_08.mat'), fullfile(tunePath, 'tunedata_recent.mat'));
catch err
warning(err.getReport());
end
Expand Down Expand Up @@ -86,5 +86,7 @@
% Tune
tunedata.run{tunedata.runIndex}.opts.path = tunePath;


import tune.tune
disp('done');
% -------------------------------------------------------------------------

0 comments on commit bccc803

Please sign in to comment.