Returns the Pin name of the current Test.
[ sPin = ] GetTestPin ( )
The GetTestPin procedure syntax has the following parts:
Name |
Type |
Description |
sPin |
BString |
Test pin name |
The name is defined in the Task/Test Property page.
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)
}