LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Visa/IVI resource stops working after 100 times

I have a Labview 8.6.1 application that has been running for a long time now.  

 

I replaced the workstation, after a period of time the Pickering PCI switch stops working.  I created a utility to find out what the issue is and to recreate.

 

I recreate by just initializing the card and closing it.  It will work 100 times every time, then at 101, it can't find my switch any longer.

 

It doesn't matter if I access it 50 times IVI method and then 50 times VISA method, it is 100 times. 

 

Any help would be greatly appreciated.

 

See attached images

Download All
0 Kudos
Message 1 of 11
(3,996 Views)

Additionally, I do have a USB GPIB that a Solartron is attached to that continues to work even though the switch does not.  Exactly 100 times it will work.  😞utility4.png  

0 Kudos
Message 2 of 11
(3,982 Views)

Sounds like a Pickering issue, not LabVIEW.  I would go bug them.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
Message 3 of 11
(3,952 Views)

Why is there a coercion dot on your resource name? Maybe add a short "wait" before closing the resource. What is in your false state? I assume it's not nothing because you are using a property node for the resource name.

 

Just some general tips that may not be related to your problem. Add a wait into the while loop, it will still be plenty responsive. Don't use property nodes to retrieve values, use a shift register. Change your boolean to "latch when released" and it will automatically reset to false once its value is read. 

0 Kudos
Message 4 of 11
(3,946 Views)

False is a 200 ms wait.  

0 Kudos
Message 5 of 11
(3,920 Views)

I think you are right about it being a Pickering issue.  I am bugging them bigtime also 🙂

 

0 Kudos
Message 6 of 11
(3,917 Views)

Do you still have the old workstation?  Some common pit-falls with upgrade are differences in:

  • IVI compliance package
  • NI VISA version
  • Pickering driver versions
  • PC OS or BIOS
  • One of those undocumented set-up steps
  • Unexcpeted hardware conflict

Do you have a modern LabVIEW version you could try?


"Should be" isn't "Is" -Jay
0 Kudos
Message 7 of 11
(3,902 Views)

It was the Pickering driver.  On the machine where it worked, I had 3.52.007.  I had downloaded a newer 4.x driver that was causing all of the headaches.  I am now able to go over 100.  Pretty crazy.  Thanks for all the feedback.

 

Message 8 of 11
(3,896 Views)

@tartar813 wrote:

It was the Pickering driver.  On the machine where it worked, I had 3.52.007.  I had downloaded a newer 4.x driver that was causing all of the headaches.  I am now able to go over 100.  Pretty crazy.  Thanks for all the feedback.

 


Now, Go back and stick a Zip of the right driver in with the source code and add the ReadMe.txt file explaining the dependancy!  (And, if possible, Slap the original developer for not having documented the dependany~!)


"Should be" isn't "Is" -Jay
0 Kudos
Message 9 of 11
(3,880 Views)

I have put all of the software in specific folder 🙂  I would slap the original developer, but that would be me.  Ugh!  

0 Kudos
Message 10 of 11
(3,873 Views)