LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Visa close won't return

As requested below in my communication code that generates the warning and the initialisation code

Init code.png  Communication code.png

0 Kudos
Message 11 of 13
(399 Views)
That is not code. Those are a couple of small images.

A problem I see in the code and in the trace is the VISA Flush. If you need to call that more than once, there is probably something wrong with the way you are doing a read.
0 Kudos
Message 12 of 13
(385 Views)

@Ranjeet_Singh wrote:

Before reading and after writing flush the buffer. Try one more thing, Instead of using 16 byte use property node of no of byte available. use some timeout also because by default it is 10sec. hence it will be waiting although it shouldn't. Bit of strange


Flushing the buffer is generally bad advice.  How do you know the "extra" data is really "extra?"  In all likelihood, it's good data that hasn't been read in correctly.  No, the OP is probably not setting up the I/O correctly.

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
0 Kudos
Message 13 of 13
(367 Views)