Click or drag to resize
Acceleration data type
Print this page

The data type Acceleration represents an acceleration measurement.

The TDE data types for quantifiable data (numeric values with units of measure) are all stored as double and are handled similarly for Template scripting.

Tip Tip

Since every quantifiable data type is stored as double, be sure to account for that when you test equivalency (for example, 1 may actually be stored as 0.999999). Either round off the values being compared, or use ranges for the comparison.

Units
  • MetersPerSecondSquared or m/(s^2) — default

  • KilometersPerHourPerSecond or kmh/s

  • StandardGravity or g

  • FeetPerSecondSquared or ft/(s^2)

  • MilesPerHourPerSecond or mph/s

Data from TDE defaults to the first unit listed for each data type. In the [Output] section, you can convert these values to the units you need:

[Output]
MaxDeceleration(mph/s) = input.MaxDecel   # converts m/(s^2) data to mph/s
Field length

The effective range of this data type is: 0 to 100 m/(s^2)

JavaScript conversion

When you use the optional [Script] section to insert your own JavaScript functions, access this data type as follows:

Constructor
JavaScript
new Acceleration({Unit:Value})
Available fields for (get,set)

You can access the valid units of measure as fields:

  • .MetersPerSecondSquared

  • .KilometersPerHourPerSecond

  • .StandardGravity

  • .FeetPerSecondSquared

  • .MilesPerHourPerSecond