MATLAB Answers

0

Change the value of a constant block through script

Asked by Bardia Alavi on 22 Jan 2019
Latest activity Answered by Bardia Alavi on 23 Jan 2019
How do I set the value of a constant block through set_param script or similar?
I have a constant block and the constant value is a parameter (e.g. input_mult), I want to assign a value of 10 to this in my script.
I try the following command but I receive the error message that input_multiplier is not a parameter of this block:
set_param('speed_monitor_test/Constant', 'input_multiplier', '10');

  0 Comments

Sign in to comment.

1 Answer

Answer by Bardia Alavi on 23 Jan 2019
 Accepted Answer

I found the answe myself, thank to myself:
set_param('speed_monitor_test/Constant', 'Value', '10');

  0 Comments

Sign in to comment.