09-13-2007 05:34 PM
Bug introduced between NI-VISA 3.2 and 3.5 or later?
Hi,
I believe there is a bug in NI-VISA versions 3.5+ where when using the ‘Driver Development Wizard’ to generate a ‘Read/Compare Equals’ sequence for interrupt detection, the ‘Compare Mask’ and ‘Value to write or compare’ fields get interchanged once the driver is running (i.e. what is written under mask becomes the value and what is written under value becomes the mask).
I have ported our Firewire driver to LabWindows 7.1.1 Real-Time and NI-VISA 3.2/3.1
I have tested it on my local pc and on a PXI with Pharlaps ETS without encountering problems.
It is required to work under NI-VISA 3.5 but we have a problem with the interrupts. After a lot of testing, I found out it came from the fact that the interrupt was never received and cleared. For each interrupt, we used this kind of sequence:
Sequence 0
Read compare equal
bar0 offset 0x84
0x00220000 -> mask (we need to make sure the bit 17 is not there)
0x00200000 -> result needed
But, we could not receive the interrupt anymore. Later, we tried this:
Sequence 0
Read compare equal
bar0 offset 0x84
0x00200000 -> mask
0x00220000 -> result
Moving the mask in the result seems to work. I did not see this error reported in the forum, the knowledge base or the readme file of NI-VISA. I suppose that most users have the same value in the mask and result fields.
Here is my working inf ini file.
Note : I have also tested and found this bug in NI-VISA 4.2
09-17-2007 12:12 AM
09-17-2007 03:57 PM
09-18-2007 11:32 AM
09-18-2007 06:49 PM
Here is the NI-spy with ni-visa 3.2 and 4.2. I have also included the ini file used.
09-19-2007 04:13 PM
frank1,
Thanks, I have passed all the info to R&D and they're looking into it.
Regards,
09-25-2007 09:04 AM
frank1,
Thanks for the help; we apologize for any inconvenience this might have caused you. The bug has been fixed with id 4DKBD6JW, and will ship in NI-VISA 4.3
Regards,
09-27-2007 10:29 PM
frank1,
The bug fix included switching the mask and value back to the correct order. So if or when you upgrade to NI-VISA 4.3, you will have to change them back to work properly.
Regards