Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

session handle lost

HI

I have a system developed in LabVIEW that controls at the same time different equipments: DMM, Fgen, Scope, PowerSupply and a Switch Matrix. The complete system works without problem, but sometimes, and I don't not why some instruments lost the session. For exaple, the last error was:

Error Code: -1074130544

Error Source: IviDmm Ivi Error Converter.vi

The session handle is not valid

 

The only one way to go over the error is closing the LabView and restart the system.... 

Why does this error happen?

How can I solve it withour stopping and restarting the whole system?

thanks

0 Kudos
Message 1 of 18
(5,103 Views)

The only times I have seen this is when an instrument reset happens, typically be the software.


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 2 of 18
(5,097 Views)

But in our case, the instrument is always on and no one resets it.....

0 Kudos
Message 3 of 18
(5,086 Views)

Instruments connected via USB?

0 Kudos
Message 4 of 18
(5,080 Views)

No, all the instruments are connected to the server through a LXI net

0 Kudos
Message 5 of 18
(5,069 Views)

This error can also occur if you have more than one Initialize VI in your program. Only one session can be opened to your instrument at a time, so multiple Intialize VIs will produce this error. For example, if you use the Getting Started VI and then place an Initialize VI in your program, the additional session handle will be invalid.

Is it possible that you have more than one initialization happening at the same time?

0 Kudos
Message 6 of 18
(5,019 Views)

HI!

thank for the response!

No, I only have one initialization per instrument. The tricky thing is that only happen sometimes... I mean, it is not error that always happen... and I can not trace what is the origin of lossing the session..

Thanks!

0 Kudos
Message 7 of 18
(5,009 Views)

Ok, Let's see...

The thing is that I need more information to help you finding out what is happenning. What is exactly what you want to do with the instruments ? Are you using NI-SCOPE Express VI's or NI-SCOPE API?

0 Kudos
Message 8 of 18
(4,993 Views)

Hi

1first of all, thank you for your help and interest 🙂

What we have is a instrumentation system with: scope, Fgen, DMM, PowerDC and a Swithc Matrix.

All the instruments are controlled by IVI drivers. That is, in the algorithm that control each one of the instrumets all th functions are IVIDmm, IVIScope, etc..

When the system is started, all of them are initialized obtaining their Session Handle that is used as input in all the IVIxxx funtions...

I don't know If I can send you any screenshot or similar... it is a quite complex system...

0 Kudos
Message 9 of 18
(4,990 Views)

Yes, maybe is a good idea that you send me the VIs or make some screenshots. If you upload them it'll be very usefull

0 Kudos
Message 10 of 18
(4,979 Views)