From 761259fe520ad3ab426ee91f357687484bf75d63 Mon Sep 17 00:00:00 2001 From: Brian Jackson Date: Mon, 20 Jul 2015 06:08:36 -0600 Subject: [PATCH] Made warning message wait for input --- Code/ReadCTFFile.m | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Code/ReadCTFFile.m b/Code/ReadCTFFile.m index e03a777..d0c777b 100644 --- a/Code/ReadCTFFile.m +++ b/Code/ReadCTFFile.m @@ -74,7 +74,8 @@ function ScanParamsData(FileStr, VarName) % Assumes square cropping % Formula by DTF if ~isfield(ScanParams,'PCX') || ~isfield(ScanParams,'PCY') || ~isfield(ScanParams,'VHRatio') || ~isfield(ScanParams,'DD') - warndlg({'No Pattern Center data found. PC vals set to zero.';'Run PC Calibration'},'Missing Info in .CPR file'); + w = warndlg({'No Pattern Center data found. PC vals set to zero.';'Run PC Calibration'},'Missing Info in .CPR file'); + uiwait(w) ScanParams.xstar = 0.1; ScanParams.ystar = 0.1; ScanParams.zstar = 0.1;