Commit 410277d6 authored by Markus Mueller-Trapet's avatar Markus Mueller-Trapet

bugfix for MATLAB backward compatibility (contains function is new)

parent 882c4ddf
......@@ -23,7 +23,7 @@ for iDevice = 1:nDevices
tmpLimit = round(niDevices(iDevice).Subsystems(iSub).RateLimit);
rateLimits(1) = max(rateLimits(1),min(tmpLimit));
rateLimits(2) = min(rateLimits(2),max(tmpLimit));
if contains(lower(niDevices(iDevice).Subsystems(iSub).SubsystemType),'input')
if ~isempty(strfind(lower(niDevices(iDevice).Subsystems(iSub).SubsystemType),'input'))
for iChannel = 1:niDevices(iDevice).Subsystems(iSub).NumberOfChannelsAvailable
inputChannelIdx = inputChannelIdx + 1;
inputChannels.mapping(inputChannelIdx) = {[iDevice,iChannel]};
......@@ -41,7 +41,7 @@ inputChannels.isActive = zeros(inputChannelIdx,1);
outputChannelIdx = 0;
for iDevice = 1:nDevices
for iSub = 1:numel(niDevices(iDevice).Subsystems)
if contains(lower(niDevices(iDevice).Subsystems(iSub).SubsystemType),'output')
if ~isempty(strfind(lower(niDevices(iDevice).Subsystems(iSub).SubsystemType),'output'))
for iChannel = 1:niDevices(iDevice).Subsystems(iSub).NumberOfChannelsAvailable
outputChannelIdx = outputChannelIdx + 1;
outputChannels.mapping(outputChannelIdx) = {[iDevice,iChannel]};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment