From cab89fb3425182cd39bf9ae087fda7ba0b74b516 Mon Sep 17 00:00:00 2001 From: Jon-Fredrik Nielsen Date: Fri, 20 Oct 2023 14:14:48 -0400 Subject: [PATCH] Offset time vector by 12us (time to start segment) On branch develop modified: plotseq.m --- +toppe/plotseq.m | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/+toppe/plotseq.m b/+toppe/plotseq.m index c5676a8..16bcac1 100644 --- a/+toppe/plotseq.m +++ b/+toppe/plotseq.m @@ -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); @@ -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 @@ -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