From 5a9addbeb4e30b309eb764b498644b732337f965 Mon Sep 17 00:00:00 2001 From: Bryan Roessler Date: Wed, 24 Jul 2024 22:41:28 -0400 Subject: [PATCH] Begin EASYconsole.m work on server --- workflow/templates/easy/EASYconsole.m | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/workflow/templates/easy/EASYconsole.m b/workflow/templates/easy/EASYconsole.m index 29fde932..1f7cd71a 100644 --- a/workflow/templates/easy/EASYconsole.m +++ b/workflow/templates/easy/EASYconsole.m @@ -1,4 +1,7 @@ % Launch the MATLAB EASY console +% +% Updated 240724 Bryan C Roessler to improve file operations and portability +% function varargout = EASYconsole(varargin) % initialize global variables for function EASYconsole %global ExpOutmat @@ -218,7 +221,7 @@ function LoadDatFile_Callback(~, ~, ~) ExpPath=fullfile('../../',openExppath) if isfolder(fullfile(openExppath, '..','..','1')) %If Inovation Vrobot Then - if exist(fullfile(resDir,'PTmats','NImParameters.mat')) + if exist(fullfile(resDir,'PTmats','NImParameters.mat'), 'file') load(fullfile(resDir,'PTmats','NImParameters.mat')); else curDir=pwd; @@ -227,7 +230,7 @@ function LoadDatFile_Callback(~, ~, ~) cd(curDir) end else %If Epson 10Plate Scans Then> - if exist(fullfile(resDir,'PTmats','ImParameters.mat')) + if exist(fullfile(resDir,'PTmats','ImParameters.mat'), 'file') load(fullfile(resDir,'PTmats','ImParameters.mat')); else curDir=pwd;