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

Configuring Access Options in Project Libraries

LabVIEW 2013 Help

Edition Date: June 2013

Part Number: 371361K-01

»View Product Info

You can configure access settings for items and folders that a LabVIEW project library owns as public or private. If you set an item as private and lock the project library, the item is not visible in the project library or in palettes. You cannot use a private VI as a subVI in other VIs or applications that the project library does not own, even if the project library is unlocked.

Determine which items in the project library you want to set as public and which as private. Public items might include palette VIs, XControls, instrument drivers, and other tools you want users to find and use. Private items might include support VIs, copyrighted files, or items you might want to edit later without taking the risk of breaking users' code.

You can set the access of a project sublibrary file (.lvlib) as private within the owning project library, but when you edit the project sublibrary itself, items the sublibrary owns retain public or private access settings.

Complete the following steps to configure access options in a project library.

  1. Right-click the project library icon in the Project Explorer window or stand-alone project library window and select Properties from the shortcut menu to display the Project Library Properties dialog box.
  2. From the Item Settings page, click an item in the Contents tree to select it. The current access settings for the item appear in the Access Scope box. Click one of the following radio buttons in the Access Scope box to apply to the item.
    • Public—The item is visible when users view the project library. Other VIs and applications can call public VIs.
    • Community—This item is visible when users view the project library. Only friends and VIs within the project library can call community VIs. Designate a VI as a friend of a library to give the VI the ability to call any member of the library that is in community scope.
    • Private—The item does not appear visible when users view the project library or palettes if you lock the project library. Other VIs and applications that the project library does not own cannot call a private VI.
    • Not specified—This option appears only when you select a folder. The folder does not have access items specified. Access is public. By default, folders in a project library do not have access specified, which means the folders are publicly accessible.
Note  If you specify access options for a folder, the access setting applies to all items in the folder and overrides access options for individual items in the folder.
Note  You can set individual instances of a polymorphic VI as private and set the primary polymorphic VI as public. The polymorphic VI does not break even though instance VIs are private. Setting instance VIs as private is useful if you want users to access instances only through the polymorphic VI selector, so you can edit instance order without causing user problems.
  1. Click the OK button to incorporate the changes into the project library and close the dialog box.

Items set as private appear in the Project Explorer window with a private icon . If you lock the project library, private items do not appear in the Project Explorer window.

You also can use the Source Scope:Set method to configure access options programmatically.


 

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