diff --git a/+toppe/systemspecs.m b/+toppe/systemspecs.m index ae864e1..0af4406 100644 --- a/+toppe/systemspecs.m +++ b/+toppe/systemspecs.m @@ -34,8 +34,8 @@ % The following determine the slice/echo/view indexing in the data file sys.maxSlice = 2048; % max dabslice. UI won't allow more than this to be entered -sys.maxView = 600; % not sure what limit is here -sys.maxEcho = 16; % determined empirically +sys.maxView = 600; +sys.maxEcho = 1; % actual value seems to be 16, but we won't use this dimension so only allow 1 here %% Substitute specified system values @@ -56,6 +56,12 @@ otherwise, error('Gradient coil (%s) unkown', sys.gradient); end +if sys.maxView > 2048 + error('maxView exceeds max value (2048)'); +end +if sys.maxEcho > 1 + error('maxEcho exceeds max value (1)'); +end return