MATLAB: Error while Using USB 6001 with Simulink 2017a

data acquisitionMATLABsimulink

Hi All,
I am using NI USB 6001 with Matlab 2017a with DAQmx 16.0. I have created a simple simulink block (see attached) to test my daq device and I am getting while setting up block and sample rate. If I select "Input sample rate to be : 1000( or anything more then 200 and black size to be 200 I get following error:
Error in port widths or dimensions. Output port 1 of 'block_2017a/Analog Input' is a [200x1] matrix.
Component:Simulink | Category:Model error
Error in port widths or dimensions. Input port 1 of 'block_2017a/Selector' has 2 elements. This port does not accept the dimensions (or orientation) specified by the input signal.
Where as if I select Input sample rate to be 200 and block size to be 2 I dont get any error. I dont get it USB 6001 can accept up to 20KS/s thenwhy its giving error. Is there something wrong with the input settings of the Analog input .
Please let me know how can I troubleshoot this problem.

Best Answer

Thank you setting block size was the problem I was having with the error.