RunTimePID

RunTimePID

Diagram Context expand

function check_int_value (val, name)
  if floor (val) ~= val
    error (['the value of the parameter ',name,' must be an integer'], 0);
  end
end
p_value = [p_value];
p_min = [p_min];
p_max = [p_max];
p_step = [p_step];
i_value = [i_value];
i_min = [i_min];
i_max = [i_max];
i_step = [i_step];
d_value = [d_value];
d_min = [d_min];
d_max = [d_max];
d_step = [d_step];
check_int_value (p_value (1), 'Proportional/Value');
check_int_value (p_min (1), 'Proportional/Min');
check_int_value (p_max (1), 'Proportional/Max');
check_int_value (p_step (1), 'Proportional/Step');
check_int_value (i_value (1), 'Integral/Value');
check_int_value (i_min (1), 'Integral/Min');
check_int_value (i_max (1), 'Integral/Max');
check_int_value (i_step (1), 'Integral/Step');
check_int_value (d_value (1), 'Derivative/Value');
check_int_value (d_min (1), 'Derivative/Min');
check_int_value (d_max (1), 'Derivative/Max');
check_int_value (d_step (1), 'Derivative/Step');