Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

Error using NI-VISA library within Visual Studio

Hello,

I am wrote a problem using the NI-VISA library using C# and Visual Studio. It was working in an earlier version of Windows 10 and .Net library but now whenever I run the problem I am getting the error  "Insufficient location information or the device or resource is not present in the system." 

 

It is from the code:

 

using (var rmSession = new ResourceManager())
{
try
{
mbSession = (MessageBasedSession)rmSession.Open(connectionString);

 

Where the connctionString is "TCPIP0::10.99.0.26::inst0::INSTR" without the quote.  I am running .Net 4.8, using Visual Studio 2022 and NI-VISA 22.50.  

 

Thanks

Denny

0 Kudos
Message 1 of 2
(1,155 Views)

Do you see the "TCPIP0::10.99.0.26::inst0::INSTR" in NI MAX remote systems?

 

The error states that the instrument with the specified string as identifier is nowhere to be found.

Santhosh
Soliton Technologies

New to the forum? Please read community guidelines and how to ask smart questions

Only two ways to appreciate someone who spent their free time to reply/answer your question - give them Kudos or mark their reply as the answer/solution.

Finding it hard to source NI hardware? Try NI Trading Post
0 Kudos
Message 2 of 2
(1,127 Views)