solved the issue of discontinuity in transmission
parent
9699ec7aa2
commit
4632fb1a4d
|
@ -213,16 +213,16 @@ classdef iio_sys_obj < matlab.System & matlab.system.mixin.Propagates ...
|
||||||
return;
|
return;
|
||||||
end
|
end
|
||||||
|
|
||||||
|
% Implement the data transmit flow
|
||||||
|
writeData(obj.libiio_data_in_dev, varargin);
|
||||||
|
|
||||||
% Implement the data capture flow
|
% Implement the data capture flow
|
||||||
[~, data] = readData(obj.libiio_data_out_dev);
|
[~, data] = readData(obj.libiio_data_out_dev);
|
||||||
for i = 1 : obj.out_ch_no
|
for i = 1 : obj.out_ch_no
|
||||||
varargout{i} = data{i};
|
varargout{i} = data{i};
|
||||||
end
|
end
|
||||||
|
|
||||||
% Implement the data transmit flow
|
% Implement the parameters monitoring flow
|
||||||
writeData(obj.libiio_data_in_dev, varargin);
|
|
||||||
|
|
||||||
% Implement the parameters monitoring flow
|
|
||||||
for i = 1 : length(obj.iio_dev_cfg.mon_ch)
|
for i = 1 : length(obj.iio_dev_cfg.mon_ch)
|
||||||
[~, val] = readAttributeDouble(obj.libiio_ctrl_dev, obj.iio_dev_cfg.mon_ch(i).port_attr);
|
[~, val] = readAttributeDouble(obj.libiio_ctrl_dev, obj.iio_dev_cfg.mon_ch(i).port_attr);
|
||||||
varargout{obj.out_ch_no + i} = val;
|
varargout{obj.out_ch_no + i} = val;
|
||||||
|
|
Loading…
Reference in New Issue