From 80cce20678dca6cbf9392646d6cd05b1a7aad969 Mon Sep 17 00:00:00 2001
From: galperti <cristian.galperti@epfl.ch>
Date: Mon, 27 Apr 2020 14:34:25 +0200
Subject: [PATCH] new 01stddiag integrated in 1005 and 1010

ETHCAT1DATA loading temporairly disabled
---
 code/classes/SCDclass_expcode.m | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/code/classes/SCDclass_expcode.m b/code/classes/SCDclass_expcode.m
index 4731ce3..f3e1474 100644
--- a/code/classes/SCDclass_expcode.m
+++ b/code/classes/SCDclass_expcode.m
@@ -710,7 +710,11 @@ classdef SCDclass_expcode
             for ii=1:numel(obj.exportedtps)
                 simstructnamedd=sprintf('%s_tmpl',char(obj.exportedtps(ii)));
                 simstructnamews=char(obj.exportedtps(ii));
-                simstruct=dd.getEntry(simstructnamedd).getValue;
+                try
+                  simstruct=dd.getEntry(simstructnamedd).getValue;
+                catch
+                  error('expcode:buildworkspacetpstruct',['tunable params structure ' simstructnamedd ' not found']);  
+                end
                 assignstr=sprintf('%s=temp;',simstructnamews);
                 assignin('base','temp',simstruct);
                 evalin('base',assignstr);
-- 
GitLab