diff --git a/Models/BuildRefrigerator.mlx b/Models/BuildRefrigerator.mlx index 1e6fbf8..9c31581 100644 Binary files a/Models/BuildRefrigerator.mlx and b/Models/BuildRefrigerator.mlx differ diff --git a/Models/Model_Fridge.mlx b/Models/Model_Fridge.mlx index 0958649..b9656c1 100644 Binary files a/Models/Model_Fridge.mlx and b/Models/Model_Fridge.mlx differ diff --git a/SoftwareTests/PostFiles/PostBuildRefrigerator.m b/SoftwareTests/PostFiles/PostBuildRefrigerator.m index 9c97ea5..fe71d54 100644 --- a/SoftwareTests/PostFiles/PostBuildRefrigerator.m +++ b/SoftwareTests/PostFiles/PostBuildRefrigerator.m @@ -1,3 +1,5 @@ % Post-run script for BuildRefrigerator.mlx % ---- Post-run commands ----- + +delete(gcp('nocreate')) diff --git a/SoftwareTests/PreFiles/PreBuildRefrigerator.m b/SoftwareTests/PreFiles/PreBuildRefrigerator.m index fc62205..2c231e5 100644 --- a/SoftwareTests/PreFiles/PreBuildRefrigerator.m +++ b/SoftwareTests/PreFiles/PreBuildRefrigerator.m @@ -2,3 +2,19 @@ % ---- Known Issues ----- KnownIssuesID = ["physmod:common:simtypes:assert:Assertion","physmod:simscape:simtypes:assert:Assertion"]; % ---- Pre-run commands ----- + +sim = @(varargin) SimNoViewer(varargin); + +function out = SimNoViewer(varargin) +mdl = varargin{1}{1}; +p1 = get_param(mdl,"SimscapeLogOpenViewer"); +set_param(mdl, 'SimscapeLogOpenViewer', 'off') +out = sim(mdl,varargin{2:end}); +set_param(mdl,"SimscapeLogOpenViewer",p1) +end + +% sscexplore = @(x) DontOpenExplorer(x); +% +% function DontOpenExplorer(varargin) +% disp("Opening Simscape Results Explorer here...") +% end \ No newline at end of file