Academic Company Events Community Support Solutions Products & Services Contact NI MyNI
22 ratings:
 3.86 out of 5   

Using Measurement Studio 2009 with Microsoft Visual Studio 2010

Primary Software:
Primary Software Version: 2009
Primary Software Fixed Version: 2010
Secondary Software: N/A

I have Measurement Studio 2009, and I would like to use it with Microsoft Visual Studio 2010. Is this possible?

Measurement Studio 2009 and earlier .NET class libraries and user interface controls work with Visual Studio 2010. The Measurement Studio 2009 Visual C++ libraries do NOT work with Visual Studio 2010.

Measurement Studio 2009 is designed to work with Visual Studio 2008; therefore, Measurement Studio does not install shipping examples and does not integrate with Visual Studio 2010. This means that if you install Measurement Studio 2009 with Visual Studio 2010, the Measurement Studio .NET controls are not in the Toolbox and you do not have a Measurement Studio menu item in the Visual Studio 2010 toolbar. However, you can add the Measurement Studio .NET controls to the Toolbox manually. Refer to Adding Measurement Studio 2009 User Interface Controls to the Toolbox for more information.

Note: Measurement Studio 2010 released in November of 2010 and supports Visual Studio 2010.

The following sections discuss additional topics to consider when using Measurement Studio 2009 with Visual Studio 2010.


If you have Visual Studio 2008 and Visual Studio 2010 on your system, Measurement Studio 2009 installs all the .NET class libraries automatically. If you only have Visual Studio 2010 installed, then you must unselect features that require specific versions of Visual Studio to be on the system. These features include the Visual Studio Integration feature and all of the Visual C++ support features.

Using Measurement Studio 2009 User Interface Controls and Analysis .NET Class Libraries in Visual Studio 2010

The Measurement Studio 2009 Analysis .NET class libraries and user interface controls are licensed assemblies which require a license string to be added to the .licx file associated with the project. When you drop a control or a component onto a form, Visual Studio 2010 automatically adds a .licx file to the project and adds the appropriate license string. However, Visual Studio 2010 does NOT add or update the .licx file if you add a reference to an assembly, which is what is required for using the Measurement Studio Analysis libraries. Because of this behavior, you need to add the license string manually to the .licx file associated with the project. For more information about manually adding the license information to use the Measurement Studio .NET class libraries, refer to the Measurement Studio help topic Licensing Measurement Studio .NET Class Libraries without Integrated Tools in the NI Measurement Studio Help

Adding Measurement Studio 2009 User Interface Controls to the Toolbox

To add Measurement Studio user interface controls to the Visual Studio 2010 Toolbox, complete the following steps:
  1. Open Visual Studio 2010.
  2. Create a new project.
  3. Right-click on the Toolbox and choose Add Tab from the shortcut menu. Name this tab Measurement Studio.
  4. Right-click on the Measurement Studio tab and select Choose Items from the shortcut menu.
  5. Sort the items by namespace by clicking on the Namespace column header.
  6. Scroll down to the NationalInstruments.UI.WindowsForms namespace.
  7. Select the appropriate Measurement Studio controls. Click OK to add these items to your Toolbox
Measurement Studio Help Files

The Measurement Studio 2009 help files are designed to integrate into the Visual Studio 2008 help system. If you have Visual Studio 2008 installed on your system, you can view the Measurement Studio help by opening up the MSDN Help Viewer for Visual Studio. If you do not have Visual Studio 2008, you can use a free tool, the H2Viewer, to view the help files. The help files have a .hxs extension and are installed in the <MeasurementStudioVS2008>\Help directory. You can open the individual .hxs files in the folder, or you can view all of the help content by opening the Measurement Studio namespace. Open the Measurement Studio namespace by selecting File » Open Namespace in the H2 Viewer.

Known Limitations
  • In some cases, the licensing of Measurement Studio components may fail while building 64-bit applications. If you encounter licensing failures in this configuration, please contact NI support.
  • Targeting Client Profiles is not supported. Targeting the .NET Framework 4 Client Profile is the default for new projects, so you must change the target through the Project Properties window, as shown in the following screenshot.
  • If your application depends on any National Instruments mixed-mode assemblies such as NationalInstruments.Common.Native, you must have the VC++ 9.0 runtime installed on your machine, and you must create a config file for your application similar to the one in the Attachments section. Specifically, you must specify useLegacyV2RuntimeActivationPolicy="true" for the startup tag. If you fail to create this config file, you will receive the error: Mixed mode assembly is built against version 'v2.0.50727' of the runtime and cannot be loaded in the 4.0 runtime without additional configuration information. 

Related Links:
Measurement Studio Help: Creating a .licx File Without Visual Studio-Integrated Tools
KnowledgeBase 6EGD9KD9: Using Measurement Studio 2013 with Microsoft Visual Studio 2013
KnowledgeBase 4LM9505E: How Do I Access the Measurement Studio 2013 Readme?
External Link: H2Viewer



Report Date: 04/14/2010
Last Updated: 10/13/2014
Document ID: 58D8K1XU

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
  1 2 3 4 5
Please Contact NI for all product and support inquiries.submit