*DefineDataSet()

Indicates the beginning of a data set definition block.

Syntax

*DefineDataSet(ds_def_name,arg_1, arg_2,..., arg_n)

Arguments

ds_def_name
The variable name of the data set definition.
Data type: varname
arg_1, arg_2, ..., arg_n
Arguments used by the data set definition.
Data type: user-defined

Example

*DefineDataSet(dsdef_vehpar)
 *String(model, "Model")
 *Integer(wheelbase, "Wheelbase")
 *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()

Comments

A *DefineDataSet() definition can contain various data type elements, such as a *String() and *Real(). The number and type of arguments depends on the complexity of the data set. Multiple data sets can be created using the same data set definition. Every *DefineDataSet() statement requires an ending *EndDefine() statement.