Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

Error with VISA Read (-1073807346)

Solved!
Go to solution

Hi,

 

I am using VISA Write/Read to control a glucose monitor and read memory files. When I run the memory file for the first time, I recieve the error -1073807346, and the explanation is "VISA:  (Hex 0xBFFF000E) The given session or object reference is invalid."

 

However, when I run it again immediately afterwards (without doing anything except click run), it works perfectly every time until I close out the session and restart (then I receive the same error, but it works every time after that).

 

I have checked my settings, and they are correct, and I have also tried to run the command with Hyperterminal, and it works. I am not sure why it doesn't work the first time around.

 

Any help you could give would be great. I've attached the file ("Read Mem").

 

Thanks.

Download All
0 Kudos
Message 1 of 3
(3,653 Views)
Solution
Accepted by lltelford

Hi

Do you select the correct monitor resource (I guess you do) before starting the program?

Why do you have a sequence frame around your code? The sequencing is already done by the data wires.The last wait is nonsens.

And most important: why do you have a feedback node in your visa session just before the write.

Remove that and press on cleanup diagram.

 

greetings from the Netherlands
0 Kudos
Message 2 of 3
(3,648 Views)

Thanks -- the removal of the feedback node seems to have fixed the problem I had. Thanks for your help!

0 Kudos
Message 3 of 3
(3,643 Views)