LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

VISA Enable Event error

Hi

 

I am using FPGA board with PCI express interface (Avnet Virtex-5 LXT/SXT PCI Express Board) and it is working OK and I can read and write using VISA functions.

when I try to activate the interrupt event by using "VISA Enable Event" with event type "PXI Interrupt"; I got the error message "VISA:  (Hex 0xBFFF0083) Invalid length specified"

what is that error and how I can solve this problem

 

Amr Hendy

0 Kudos
Message 1 of 6
(3,572 Views)

Hi Amr,

 

Do you get this error when you select any type of event type?  Have you used the VISA resource name in other locations other than this one without any problem?  What else have you wired to this VI?

Jared S.
Applications Engineering
National Instruments
0 Kudos
Message 2 of 6
(3,545 Views)

Hi Jard,

 

Thanks a lot for replay.

 

The event type I used is "PXI Interrupt"

Actually this VI is used to transfer a data from the FPGA board using DMA. It is working well when using polling to check the end of DMA transfer.

but when I tried using interrupt I got that message.

Attached please find my VI.

 

Thank you very much for help.

Amr Hendy

 

0 Kudos
Message 3 of 6
(3,521 Views)

Hi Amr Hendy,

 

Does this code work when you select the Disabled structure?  Or is there another version that was working?  If you could post that one, that would be great.  Also, in general, it's good practice to pass error wires from VI to VI. 

Jared S.
Applications Engineering
National Instruments
0 Kudos
Message 4 of 6
(3,500 Views)

Hi Jared,

Thank you for the advice.

 

Attached please find another version that working with polling (constant "UseInterrupt" is False) and does work with interrupt (constant "UseInterrupt" is True) and I got the error message:

 

ErrorMessage.JPG

 

 

0 Kudos
Message 5 of 6
(3,476 Views)

Hi Amr Hendy,

 

What version of LabVIEW and NI-VISA are you using? Also, are you sure that this device supports PXI interrupts? If it does, is there some kind of configuration file that you might need to modify to add support for this behavior? 

Jared S.
Applications Engineering
National Instruments
0 Kudos
Message 6 of 6
(3,443 Views)