04-14-2010 08:37 AM
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
04-15-2010 11:49 PM
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?
04-20-2010 05:09 AM
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
04-21-2010 10:28 AM
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.
04-22-2010 10:43 AM
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:
04-26-2010 12:32 AM
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?