Skip to content

Commit

Permalink
Remove uri setting and overwrite
Browse files Browse the repository at this point in the history
Signed-off-by: Julia Pineda <[email protected]>
  • Loading branch information
jpineda3 committed Oct 23, 2023
1 parent 366160e commit 373b798
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 22 deletions.
19 changes: 0 additions & 19 deletions +adi/+AD463x/Base.m
Original file line number Diff line number Diff line change
Expand Up @@ -61,25 +61,6 @@
obj.EnabledChannels = 1;
obj.BufferTypeConversionEnable = true;

% Check if uri has been specified, else throw an error
uriFound = 0;
for i = 1:length(varargin)
if isequal(varargin{i}, 'uri')
if i == length(varargin)
break
else
uriArgIndex = find(contains([varargin{:}], 'uri'));
obj.uri = varargin{uriArgIndex + 1};
uriFound = 1;
end
end
end
if uriFound == 0
error("Error. \nUri was not supplied. Supply it in the" + ...
" following manner \n %s", ...
"adi.ADXXXX.Rx('uri', <insert uri>)");
end

% Connects to device temporarily and fetches the channel names
obj.setup();
release(obj);
Expand Down
1 change: 0 additions & 1 deletion +adi/+AD7380/Rx.m
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@
obj.enableExplicitPolling = false;
obj.EnabledChannels = 1;
obj.BufferTypeConversionEnable = true;
obj.uri = 'ip:analog.local';
end

function flush(obj)
Expand Down
1 change: 0 additions & 1 deletion +adi/+AD7768/Rx.m
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@
obj.enableExplicitPolling = false;
obj.EnabledChannels = 1;
obj.BufferTypeConversionEnable = true;
obj.uri = 'ip:analog.local';
end

function flush(obj)
Expand Down
1 change: 0 additions & 1 deletion +adi/+AD7768_1/Rx.m
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,6 @@
obj.enableExplicitPolling = false;
obj.EnabledChannels = 1;
obj.BufferTypeConversionEnable = true;
obj.uri = 'ip:analog.local';
end

function flush(obj)
Expand Down

0 comments on commit 373b798

Please sign in to comment.