Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

Will Measurement Studio.net work with Visual C# Express 2005 Edition?

Will Measurement Studio.net work with Visual C# Express 2005 Edition?
0 Kudos
Message 1 of 10
(5,867 Views)


Greetings.

The Measurement Studio .NET controls and libraries should work with C# Express. For Measurement Studio 8.0 controls, we have a patch available that fixes certains problems that show when using the .NET 1.1 controls in the 2.0 framework. 


I hope this helps

Bilal Durrani
NI
0 Kudos
Message 2 of 10
(5,860 Views)
While it is true that the .NET controls and libraries should work with C# Express, Measurement Studio Visual Studio environment features will not work with C# Express (or any of the Express editions). This includes the project wizards, the Add/Remove Class Library Wizard, the Parameter Assistant, and the DAQ and Instrument I/O Assistants. This means you will have to manually add references to the libraries within your projects. You will also have to manually add information to the license (.licx) file for the NationalInstruments.Analysis library. Visual Studio should automatically add this information to the license file for the user interface controls when you drop the controls on the form. The NI Measurement Studio Help file contains a topic that describes how to manually license the Measurement Studio libraries.
 
Please understand that this lack of integration support is not specific to Measurement Studio. One of the limitations that Microsoft designed into the Express editions is that they do not allow 3rd party products to integrate into these develoment environments.
0 Kudos
Message 3 of 10
(5,858 Views)
As a LabWindows/CVI 8.0 user experimenting with Measurement Studio 8.0 within Visual C# Express, I'm stuck on the licensing of the Analysis Library when trying the example in the Measurement Studio 8.0 User Manual, p 4-10.

I have manually added the Measurement Studio controls to the ToolBox, and can run a project that just uses them. The appropriate license info is added to the .licx file when I add a control.

And as per the previous post: ("This means you will have to manually add references to the libraries within your projects"), I have added a reference to  NationalInstruments.Analysis.Enterprise.dll, and added the prescribed line ("NationalInstruments.Restricted.AnalysisLicenser, NationalInstruments.Analysis.Enterprise, Version=8.0.11.236, Culture=neutral, PublicKeyToken=4544464cdeaab541") to the licx file, but I'm still told "NationalInstruments.Restricted.AnalysisLicenser is unlicensed." when I run my project.

What am I missing?
0 Kudos
Message 4 of 10
(5,669 Views)
Have to tried rebuilding? The licenses are only embedded into the resulting .exe is certain cases when just building. Rebuilding the project will force the licenses to be regenerated and embedded into the .exe.
0 Kudos
Message 5 of 10
(5,657 Views)

Yes, but I get the same result. The exception details are attached, in case that helps.

Thanks,

Ian

0 Kudos
Message 6 of 10
(5,654 Views)

A couple of thoughts

  • Check to make sure you have an [Enterprise | Professional | Standard]Analysis.lic license in the [InstallDir]\DotNET\Assemblies folder.
  • If you have VS 2003, can you use the .NET Analysis dll there?
0 Kudos
Message 7 of 10
(5,644 Views)

There is no .lic file, so that might be the issue!  (Sorry, no VS 2003)

I have CVI 8.0 Full Development System which includes Measurement Studio Enterprise, and the [InstallDir]\DotNET\Assemblies\Current folder has three NationalInstruments.Analysis.Enterprise files: .xml, .dll & .msl.  How do I get that .lic file?

Thanks,

Ian

0 Kudos
Message 8 of 10
(5,636 Views)
 
Take a look at this KB. It should fix the issue.
Message 9 of 10
(5,626 Views)
Thanks! That did it, albeit with a couple of iterations.

I suspect that the fact that I skipped any NI-DAQ installation may have thrown things off -- that is the only thing I recall that might be classified as an installation failure.

--Ian
0 Kudos
Message 10 of 10
(5,615 Views)