Quantcast
Channel: Instrument Control (GPIB, Serial, VISA, IVI) topics
Viewing all articles
Browse latest Browse all 5625

VISA finds a non-existing port...

$
0
0

Hello,

 

We have replaced our old lab computer by a new model and used the opportunity to also move to a more current operating system (from Win XP to Win 7 64 bit) and to the current version of CVI (2013 SP2), its runtime engine, and all the device drivers (latest 2014 versions of VISA...).

 

Unfortunately, this broke an old software because of the following error message:

 

VISA error: insufficient location information or the device or resource is not present in the system.

 

After some investigations it turned out that the source of this problem is the call to

 

viFindRsrc ( resource_manager_handle, "ASRL[0-9]*::?*INSTR", &find_handle, &return_count, instrument_descriptor );

and

status = viFindNext ( find_handle, instrument_descriptor );

 

because LPT 1 is included in the list of serial devices although it does not exist physically. So trying to open the port fails with the above mentioned error.

 

MAX has the same problem, it lists LPT 1 but with a red cross, indicating that it is unable to open it. Windows device manager does not show LPT.

 

So, my conclusion would be that this is a bug in VISA... Am I wrong, is it a know bug, is there a know workaround?

 

Thanks!


Viewing all articles
Browse latest Browse all 5625

Trending Articles