GpibResetPPoll


Function

Sets response line of parallel poll of partner apparatus.

Format

Ret = GpibResetPPoll (  Id, AddrArray )

Parameter

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

Specifies DevID or EqpID.

Whichever it specifies, operation does not change.

 

AddrArray [ VB.NET: Short() ][ C, C++: short * ][ C#: short[] ]

Sets addresses of slave devices to be Parallel Polled by array. (Max. 31 devices)

 

0 to 30

Address of slave device

-1

Must be used at last of array

(Performs OR operation of the value from 96 to 126(60H to 7EH ) and high-order bits of primary address when secondary address is being used)

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

12352

The element of AddrArray is being set out of range, or the number of elements are more than 32

12362

Pointer to AddrArray is NULL

22373

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

Initial Value

None

Remarks

 

Example

Releases settings of devices with primary address of 1, 2, 3 and 4 respectively.

C

short AddrArray[9];

AddrArray[0] = 1;

AddrArray[1] = 2;

AddrArray[2] = 3;

AddrArray[3] = 4;

AddrArray[4] = -1;

Ret = GpibResetPPoll ( Id, AddrArray );

Releases settings of devices. The first has primary address 1 and secondary address 96(60H), the second has primary address 2 and secondary address 126(7EH), the third has primary address 3 and secondary 96(60H), and the fourth has primary address 4 and secondary address 126(7EH).

C

short AddrArray[9];

AddrArray[0] = 1 + 0x6000;

AddrArray[1] = 2 + 0x7e00;

AddrArray[2] = 3 + 0x6000;

AddrArray[3] = 4 + 0x7e00;

AddrArray[4] = -1;

Ret = GpibResetPPoll ( Id, AddrArray );

See Also

GpibSetPPoll, GpibGetPPoll, GpibPPoll