solved the issue of discontinuity in transmission

master
dpu1778 2014-12-19 14:05:00 -05:00
parent 9699ec7aa2
commit 4632fb1a4d
1 changed files with 6 additions and 6 deletions

View File

@ -213,15 +213,15 @@ 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
writeData(obj.libiio_data_in_dev, varargin);
% Implement the parameters monitoring flow % 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);