LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Problems connecting and reading 2 seperate HP34970

Solved!
Go to solution

Hello

 

For some reason I am unable to read the 2nd 34970 device. I have added 3 snippets, part of my code.

First is "connection", works fine, no errors.

2nd is ReadFAT, works fine. 3rd is ReadCal where I get error -1073807298.

If I swap the comports in the "connection" state, ReadCAL works and ReadFAT does not, making me sure it is not a connection issue.

Connection to instruments seems to be working ok, just not at the same time. The code in  ReadFAT and ReadCAL is copied, should be the same.

I am running out of ideas, is there something I am missing?

 

I am using virtual comports on 2 separate Ethernet Nports if that makes a difference.

Windows server 2012 r2

Tried both LV 2016 and 2017, same problem.

 

Appreciate any input.

 

Download All
0 Kudos
Message 1 of 4
(2,437 Views)
Solution
Accepted by topic author TorbH

I put a loop around your snippet and tried to reconstruct and resize it. Is this approximately your VI? (And if not, can you upload your actual VI?)

 

My guess is you have a few connections that should be passed through other cases and are not. This is leading to default values being passed to your VISA connections, which then fail.


GCentral
0 Kudos
Message 2 of 4
(2,431 Views)
Solution
Accepted by topic author TorbH

cbutcher wrote:

My guess is you have a few connections that should be passed through other cases and are not. This is leading to default values being passed to your VISA connections, which then fail.


Not just a guess, it is exactly what is happening.  Just look at the ReadCAL and ReadFAT cases.  NONE of the tunnels are wired through.  Therefore the session reference of the other instrument is lost.

 

First suggestion: Turn off "Use Default If Unwired" for all of the output tunnels.  Then fix the errors with linked tunnels (which interestingly enough, you have linked tunnels but then deleted the wires in the cases).


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 3 of 4
(2,401 Views)

Surely you are correct.

Thanks for the input.

0 Kudos
Message 4 of 4
(2,367 Views)