function onHardwareDeselect(hCS)
%ONHARDWAREDESELECT Hook point on target selection

% Copyright 2020 The MathWorks, Inc.

% enabling it ,followed by setting PositivePriorityOrder
% to off.
% If the property is already disabled then we are
hCS.setPropEnabled('PositivePriorityOrder',true);
set_param(hCS,'PositivePriorityOrder','off');

% Disable multi tasking for the hardware target, by setting it to simulink default
% value.
set_param(hCS, 'EnableMultiTasking','off');

end