GpibPPoll


Function

Performs parallel poll.

Format

Ret = GpibPPoll (  DevId, Ppr )

Parameter

Id [ VB.NET: Short ][ C, C++: short ][ C#: short ]

Specifies DevID or EqpID.

Whichever it specifies, operation does not change.

 

Ppr [ VB.NET: Short ][ C, C++: short * ][ C#: out short ]

Retrieves DIO line status.

 

0 to 255

DIO line status

Return Value

Ret [ VB.NET: Integer ][ C, C++: long ][ C#: int ]

 

0

Normality completion

10001

Invalid ID was specified

10002

Driver can not be called

12212

Pointer to Ppr is NULL

22223

When device is used as slave (non-controller),  functions for master (controller) are execute

22242

Terminates by forcible termination key

22244

Timeout

22245

No connected device (GPIB error)

The others (See also: Details of Error Code)

Initial Value

None

Remarks

The value of parallel poll can not be retrieved without setting partner apparatus by GpibSetPPoll.

Example

Performs parallel poll and displays it.

C

short Ppr;

Ret = GpibPPoll ( DevId, &Ppr);

if ( Ret == 0) Printf ("%d \n", Ppr);

See Also

GpibSetPPoll, GpibResetPPoll