Function
Retrieves the parameter set by the GpibSetNotifySignal function.
Format
Ret = GpibGetNotifySignal ( Id, hWnd, NotifySignalMask )
Parameter
Id [ VB.NET: Short ][ C, C++: short ][ C#: short ]
Whichever it specifies, operation does not change.
hWnd [ VB.NET: Integer ][ C, C++: HANDLE * ][ C#: uint ]
Retrieves window handler.
NotifySignalMask [ VB.NET: Integer ][ C, C++: unsigned long * ][ C#: uint ]
Retrieves the value of signal mask.
Master (System Controller) :
Mask Bit Position |
Hex Value |
Explanation |
6 to 31 |
-- |
Reserved |
5 |
20 |
Detection of SRQ Receiving |
0 to 4 |
-- |
Reserved |
Slave (Non-controller) :
Mask Bit Position |
Hex Value |
Explanation |
10 to 31 |
-- |
Reserved |
9 |
200 |
Detection IFC Receiving |
8 |
100 |
Detection of serial poll ending after sending SRQ |
7 |
80 |
Detection of local lockout change |
6 |
40 |
Detection of remote/local change |
5 |
-- |
Reserved |
4 |
10 |
Detection of device trigger receiving |
3 |
8 |
Detection of device clear receiving |
2 |
4 |
Detection of data receiving |
1 |
2 |
Detection of specifying listener |
0 |
1 |
Detection of specifying talker |
Return Value
Ret [ VB.NET: Integer ][ C, C++: long ][ C#: int ]
0 |
Normality completion |
10001 |
Invalid ID was specified |
15712 |
Pointer to hWnd is NULL |
15713 |
Pointer to NotifySignalMask is NULL |
Initial Value
hWnd |
0 |
Window handler |
NotifySignalMask |
0 |
Signal mask |
Remarks
Example
Retrieves window handler and signal mask value, and displays them.
C |
HANDLE hWnd; unsigned long NotifySignalMask; Ret = GpibGetNotifySignal( Id, &hWnd, &NotifySignalMask ); if ( Ret == 0) Printf ("%x, %x \n", hWnd, NotifySignalMask ); |
See Also