GetTestPin Procedure

Returns the Pin name of the current Test.

Syntax

[ sPin = ] GetTestPin ( )

The GetTestPin procedure syntax has the following parts:

 

Name

Type

Description

sPin

BString

Test pin name

Comments

The name is defined in the Task/Test Property page.

Example

The following example switches a Relay Driver and takes a measurement from a DMM according to the Test Pin name.

MeasureTest()

{

Switch Relay AllOff

sPin=GetTestPin()

If Mid(sPin, 0, 2)="P-"

Switch Relay On (101)

Else

Switch Relay On (103)

Endif

Measure DMM (TestResult)

}

See Also

GetTestType, GetTestUnit