GetTestUnit Procedure

Returns the units of measurement used with the current Test.

Syntax

[ sUnits = ] GetTestUnit ( )

The GetTestUnit procedure syntax has the following parts:

 

Name

Type

Description

sUnits

BString

Test units

Comments

GetTestUnit returns a string containing the units of measurement of the current Test as defined in the Task/Test Property page.

Example

The following example takes a DC or a 2Wire measurement according to the current Test Unit.

OnEndTest()

{

If GetTestType( ) = 1 Then

If GetTestUnit() = "Volt"

Set DMM Procedure VDC

Else

Set DMM Procedure 2Wire

Endif

Mesure DMM (TestResult)

Endif

}

See Also

GetTestPin, GetTestType, GetTestUnit