Simulink Variable

Simulink Variable: = { “y-meter:y”: “%x”, “y-meter:y”: “%p”, “y-meter:y”: “%r”, “y-meter:y”: “%r “; } These are very different values to other parameter values. To find out what the x parameter value is. Input variable. Sample: { “y-meter”: 45 } Results are as follows: %{ “y-meter”: 50 } %{ “y-meter”: 60 } %{ “y-meter”: 70 } %{ “y-meter”: 80 } %{ “y-meter”: 100 } %{ “y-meter”: 200 } %{ “y-meter”: 300 } %{ “y-meter”: 350 } %{ “y-meter”: 350 } %{ “y-meter”: 400 } %{ “y-meter”: 600 } %{ “y-meter”: 800 } Notes for Variables The variable can be used instead of the parameter. For example fx:=x { “y”: 100 } Will cause the x parameter to be used as the number provided on the y-meter. f-n1:=foo { “foo1”: 1, “foo2”: 2 } Will cause the input variable to only be used if there are more parameters. f-x1-f1:=foo1 { “foo1”: 1, “foo2”: 2 } Will cause the input variable to only be used if the x parameter has a y parameter. f-y1-f1:=foo2 { “foo2”: 1, “foo3”: 2 } Will cause the input variable to only be used if there are at least 3 parameters. f-3-f