*Integer()

Creates an integer entity.

Syntax

*Integer(integer_name,"integer_label",edit_option)

Arguments

integer_name
The variable name of the integer entity.
Data type: varname
integer_label
The descriptive label of the integer entity.
Data type: label
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
Data type: keyword

Example

*DefineDataSet(dsdef_vehpar)
 *String(model, "Model")
*Integer(wheelbase, "Wheelbase", EDIT)
 *Real(spr_mass_cg_hgt, "Sprung Mass CG Height")
 *Real(frnt_spr_mass, "Front Sprung Mass")
 *Real(rear_spr_mass, "Rear Sprung Mass")
*EndDefine()
*DataSet(ds_vehpar, "Vehicle Parameters", 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

*BeginMdl()

*DefineAnalysis()

*DefineDataSet()

*DefineSystem()

*DefineTable()

Properties

Table 1.
Property Returns Data Type Description
label string The descriptive label of the integer entity.
state boolean Control state (TRUE or FALSE).
value integer The value of the integer entity.
varname string The variable name of the integer entity.

Comments

Integer entities may be created in dataset or table record definitions.

Variables created in *Integer() statements are assigned values in *SetInteger() statements.

When *Integer() statements are used in a *DefineSystem(), *DefineAnalysis(), or *BeginMDL() block, the integer entity is created inside an implicitly created dataset with variable name "Ds_Variable". These integer entities are then accessed from this dataset variable name when needed, for example,
*DefineSystem(def_sys ) 
  *Integer(int_name, "int variable", EDIT) 
  *SetInteger(Ds_Variable.int_name, 100)
*EndDefine()