NI Home > Community > NI Discussion Forums
Reply
Member
schwabe111
Posts: 15
0 Kudos
Accepted Solution

using NationalInstruments.VisaNS; command not working

Hi all,

 

I'm having trouble including the Nationalinstruments namespace to my application (MS Visual Studio 2010 C#).

 

I have added the references NationalInstruments.Common and NationalInstruments.VisaNS like in the example files.

 

However, I get an error message during built saying:

 

error CS0246: The type or namespace name 'NationalInstruments' could not be found (are you missing a using directive or an assembly reference?)

 

What am I missing here?

 

Thanks,

Benjamin

Active Participant
D_Biel
Posts: 676
0 Kudos

Re: using NationalInstruments.VisaNS; command not working

This is a double post. Let's keep the discussion on the other thread because this is a C# .NET issue and not related to MStudio for VC++. I have posted a response to the other thread.

 

http://forums.ni.com/t5/Measurement-Studio-for-NET/Namespace-NationalInstruments-not-found/td-p/1885...

National Instruments
Product Support Engineer
Member
schwabe111
Posts: 15
0 Kudos

Re: using NationalInstruments.VisaNS; command not working

Problem was solved in the other thread.