beautypg.com

Arrayvalueatindex, Compliance – MTS Multipurpose Elite User Manual

Page 217

background image

Syntax

NewArray(Size, DefaultValue)

Parameters

Size - The size of the new array.

DefaultValue - The default value that will populate every index within the array.

Unit Class

N/A

Example

NewArray(5, 3)

ArrayValueAtIndex

The ArrayValueAtIndex function is used to return the value of an array at a specified index.

Returns

The value of an array at a specified index.

Syntax

ArrayValueAtIndex(Array, Index)

Parameters

Array - The name of the array you want to retrieve the index from.

Index - The index that you want to return from the array. Keep in mind that all arrays begin at index 0. So,
the first value in the array is at index 0, the second value is at index 1, and so on.

Unit Class

Integer

Example

ArrayValueAtIndex(MyArray, 10)

Compliance

The Compliance function is used to minimize the effects of frame deflections under high force.

Returns

The amount of the extension that needs to be compensated.

Syntax

Compliance(ForceArray, ComplianceCoefficients)

MTS TestSuite | 217

Working with Variables