Function
Retrieves response line of parallel poll of partner apparatus.
Format
Ret = GpibGetPPoll ( Id, AddrArray, DataLineArray, PolarityArray )
Parameter
Id [ VB.NET: Short ][ C, C++: short ][ C#: short ]
Whichever it specifies, operation does not change.
AddrArray [ VB.NET: Short() ][ C, C++: short * ][ C#: ref short[] ]
Retrieves addresses of slave devices to be Parallel Polled by array.
0 to 30 |
Address of slave device |
-1 |
Not being set |
(Retrieves secondary address from the value of OR with high-order bits of primary address)
DataLineArray [ VB.NET: Short() ][ C, C++: short * ][ C#: ref short[] ]
Retrieves DIO response line of corresponding device.
1 to 8 |
DIO line number |
-1 |
Not being set |
PolarityArray [ VB.NET: Short() ][ C, C++: short * ][ C#: ref short[] ]
Retrieves corresponding polarity of the device.
0 |
Out of phase |
1 |
Inphase |
-1 |
Not being set |
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 |
12312 |
Pointer to AddrArray is NULL |
12313 |
Pointer to DataLineArray is NULL |
12314 |
Pointer to PolarityArray is NULL |
22323 |
When device is used as slave (non-controller), functions for master (controller) are execute |
Initial Value
AddrArray[0] |
-1 |
Not being set |
DataLineArray[0] |
-1 |
Not being set |
PolarityArray [0] |
-1 |
Not being set |
Remarks
Example
Retrieves current setting.
C |
short AddrArray[9], DataLineArray[9], PolarityArray[9]; Ret = GpibGetPPoll ( Id, AddrArray, DataLineArray, PolarityArray ); |
See Also
GpibSetPPoll, GpibPPoll, GpibResetPPoll