Source Scope:Set Method

LabView Local Project Settings

Source Scope:Set Method

Short Name: Set Source Scope

Installed With: Base Package

Class: Library Methods

Sets the access scope of an item that the LabVIEW project library owns, such as public or private access.

This method is similar to the Access Scope box on the Item Settings page of the Project Library Properties dialog box.

Note  The LabVIEW Datalogging and Supervisory Control Module supports this method in the Run-Time Engine.

Parameters

NameRequiredDescription
source refNoContains a reference to the item in the project library for which you want to set or retrieve access.
scopeNoSpecifies the access setting for the item.
  • invalid scope—The item is an invalid value. The item is visible whenever the read function receives an error and causes an error to occur if you pass this item to a write function.
  • public—The item is visible when users view the project library. Other VIs and applications can call public VIs.
  • 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.
  • protected—The item is visible to other VIs in the same class or a descendant class.

Remarks

The following table lists the characteristics of this method.

Available in Run-Time Engine and Real-Time Operating SystemNo
Settable when the VI is runningNo
Loads the front panel into memoryNo
Need to authenticate before useNo
Loads the block diagram into memoryNo
Remote access disallowedNo
Must wait until user interface is idleNo
Available with control VIsNo
Available with global VIsNo
Available with strict type definitionsNo
Available with polymorphic VIsNo