%% Create Object and Set a Property
% You can create the object using a name-value pair to set the properties such as |Timeout|. The |Timeout| property specifies the maximum time in seconds to wait for a response from the MODBUS server, and the default is |10|. You can change the value either during object creation or after you create the object. 
%
% For the list and description of properties you can set for both transport types, see "Configure Properties for MODBUS Communication."
%
% Create a MODBUS object using Serial RTU, but increase the |Timeout| to |20| seconds.

m = modbus('serialrtu','COM3','Timeout',20)
%%
% The object output reflects the |Timeout| property change. 


%% 
% Copyright 2012 The MathWorks, Inc.