*Real()
Creates a real entity.
Syntax
*Real(real_name,"real_label",edit_option)
Arguments
- real_name
- The variable name of the real entity.
- real_label
- The descriptive label of the real entity.
- edit_option
- A keyword which specifies whether or not this data member entity is editable in the MotionView graphical user interface. Valid values are: EDIT or NO_EDIT
Example
*DefineDataSet(dsdef_vehpar)
*String(model, "Model")
*Integer(wheelbase, "Wheelbase")
*Real(spr_mass_cg_hgt, "Sprung Mass CG Height", EDIT)
*Real(frnt_spr_mass, "Front Sprung Mass", NO_EDIT)
*Real(rear_spr_mass, "Rear Sprung Mass", EDIT)
*EndDefine()
*DataSet(ds_vehpar, "Vehicle Arguments", dsdef_vehpar)
*SetString(ds_vehpar.model, "Sport Utility")
*SetInteger(ds_vehpar.wheelbase, 3000)
*SetReal(ds_vehpar.spr_mass_cg_hgt, 800.0)
*SetReal(ds_vehpar.frnt_spr_mass, 800.0)
*SetReal(ds_vehpar.rear_spr_mass, 600.0)
Context
Properties
Property | Returns Data Type | Description |
---|---|---|
label | string | The descriptive label of the real entity. |
state | boolean | Control state (TRUE or FALSE). |
value | real | The value of the real entity. |
varname | string | The variable name of the real entity. |
Comments
A real entity is an entity that holds a real scalar.
Real entities may be created in dataset or table record definitions.
Variables created in *Real() statements are assigned values in *SetReal() statements.
*DefineSystem(def_sys )
*Real(real_name, "Real variable", EDIT)
*SetReal(Ds_Variable.real_name, 100)
*EndDefine()