Digital I/O

cancel
Showing results for 
Search instead for 
Did you mean: 

error messgae "VI_EVENT_PXI_INTR" undeclared identifier

I am writing my code for the PCI-DIO24 in C. I am trying to enable interrupt. When I configure my function as "viEnableEvent (panelHandle, VI_EVENT_PXI_INTR, VI_QUEUE,VI_NULL)"; I get an error saying "VI_EVENT_PXI_INTR": undeclared identifier. I use the visa 3.01 with new patch file.
0 Kudos
Message 1 of 4
(3,249 Views)
Samy,

You may want to consider posting your question to the Driver Development Kit (DDK) Discussion Forum. Since you are using register-level programming, that forum will probably be of more use to you.

Good luck with your application.

Spencer S.
0 Kudos
Message 2 of 4
(3,249 Views)
Samy:

Since PXI is not officially part of the main VISA specification, you have to #define NIVISA_PXI before including "visa.h" to get access to those symbols.

Dan Mondrik
National Instruments
Message 3 of 4
(3,249 Views)
Thank you very much for your help.
0 Kudos
Message 4 of 4
(3,249 Views)