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

ResourceManager is not declared. It may be inaccessible due to its protection level Issue

$
0
0

Hi

 

I have a question about importing Ni Libirary to my VS 2012 project. ( Using visual basic .NET, Windows 7 and VS 2012)

 

I currently test  FindReources(NI-VISA) example project to apply some of function to my project.

 

Sample project was working fine, it was returnning resource data corrent.

 

However, when I tried to apply Find Resource function to "My project"

 

it kept appearing error message such as "ResourceManager is not declared. It may be inaccessible due to its protection level"

 

What I did was ...

 

First, I added reference to my project 

 

error2.PNG

 

 

Second, I imported "Imports NationalInstruments.VisaNS" to my vb file

 

However, error keep appearing, so I can't use function.

error.PNG

 

 

And, When I re-start VS and check Object brower

there is NI-VISA reference and error is gone

error3.PNG

 

However, When I run the project, NI.VisaNS library just disappear ...

 

error4.PNG

 


I am not really sure what this happen because Sample project from NI is working without any trouble.

 

Is there any missing step to import and use NI library ?

 

Thanks

 


Viewing all articles
Browse latest Browse all 5565

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>