Returns the run-time value of a plant input.
Format
PINVAL (Plant Input Name, Element Number)
Arguments
Plant Input Name | Name of the plant input to reference. |
Element Number | The element number in the list of inputs for the given plant input name. |
Example
model_1.PIN corresponds to a definition of a plant input list. This plant input list contains three input variables, defined as follows:
(model_1.VAR_1, model_1.VAR_2, model_1.VAR_3)
where:
■model_1.VAR_1 = "sin(TIME)"
■model_1.VAR_2 = "2"
■model_1.VAR_3 = "5"
Then PINVAL(model_1.PIN, 3) is equal to 5 at all times in the simulation.