Boards that Support the Function
Operarion An event is generation according to receiving of SRQ.In order to make an event generation in fact, performance of GpSetEvent function is necessary.
Format
(VB.NET)
Dim hWnd As Integer
Dim wMsg As Short
Dim SrqOn, Ret As Integer
Ret = GpSetEventSrq(hWnd, wMsg, SrqOn)
(C)
HANDLE hWnd;
WORD wMsg;
DWORD SrqOn,Ret;
Ret = GpSetEventSrq(hWnd, wMsg, SrqOn);
(C#)
int hWnd;
ushort wMsg;
uint SrqOn, Ret;
Ret = gpib.SetEventSrq(hWnd, wMsg, SrqOn);
(Python)
hWnd = ctypes.wintypes.HANDLE()
wMsg = ctypes.c_ushort()
SrqOn, Ret = ctypes.c_ulong(), ctypes.c_ulong()
Ret.value = GpibPy.GpSetEventSrq(hWnd, wMsg, SrqOn)
Mode Master mode
Parameter hWnd : Specify the handle of the receiver of the conversion complete event message
wMsg : The discrimination message number which is used by generation event message is designated.
Designation possible range : 400H to 7FFFH
SrqOn : Designation of the event generation at the time when SRQ was received.
0 : Event is not generation.
1 : Event is generation
Ret : End information(Return value)
0 : Normal completion
80 : GpIni() hasn't execute
140 : Asynchronous function is executing now
255 : Parameter error
(See "Return Values" for details.)
Notes 1.When SRQ was received, this function appoints whether generation an event.In order generation an event in fact, execute of GpSetEvent function is necessary.Moreover, when an event of SRQ was made generation, in order to receive following event, SRQ by a slave needs to be missed at once.In order to make following event generation, performance of GpPoll function and GpEnableNextEvent function becomes indispensable.Please be careful.
2.By API-TOOL,even each series use this message.A using message number has been set up 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
It is recommended by GPIB to use a value of 430H to 44FH.
3.Do not make a message number(GpSetEventDet function, GpSetEventDec function) please duplicate with the value which was set up in other event setting function.