I am having a problem enabling Queue and callback event at the same time on PXI instruments.
For example, after installing my callback, if I execute
retVal = viEnableEvent(vi,VI_EVENT_PXI_INTR,VI_HNDLR,VI_NULL);
retVal = viEnableEvent(vi,VI_EVENT_PXI_INTR,VI_QUEUE,VI_NULL);
the second (but not the first) retVal is failure (VI_ERROR_NSUP_MECH)
or
retVal = viEnableEvent(vi,VI_EVENT_PXI_INTR,VI_QUEUE,VI_NULL);
retVal = viEnableEvent(vi,VI_EVENT_PXI_INTR,VI_HNDLR,VI_NULL);
the second retVal is also failure
or
retVal = viEnableEvent(vi,VI_EVENT_PXI_INTR,VI_QUEUE|VI_HNDLR,VI_NULL);
the retVal is failure.
The documentation suggests what I should be able to enable both types of event handling.