LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

viEnableEvent returns error

I am having problems with the call to viEnableEvent - it returns VI_ERROR_INV_SETUP. This happens from both my code and from the VISA Interactive Control App.

Since this is the first interrupt call I make, I assume the problem must be in my inf file - which was generated by the wizard thus I am at a loss. I have included the registry keys below. The only other thing that caught me eye is that in this particular machine, there are more that 16 IRQs - and this card is assigned to 17. I am not sure how common that is now, but I thought I would mention it.

Thanks.

[PXI_FIO.AddReg]
HKR,,BridgeType,1,01,00,00,00
HKR,,DeviceClass,1,72,65,73,75
HKLM,"SOFTWARE\National Instruments\Common\NI-PAL Database\NI-VXI\PCI\10B52146","HowToSquelch",0,""
HKLM,"SOFTWARE\National Instruments\Common\NI-PAL Database\NI-VXI\PCI\10B52146","IsThisMine0",0,"C32 BAR0 0x00000068 0x00200000 0x00200000;"
HKLM,"SOFTWARE\National Instruments\Common\NI-PAL Database\NI-VXI\PCI\10B52146","numIsThisMineEntries",0x00010001,1
HKLM,"SOFTWARE\National Instruments\Common\NI-PAL Database\NI-VXI\PCI\10B52146","ManufName",0,"RPA Electronics Design, LLC"
HKLM,"SOFTWARE\National Instruments\Common\NI-PAL Database\NI-VXI\PCI\10B52146","ModelName",0,"PXI FIO"
0 Kudos
Message 1 of 3
(3,177 Views)
Hi barryjw,

What instrument are you trying to enable an event for? Did you create this inf file and driver using the VISA Driver Development Wizard? You gave quite a few specifics, which is good, but we need a little bit more information about the big picture in order to adequately troubleshoot this.

john m
Applications Engineer
0 Kudos
Message 2 of 3
(3,155 Views)
John M,

This "instrument" is a PCI General Purpose Digital IO card (non NI) we developed several years ago. I am porting the driver to VISA for eventual use under your Real Time environment. The inf file was generated using the VISA driver development wizard - I apologize for abbreviating this as "the wizard" in my first post.

The PCI bridge chip is a PLX 9080. We are currently running in a standard PC ATX chassis with the plan to move to the PXI chassis when the PXI version of our card is available next month. All other driver functions on card, including bushmaster DMA read and write operations, are fully functional under VISA.

Hope this covers it.

B
0 Kudos
Message 3 of 3
(3,150 Views)