AnsweredAssumed Answered

PyVISA N9155A session closing issues

Question asked by Mashly on Feb 1, 2017
Latest reply on Feb 1, 2017 by hognala



I am having a problem connecting to my N9155A if the program is quit without finishing correctly.


The first run of a program it works fine but if the program times out or an error is raised,when I try and reconnect it througs the error below.


VisaIOError: VI_ERROR_CONN_LOST (-1073807194): The connection for the given session has been lost.


I guess this is because the previous session wasn't closed properly.


Can someone please advise on how to check for an open sesions and close them before trying to start a new one?