11-24-2011 06:35 AM
Ive noticed that after a few hours of using GPIB communication with my equipment that the GPIB writes slow down to probably 50 times slower speed. They do complete but at alot slower speed. Ive tried removing all insturments except one from system and it remains slow. Ive tried swapping equipment and cables and nothing seems to fix this. The only solution is to do a reboot and this is not a viable option everyday!
any help would be appreciated?
Several other users here are experiencing the same thing
We are using Labview 2010
Iano
11-28-2011 07:53 AM
Is it the communication that's slowing, or the program? Are you doing anything memory-intensive in your code, like accumulating data in an array that's constantly growing? Are you writing to a file that's constantly growing. Please provide more details as to what your code is doing. If you can upload the code, even better.
11-29-2011 04:07 AM
Hi Lano,
Would it be possible to take a look at your code in order to determine the root of the problem? Usually this type of behaviour is associated with a memory problem which could be due to something in your code.
Kind Regards,
11-29-2011 05:01 AM
I doubt it is code as all programs exhibit the problem. here is one...
11-29-2011 08:37 AM
Ummm... about your VI.. let's hold off on that for now...
What kind of controller do you have? You said that you tried removing all instruments except one. Does this mean it doesn't matter which one is the single instrument on the bus? Or does it only happen when a specific instrument is on the bus?
Now, about your VI:
11-29-2011 08:45 AM
Hi Thanks for the reply.
I have a NI PCI GPIB card installed on my windows XP machine.
It slows down for all instruments so I doubt its any specific peice of code. Some are downloaded insturment drivers from NI some are home written etc...
If I exit labview and open again it returns to full speed.
The vi I uploaded is one we have been using for years to control a voltage source.
12-01-2011 08:33 AM
Hi Lano,
Usually when LabVIEW slows down it is due to a problem with memory allocation. The reason I believe this is to do with memory is because you say it resolves itself when LV is closed and restarted. What happens when you close LV is it dumps all memory allocated for the program and starts fresh.
There are a couple of common reasons for this:
You say that you used the vi you uploaded for years, does this vi cause the slowing down problem? What has changed in your setup for this problem to start occuring?
I hope this is not hindering your project too much!
Kind Regards,