Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

viEnableEvent using VI_EVENT_CLEAR

Solved!
Go to solution

Hello,

 

I am using the C/C++ visa API.

 

I am using the following function:

viEnableEvent(ViSession, VI_EVENT_CLEAR, VI_QUEUE, VI_NULL), and this returns VI_ERROR_INV_EVENT (Specified event type is not supported by the resource.).

 

Does this mean that I can't use the function viClear ?

Because I am getting error VI_ERROR_SYSTEM_ERROR when I am using viClear, even if I use the NI-MAX GUI.

 

NB: I am new to this forum, is this the good place to ask this kind of question ?

0 Kudos
Message 1 of 2
(778 Views)
Solution
Accepted by topic author tonymerguez

You still should be able to call viClear() from your application which will cause the resource specific clear operation to be issued to the device. The resource simply doesn’t support generating events for when that operation occurs, that your application can either read from the event queue or receive as callback.

Rolf Kalbermatter  My Blog
DEMO, Electronic and Mechanical Support department, room 36.LB00.390
0 Kudos
Message 2 of 2
(730 Views)