Skip to content
Snippets Groups Projects
Commit 21b5a080 authored by Federico Felici's avatar Federico Felici
Browse files

Fix unit test problem

parent 65f7511a
No related branches found
No related tags found
No related merge requests found
...@@ -5,9 +5,19 @@ ...@@ -5,9 +5,19 @@
% and with zero data of the correct kind % and with zero data of the correct kind
% This is enough for passing a ctrl-D with from Workspace bus kind blocks % This is enough for passing a ctrl-D with from Workspace bus kind blocks
function [out] = SCDconf_createstructfrombus(dd,busname) function [out] = SCDconf_createstructfrombus(varargin)
% Create data structure matching a bus signature
% From either a datadictionary+busname or from a bus directly
% [out] = SCDconf_createstructfrombus(dd,busname)
% [out] = SCDconf_createstructfrombus(bus)
bus=dd.getEntry(busname).getValue; % get from data dictionary if nargin==1
bus = varargin{1};
else
dd = varargin{1};
busname = varargin{2};
bus=dd.getEntry(busname).getValue; % get from data dictionary
end
bussize=size(bus.Elements); bussize=size(bus.Elements);
signalssize=bussize(1); signalssize=bussize(1);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment