Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

Missing NationalInstruments.DAQmx.DLL

After installing NI-DAQmx I tried to create an application using Measurement Studio for Visula Studio 2005. I am creating an application to write to Analog
Output to device. I need to add reference to NationalInstruments.DAQmx.DLL but it is nowhere to be found on my PC. I selected all default options while installing NI-DAQmx software. What I need to do.
 
0 Kudos
Message 1 of 7
(23,666 Views)
anurag,

What version of DAQmx are you using?  If you are using DAQmx 8.1 or later then you should have the ability to select support for .NET Framework 2.0 Languages (see DAQmxNETframework2.jpg).

When DAQmx installs with that support selected, then the dll will install to:

C:\Program Files\National Instruments\MeasurementStudioVS2005\DotNET\Assemblies\Current

Let me know if you continue to have problems.

Regards,

Jeff Tipps
Applications Engineer
National Instruments
0 Kudos
Message 2 of 7
(23,648 Views)

I am using NI-DAQmx 8.3 and Measurement Studio 8.0 and now I figured out the problem.

Even though the windows search result showed thta file is no where to be found on my PC, the NationalInstruments.DAQmx.DLL file was located in the C:\Program Files\National Instruments\MeasurementStudioVS2005\DotNET\Assemblies\Current folder. Still I was not able to add refernece to this and that was another issue. Basically I was using wrong version of Visual Studio.

I was trying to add reference from Visual Studio using "Add Reference" option. I figured out that it was not showing NationalInstruments.DAQmx as the .NET or COM component available to be added because I was using Visual Studio 2003 which uses .NET 1.1 framework and I probably did not enable support for .NET 1.1 at the time of install. When I tried to add refernece by selecting DLL using browse option to pick the file I got error because the file is a .NET 2.0 assembly and thus .NET 1.1 did not recognize the format.
 
When I opened the project in Visual Studio 2005 I was able to add refernece. Then I was able to access the class (via "using" for C#, via "Imports" for Java). Thanks for your help.
0 Kudos
Message 3 of 7
(23,646 Views)

It looks like you are aware of this, but just to clarify for others:

The DAQmx device driver CD includes support for both .NET Framework 1.1 and .NET Framework 2.0. Each .NET Framework version is supported independently, with separate assemblies, separate help, separate examples, etc. installed to different folders. .NET Framework 1.1 support installs by default to the \Program Files\National Instruments\MeasurementStudioVS2003 directory. .NET Framework 2.0 support installs by default to the \Program Files\National Instruments\MeasurementStudioVS2005 directory.

If you have Measurement Studio installed, the .NET Framework support on the DAQmx driver CD is installed by default. Otherwise, you must explicitly enable it in the installer feature tree.

Message 4 of 7
(23,641 Views)

Hi Jeff,

 

I am installing Version 8.7.1 of DAQmx.

 

But when I select ".NET Framework 2.0 language support" and click NEXT, I get the following error:

 

Measurement Studio for VS2005 Integration not present

To use the NI-DAQmx .NET Support VS2005 Integration feature, you must install the Measurement Studio .NET 2.0 Languages Support>>Visual Studio Integration feature in the Measurement Studio installer.

 

Please let me know what are prerequistics if any in order to install Ni-DAQmx version with .Net framework 2.0 support.

 

Regards,

Ajay

0 Kudos
Message 5 of 7
(22,130 Views)

Hey Ajay - 

 

You get this error if you try to include integration, but don't have Measurement Studio for Visual Studio 2005 installed.  To get past this error, you need to deselect VS2005 Integration in the installer tree as shown below.  This Integration feature that Measurement Studio provides allows for built in project templates, built in DAQ Assistant, and many other helpful features.  You are still free to use the DAQmx .NET API without Measurement Studio though.

 

NickB09-17-09_01_08.png 

 

NickB

National Instruments  

0 Kudos
Message 6 of 7
(22,115 Views)

Hi Nick,

 

Thanks for your prompt reply.

 

Now,I am able to install .Net Framework 2.0 support.

 

I will get back to you in case I face any other issue.

 

Thanks,

Ajay

0 Kudos
Message 7 of 7
(22,099 Views)