Adams Basic Package > Adams View > View Command Language > panel > panel set twindow_function input_value_for_plant

panel set twindow_function input_value_for_plant

The OUTPUT_VALUE_FOR_PLANT function returns the COMPONENT of a PLANT_OUTPUT you identify in the PLANT_OUTPUT_NAME parameter.
A PLANT_OUTPUT is made up of a list of VARIABLES (algebraic expressions). The COMPONENT parameter is an integer indicating the kth VARIABLE in the list. For example, if the PLANT_OUTPUT is defined by a list of ten VARIABLEs, and you list the component as 7, the OUTPUT_VALUE_FOR_PLANT function returns the value for the 7th VARIABLE in the list.

Format:

 
panel set twindow_function output_value_for_plant
plant_input_name =
existing poutput
component =
integer

Example:

 
panel set twindow_function output_value_for_plant &
plant_output_name =
poutput_01 &
component =
2
The OUTPUT_VALUE_FOR_PLANT function returns the value for the 2nd VARIABLE in the list since the component value specified is 2.

Description:

 
Parameter
Value Type
Description
Plant_output_name
Existing poutput
Specifies an existing plant_output.
Component
Integer
Specifies which VARIABLE value should be returned for the OUTPUT_VALUE_FOR_PLANT or OUTPUT_VALUE_FOR_PLANT function.

Extended Definition:

1. You may identify a plant_output by typing its name or by picking it from the screen.
Since plant_output do not have a geometric position, Adams View displays plant_output icons at or near the model origin. If the plant_output icon is not visible on the screen, you must type the name. You may also find it convenient to type the name even if the plant_output icon is displayed.
If you created the plant_output by reading an Adams data set or graphics file, the plant_output name is the letters "POU" followed by the Adams data set plant_output ID number. For example, the name of Adams POUTPUT/101 is POU101. If you created the plant_output during preprocessing, you will have given it a name at that time.
If a plant_output is owned by the default model, you may identify it by entering only its name. If it is not, you must enter its full name. To identify a plant_output under a different model, for instance, you may need to enter the model name as well. For example, you may specify plant_output 'actual_velocity' from model 'motor' by entering ".motor.actual_velocity'". If you type a "?", Adams View will list the plant_output available by default.
You must separate multiple plant_output names by commas.
If the plant_output is visible in one of your views, you may identify it by picking on any of the graphics associated with it.
You need not separate multiple plant_output picks by commas.
2. The COMPONENT is an integer indicating the kth VARIABLE in the list.
For example, A PLANT_OUTPUT is made up of a list of VARIABLES (algebraic expressions). The COMPONENT parameter for the OUTPUT_VALUE_FOR_PLANT function is an integer indicating the kth VARIABLE in the list. Therefore, if the PLANT_OUTPUT is defined by a list of ten VARIABLEs, and you request the 7th component to be returned, the OUTPUT_VALUE_FOR_PLANT function returns the value for the 7th VARIABLE in the list.