GpSetEvent

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

 

 

image\head10.gif Operation               An event is generation by SRQ and the other.It can't be used GpSrqEventEx function and GpSrqEvent function simultaneous.The setting of event contents which is made generation in fact it is performed in pSetEventSrq function,GpSetEventDet function,GpSetEventDec function.

 

image\head10.gif Format                   

(VB.NET)

Dim EventOn, Ret As Integer

Ret = GpSetEvent(EventOn)

 

(C)

DWORD EventOn, Ret;

Ret = GpSetEvent(EventOn);

 

(C#)

uint EventOn, Ret;

Ret = gpib.SetEvent(EventOn);

 

(Python)

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

Ret.value = GpibPy.GpSetEvent(EventOn)

 

image\head10.gif Mode                     Master mode / Slave mode

 

image\head10.gif Parameters

EventOn : Designation of event generation

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

200   : Cannot create new thread

255   : Parameter error

(See "Return Values" for details.)

 

image\head10.gif Notes

1.When SRQ(Case of Mastermode) or Trigger(Case of Slavemode) is receiving, this function makes an event generation.
If they execute at once, till they re-execute by EventOn = 0 or GpExit function, it is available.
After an event was received, in order to receive following event, they need to execute GpEnableNextEvent function as the end of a routine.

 

2.Generation of an event is held in GpSetEventSrq function, GpSetEventDet function, GpSetEventDec function.

 

3.When an event of SRQ was made generation in a master, In order to receive following event, SRQ by a slave side's needs to be missed.

In order to make following event generation, execute of GpPoll function, GpEnableNextEvent function becomes indispensable.Please be careful.

 

4.A description example is in "MltMeter folder", "Event folder" of appended samples.

 

5.A probrem of GpSetEvent is solved in this function.
Also not support movement with DOS-Prompt.