Boards
that Support the Function
Operation Create
event message by receiving SRQ. GpSrqEventEx
added. Use that function.
Format
(VB.NET)
Dim hWnd As Integer
Dim wMsg As Short
Dim SrqOn, Ret As Integer
Ret = GpSrqEvent(hWnd, wMsg, SrqOn)
(C)
HANDLE hWnd;
WORD wMsg;
DWORD SrqOn, Ret;
Ret = GpSrqEvent(hWnd, wMsg, SrqOn);
(C#)
int hWnd;
ushort wMsg;
uint SrqOn, Ret;
Ret = gpib.SrqEvent(hWnd, wMsg, SrqOn);
(Python)
hWnd = ctypes.wintypes.HANDLE()
wMsg = ctypes.c_short()
SrqOn, Ret = ctypes.c_ulong(), ctypes.c_ulong()
Ret.value = GpibPy.GpSrqEvent(hWnd, wMsg, SrqOn)
Mode
Master
mode
Parameters hWnd
: Specify the handle
of the receiver of the conversion complete event message
wMsg : Specify the message ID number for the conversion complete event message (user-specified message ID number)
Range : 400H to 7FFFH
SrqOn : Specify create event or not
0 : Not create event
1 : Create event
Ret : Return value
0 : Normal completion
80 : GpIni() hasn't execute
140 : Asynchronous function is executing now
200 : Thread creation error
255 : Parameter error
(See "Return Values" for details.)
Notes
1) This
function create event message by receiving SRQ. It is effective until
re-execute GpSrqEvent by SrqOn = 0 or execute GpExit. It is necessary
to clear
slave side's SRQ (GpPoll, GpListen and so on), to receive the next
event message.
2) Another API-TOOL also use event message ID, which are specified as follows:
SIO : 410H to 42FH
GPIB : 430H to 44FH
AIO : 450H to 46FH
DIO : 470H to 48FH
SMC : 490H to 4AFH
CNT : 4B0H to 4CFH
When using GP-IB, the following are recommended: 430H to 44FH.
3) Refer to the Multimeter example.