GpibPPollC Procedure

Configures a GPIB device to respond to parallel polling.

Syntax

lStatus = ] GpibPPollC ( lDevice, lDataLine, lSense )

The GpibPPollC procedure syntax has the following parts:

 

Name

Type

Description

lStatus

Long

Status

lDevice

Val Long

Device address

lDataLine

Val Long

Parallel poll configure response line 1-8

lSense

Val Long

Data sense: 0 or 1

Comments

This function configures the specified device to respond to parallel polling according to the DataLine and the Sense.

This function accepts a Long integer containing the GPIB device number (lDevice), a Long integer containing the data line number on which the device is to respond (lDataLine may be 1 through 8), and the response to the condition under which the device is to assert or un-assert the specified data line (lSense may be 0 or 1).

The hexadecimal format of lDevice is as follows:

lDevice = 0xBBPPSS

Where:

 

BB

Board address (1 - 9)

PP

Device Primary address (0 - 31) - 0 if not used (bus address), 31 used for Primary address of 0

SS

Device Secondary address (0 - 31) - 0 if not used (bus address or device without Secondary address),  31 used for Secondary address of 0      

The value of lDevice may be obtained using the GetDriverAddress function.

The function returns 0 on success and -1 on failure.

Not all devices can be configured to respond to parallel polling. Devices with the built-in capability to configure themselves for parallel polling will ignore the GpibPPollC function.

Example

The following command configures the SCOPE to assert data line number 2 to '1':

GpibPPollC(GetDriverAddress("SCOPE") , 2, 1)

!...

! program statements

!...

If (GpibPPoll(GetDriverAddress("SCOPE")) & 2)=1

! do something

Endif

See Also

GpibPPoll, GpibPPollU