Source Scope:Set Method

Short Name: Set Source Scope

Requires: Base Development System

Class: Library Methods

To Use: Create a method.

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

Data typeNameRequiredDescription
source refYesContains a reference to the item in the project library for which you want to set or retrieve access.
scopeYesSpecifies 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.
  • community—The item is visible when users view the project library.

Remarks

The following table lists the characteristics of this method.

Data typeNo return value
Available in Run-Time EngineNo
Available in 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 allowedYes