Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

.NET program blew up

Solved!
Go to solution
Hi James, While trying to update and also while reinstalling, both times I was unable to add .NET 4.0 Language Support>> Measurement Studio Integration for Visual Studio as I had to 'install the Measurement Studio .NET 4.0 Languages Support >> Visual Studio Integration feature in the Measurement Studio installer. ' The force sensor and DAQ we are using were previously worked with an Windows XP system, and we are trying to upgrade to Windows 7. I do not have a Measurement Studio Installer, but the force sensor was able to interact with the example programs that were installed for Windows 7. Is it still possible to make the force sensor work through the Measurement and Automation Explorer? Thanks, Seth
0 Kudos
Message 31 of 40
(2,236 Views)

Hi Sethn,

 

What data aquisition card are you using? Were you able to see it in Measurement and Automation Explorer before? If the install went well it should work just fine. Did you have Visual Studio and Measurement studio installed on your computer before you installed the DAQmx driver? 

 

Regards,

 

Perry S

Applications Engineer
National Instruments
0 Kudos
Message 32 of 40
(2,206 Views)
Hi Perry, I am using a NI PCI-6220 card. Yes, I was able to see the device in Measurement and Automation Explorer on the XP machine and prior to trying to write out the sample code in Windows 7. I'm not sure the order of installation, but I believe I tried to install the DAQmx disks I had which gave me Measurement and Automation Explorer, then installed the .NET framework and C# etc. and then I tried to upgrade to DAQmx 9.3 by getting the updates from the ni.com/support website. So those are the components I have. Should I perhaps uninstall everything and try installing the .NET things first? Regards, Seth
0 Kudos
Message 33 of 40
(2,200 Views)

Hi Sethn,

 

That would be the most complete fix. The order of installation is .NET frame work and addons to it first and drivers last.

 

Regards,

 

Perry S.

Applications Engineer
National Instruments
0 Kudos
Message 34 of 40
(2,193 Views)

Hi Perry,

 

I uninstalled everything and was able to reinstall .NET 4.0 okay. Trying to reinstall NI-DAQmx 9.3 gave me the error:

 

Measurement Studio for VS2010 Integration not present To use the NI-DAQmx .NET Framework 4.0 Languages Support Visual Studio Integration feature, you must install the Measurement Studio .NET 4.0 Languages Support>>Visual Studio Integration feature in the Measurement Studio installer. Measurement Studio Professional Edition or higher must be installed and licensed on the system for this feature.

 

I was, however, able to install the NI-DAQ F/T Software from the ATI disk, as well as the 9.0.40.610 directory containing:

 

NationalInstruments.Common.Native.dll, NationalInstruments.DAQmx.dll,

 

and in the 9.3.40.219 directory:

NationalInstruments.DAQmx.dll .

 

Do I still have all the components to be able to make this work? I also noticed that NI-DAQmx 9.4 is available on ni.com. Would it be helpful to try installing this? 

Thanks again for your help,

 

Seth

0 Kudos
Message 35 of 40
(2,181 Views)

Hi Sethn,

 

Do you have Measurement Studio installed on your machine? As far as DAQmx driver 9.4. It is always better to have the latest version of the driver compatible withy your hardware and software.

 

Perry S.

Applications Engineer
National Instruments
0 Kudos
Message 36 of 40
(2,171 Views)

Hi Perry,

I do not believe I have any special disk or file to install Measurement studio. Is measurement studio necessary to work with the .NET framework?

I'm guessing that on the XP machine, development was done through VB 6 which I was hoping to avoid.

Thanks,

Seth

0 Kudos
Message 37 of 40
(2,166 Views)

Hi Sethn,

 

I think that to fix your issue you need to modify your driver install. When you go to un-install software on your computer you should have the ability to modify an installation. If you go to the NI-DAQmx Driver  and modify the .NET 4.0 support to exclude measurement studio support you should not get that message again. I hope that this helps.

 

Regards,

 

Perry S.

Applications Engineer
National Instruments
0 Kudos
Message 38 of 40
(2,151 Views)

Hi Perry,

 

I had to exclude the 4.0 to get them to install.

 

Currently, in my Assemblies (64-bit) directories, I have:

9.0.40.610

9.1.40.159

9.4.40.50

 

The only directory that contains NationalInstruments.Common.Native.dll is the 9.1.40.159. Adding this reference and the DAQmx.dll reference from the 9.4 directory still gives me the same namespace error that Common does not exist in the Namespace.

 

As a side note, when typing the using statement, typing NationalInstruments appears to give me access to DAQmx and Restricted, but no Common...

I'm not sure if that provides any more information.

 

Thanks again, 

 

Seth

0 Kudos
Message 39 of 40
(2,145 Views)

Hi Perry,

 

I believe I have something working now.

 

I'm not sure if it was the update, or the order of installation etc. but the statements:

using NationalInstruments;

using NationalInstruments.DAQmx;

 

got rid of the errors and allows the program to run. I think another thing that helped was that the update allowed me to add the DAQmx reference from the .NET menue instead of having to manually browse and find the .dll. 

 

Thanks again to you and everybody else who helped. It's greatly appreciated.

 

Seth

0 Kudos
Message 40 of 40
(2,141 Views)