Returns the units of measurement used with the current Test.
[ sUnits = ] GetTestUnit ( )
The GetTestUnit procedure syntax has the following parts:
Name |
Type |
Description |
sUnits |
BString |
Test units |
GetTestUnit returns a string containing the units of measurement of the current Test as defined in the Task/Test Property page.
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
}