08-08-2023 05:22 AM
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 ?
Solved! Go to Solution.
08-13-2023 04:08 AM
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.