LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

VI_ERROR_NSUP_MECH on PXI viEnableEvent

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.
0 Kudos
Message 1 of 2
(2,902 Views)
Anyone know if this is a bug or a feature?
0 Kudos
Message 2 of 2
(2,874 Views)