Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Saving adc frequency offset #10

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions matlab/getdynamics.m
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
amp.gy = 0;
amp.gz = 0;
recphs = 0;
% Xiaoxi: update for adc freq offset
recfreq = 0;

if ~isempty(block.rf)
rfamp = max(abs(block.rf.signal));
Expand Down Expand Up @@ -40,7 +42,10 @@

if ~isempty(block.adc)
recphs = block.adc.phaseOffset;
% Xiaoxi: saving adc freq offset
recfreq = block.adc.freqOffset;
end

loop = [segmentID parentBlockID rfamp rfphs rffreq amp.gx amp.gy amp.gz recphs block.blockDuration];

% Xiaoxi: update for adc freq offset
% loop = [segmentID parentBlockID rfamp rfphs rffreq amp.gx amp.gy amp.gz recphs block.blockDuration];
loop = [segmentID parentBlockID rfamp rfphs rffreq amp.gx amp.gy amp.gz recphs block.blockDuration recfreq];
4 changes: 3 additions & 1 deletion matlab/seq2ceq.m
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,9 @@
ceq.nGroups = length(ceq.groups);

%% Get dynamic scan information
ceq.loop = zeros(ceq.nMax, 10);
% Xiaoxi Liu: update for adc freq offset
% ceq.loop = zeros(ceq.nMax, 10);
ceq.loop = zeros(ceq.nMax, 11);
for n = 1:ceq.nMax
b = seq.getBlock(n);
p = parentBlockIDs(n);
Expand Down