LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

VISA: (Hex 0xBFFF0072) The resource is valid, but VISA can not currently access it

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

Sometimes my knowledge is just ... .... lol
0 Kudos
Message 1 of 8
(7,418 Views)

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

Norbert
----------------------------------------------------------------------------------------------------
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it.
0 Kudos
Message 2 of 8
(7,409 Views)

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

Sometimes my knowledge is just ... .... lol
0 Kudos
Message 3 of 8
(7,402 Views)

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

Norbert
----------------------------------------------------------------------------------------------------
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it.
0 Kudos
Message 4 of 8
(7,399 Views)

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

Sometimes my knowledge is just ... .... lol
0 Kudos
Message 5 of 8
(7,392 Views)

xridder,

 

you should have included something like this in your code:

VISA Resource.png

 

 

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!!!!

Norbert
----------------------------------------------------------------------------------------------------
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it.
0 Kudos
Message 6 of 8
(7,375 Views)

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

Sometimes my knowledge is just ... .... lol
0 Kudos
Message 7 of 8
(7,363 Views)

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

Norbert
----------------------------------------------------------------------------------------------------
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it.
0 Kudos
Message 8 of 8
(7,359 Views)