GpSetEventDet

image\BLTLRGSQ.gifBoards that Support the Function image\SETUP.gif image\SANBTN.gif

 

 

image\head10.gif Operation              An event is generation according to receiving of DET(Trigger).In order to make an event generation in fact,execute of GpSetEvent function is necessary.

 

image\head10.gif Format                   

(VB.NET)

Dim hWnd As Integer

Dim wMsg As Short

Dim DetOn, Ret As Integer

Ret = GpSetEventDet(hWnd, wMsg, DetOn)

 

(C)

HANDLE hWnd;

WORD wMsg;

DWORD DetOn, Ret;

Ret = GpSetEventDet(hWnd, wMsg, DetOn);

 

(C#)

int hWnd;

ushort wMsg;

uint DetOn, Ret;

Ret = gpib.SetEventDet(hWnd, wMsg, DetOn);

 

(Python)

hWnd = ctypes.wintypes.HANDLE()

wMsg = ctypes.c_ushort()

DetOn, Ret = ctypes.c_ulong(), ctypes.c_ulong()

Ret.value = GpibPy.GpSetEventDet(hWnd, wMsg, DetOn)

 

image\head10.gif Mode                     Slave mode

 

image\head10.gif Parameter              hWnd       :  Specify the handle of the receiver of the conversion complete event message

wMsg        : The discrimination message number(A discrimination message number of user designation) which is used by generation event message is designated.

Designation range : 400H to 7FFFH

DetOn       : Designation of the event generation at the time when DET(Trigger) 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.)

 

image\head10.gif Notes                    1.When DET was received, this function appoints whether generation an event. In order generation an event in fact, execute of GpSetEvent function is necessary. Moreover, in order to make following event generation, execute of 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. 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 (GpSetEventSrq function, GpSetEventDec function) please duplicate with the value which was set up in other event setting function.