12-08-2006 02:01 PM
I have not looked at those init VIs yet but the error is repeatable but it does not mean where it stopped is the real problem regarding to Visa issues. The GPIB buffer must be overflowed with repeating open and close visa improperly. To troubleshoot it, if you have time, try to copy at least two loops (start from outer or inner) from the diagram into a new vi and run it a few hundred times (no long time delay in between). Then increase to 3 loops based on the same program and repeat it. This way will take some time (a few hours most) but it sure will point to the real problem.
Troubleshooting with only one loop without a visa close is not exactly what you have in the program. This error ONLY occurs in more 1 loop structure either with the same instrument or not.
12-08-2006 02:24 PM - edited 12-08-2006 02:24 PM
Message Edited by REash on 12-08-2006 03:25 PM
12-08-2006 02:50 PM
12-08-2006 03:35 PM
The number of loops does matter because the visa open creates a different reference everytime. Then one loop has only one reference but two would make it different regarding to the way the GPIB port works. One thing I did not tell you was when the error happened, put a probe on the reference out of the first error in the visa chain, you should see something like "GPIB0::6::INSTR:x" or "(x)" where x is an integer, 6 is the GPIB address. This number to me indicated that the visa resourse is not closed properly and it would increase the index of the that resource until it ran out of buffer memory or the like. This was seen only at more than one loop structure.
The bottom line is there is not a good explanation of why this error happens but that is what the failing pattern seen so far from older to the latest version of labview.
12-08-2006 03:52 PM
12-08-2006 04:10 PM
12-08-2006 04:24 PM
12-08-2006 04:45 PM
You are confusing. You just said that every time a VISA Open is called, it creates a new reference. Of course you get a different reference for a different instrument but that is not what the problem is. He was repeatedly opening a reference to the same instrument and not calling a VISA Close on that reference. Go back and read the entire thread. If the problem is fixed, it would seem that the issue is with the single reference and nothing at all with the the other references because he made no changes at all there. That's why the problem is so weird to me.
And what buffer are you talking about? A memory buffer?
12-08-2006 05:10 PM
12-08-2006 05:15 PM
Actually if you read the whole thread again then you are the one who got confused and lost track of the raised issue. Only when I pointed it out the visa open/close issue then you jumped on that but before you shotgun at driver, IVI and even the size of the test program which all were not related at all. Anyway I used to have this problem randomely until that was how I got rid of it.
Another thing if you did not know is that this could happen to ANY resources including active X, .dll (SW only), not just the HW side. Solutions were found based on real life experience!