02-24-2011 09:12 AM
Hi everyone,
i wrte a program with labview, and now i want to make a applikation from the vi.
Everything went fine, but lately the applikation exe and now even the vi made some problems.
He shuts down the program with the above message, and keeps telling me that the IO Buffer is overloaded.
As i said everything went fine up till now, it is connected with the pc, and i dont think that the IO Buffer has something to do with it.
So wat is this error and how could i get rid of it?
Cheers
xridder
02-24-2011 09:20 AM
xridder,
have you tried this after a fresh reboot of the system? Please note that there should not be any application running which tries to access that interface (serial? GPIB???) as well.....
hope this helps,
Norbert
02-24-2011 10:08 AM
The VI works most of the time. there is no other application running. After a reboot of the system the application works at first but after the second start it shows this: -1073807246; VISA: Empty I / O buffer in Tablemanual.vi
The VI still works. The "emptiing bufferVI" is implemented in one of the subvi's. Usually when its not connected the value "-50" is shown, but this time its just zero.
And i really dont want to reboot every time it doesnt work^^
cheers
xridder
02-24-2011 10:13 AM
xridder,
this sounds like that there are issues in your application regarding the VISA reference to the interface.
What is the interface you are working with? Are there any specific settings which could get messed up?
Do you release all the references you open properly when shutting down the application?
Norbert
02-24-2011 10:33 AM
mh, very good questions.
its COM 2 so it should be serial.
i do not really release anything, bc the tree didnt show anything in that case i believe and i dont really open anything either.
xridder
02-25-2011 02:25 AM - edited 02-25-2011 02:27 AM
xridder,
you should have included something like this in your code:
hope this helps,
Norbert
[EDIT] Please note that in this screenshot, i did not wire the error cluster. This is in general a bad idea. You have to use the error cluster in order to write reliable, stable software!!!!
02-25-2011 06:41 AM
mh, the subVI doesnt use the open/closeVISA, so i added these, and at first i thought it worked, but after i started the program 2 times (it worked) and then after half an hour tried again and it didnt work anymore^^... very confusing
xridder
02-25-2011 06:55 AM
Can you check with another serial port?
Are there any special settings done to the serial port?
Can you verify correct functionality by testing VISA examples installed with NI-VISA?
thanks,
Norbert