Company Events Academic Community Support Solutions Products & Services Contact NI MyNI

Creating .NET Subpalettes

LabVIEW 2013 Help

Edition Date: June 2013

Part Number: 371361K-01

»View Product Info

You can convert .NET controls to custom controls and add them to a palette.

Note  Creating and communicating with .NET objects in LabVIEW requires the .NET CLR 4.0 that installs with LabVIEW. You must use a .NET 2.0 configuration file if you want to load .NET 2.0 mixed-mode assemblies. Refer to the requirements for using .NET with LabVIEW for more information about .NET restrictions in LabVIEW.

National Instruments strongly recommends that you use .NET objects only in LabVIEW projects.

Complete the following steps to add a .NET control to a palette.

  1. Select Tools»Import».NET Controls to Palette to display the Add .NET Controls to Palette dialog box.
  2. Select an assembly from the Assembly pull-down menu. You also can click the Browse button to access private assemblies. .NET assemblies are .dll file types. After you select a private assembly, the assembly appears in the Assembly pull-down menu the next time you launch this dialog box.
Note  If you move a VI that uses a private assembly to a different folder or machine, you either must move the associated private .NET assembly files to a subdirectory that LabVIEW can search, or you must save the files in the Global Assembly Cache (GAC). If you build a VI that uses a private assembly into a shared library or stand-alone application, LabVIEW copies the associated private .NET assembly files to the data subdirectory in the same directory as the library or application.
  1. Select the .NET control you want to convert from the Controls list.
  2. In the Destination text box, enter the directory or .llb file in which you want to store the control. The default destination is the labview\menus\Controls\DotNet & ActiveX directory, which places controls that you add on the .NET & ActiveX palette. You also can click the Browse button and navigate to the directory in which you want to store the control.
  3. Click the OK button to add the control to a palette.
Caution  Do not save your own VIs and other files in .llb files installed with LabVIEW.

 

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
Add Comments 1 2 3 4 5 submit