Returns or sets the driver interface type.
Object.InterfaceType = [ enInterfaceType ]
The InterfaceType property syntax has the following parts:
Name |
Type |
Description |
Object |
ADriver |
ADriver object |
enInterfaceType |
enumAInterfaceType |
An integer specifying the type of interface controlled by the driver. |
enumAInterfaceType can be one of the following:
Name |
Value |
Description |
aioNone |
0 |
None |
aioGpib |
1 |
Gpib |
aioCom |
2 |
Com |
aVxi |
3 |
Vxi |
aFile |
4 |
File |
aIsa |
5 |
Isa |
aioWinSock |
6 |
Winsock |
aioUsb |
7 |
USB (v7.0) |
The following example illustrates the use of the InterfaceType property in the OnInterface event of a driver that supports the Com and Gpib interfaces:
drv1.OnInterface()
{
select Driver.InterfaceType
case aioCom
! ... Com interface initialization code ...
print "The Com interface for driver "; Driver.Name; " has been initialized."
case aioGpib
! ... Gpib interface initialization code ...
print "The Gpib interface for driver "; Driver.Name; " has been initialized."
case else
error 999, "Driver "+Driver.Name+" doesn't support interface type "+Str(Driver.InterfaceType)
endselect
}