variable restore
Allows you to reset the contents of the Adams View variable to the original value assigned when the Adams View variable was created or the last variable value saved.
An Adams View variable is analogous to a variable in a programming language. It represents a typed storage location that can contain data (e.g. real numbers, integer numbers, text strings, etc.).
Format:
variable restore |
Variable_name = | model_name.var_name |
Example:
variable modify
variable_name = VAR1 integer_value = 15
variable modify
variable_name = VAR1 integer_value = 16
variable save
variable_name = VAR1
variable modify
variable_name = VAR1 integer_value = 17
variable restore
variable_name = VAR1
In the above example, we have modified the value of variable VAR1 to take the values 15,16 and 17. However since we have only saved the variable when it had value 16, now when we restore the variable using the variable restore command above, VAR1 will contain the value 16.
Description:
Parameter | Value Type | Description |
|---|
Variable_name | String | Specifies an existing Adams View variable. You may identify an Adams View variable by typing its name. |
Extended Definition:
1. You may identify an Adams View variable by typing its name. If the default model contains any variable you may identify them by entering the Adams View variable name only. You must enter the full name of the variable if its not contained in the default model. For example, if the default model is “pendulum”, you must identify the variable “friction_coeff” in the model “fourbar” by entering “.fourbar.friction_coeff”. You must separate multiple Adams View variable names by commas.
Cautions:
1. Adams View variables are not the same as ADAMS variables accessed with the command DATA_ELEMENT CREATE VARIABLE.