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

Creating .NET Subpalettes

LabVIEW 8.2 Help
August 2006

NI Part Number:
371361B-01

»View Product Info
Download Help (Windows Only)

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

Note  Creating and communicating with .NET objects requires the .NET Framework 1.1 Service Pack 1 or later. National Instruments also 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.

Resources

WAS THIS ARTICLE HELPFUL?

Not Helpful