Skip to content

Commit

Permalink
Offset time vector by 12us (time to start segment)
Browse files Browse the repository at this point in the history
On branch develop
	modified:   plotseq.m
  • Loading branch information
jfnielsen committed Oct 20, 2023
1 parent 9708f46 commit cab89fb
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion +toppe/plotseq.m
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@
arg.gmax = []; % Gauss/cm
arg.rhomax = []; % Gauss
arg.printTime = false;
arg.segmentStart = 12; % earliest start time for gradient events inside segment

arg = toppe.utils.vararg_pair(arg, varargin);

Expand Down Expand Up @@ -145,7 +146,7 @@

% find blocks containing start and stop times
n = 1;
t = 0; % time counter (us)
t = 0; % time counter (us). Earliest start time is 16us.
dur = [];
while t <= tic
if n == size(loop,1)-1
Expand Down Expand Up @@ -215,6 +216,9 @@

rf = rho.*exp(1i*th);

%% Add segment start time for plotting
T = T + arg.segmentStart;

%% plot
if arg.doDisplay
T = T*1e-3; % ms
Expand Down

0 comments on commit cab89fb

Please sign in to comment.