Populate Asynchronous Call Pool Method

Short Name: Populate Async Call Pool

Requires: Base Development System

Class: VI Methods

To Use: Create a method.

Ensures that the asynchronous call pool for a VI reference contains at least the number of data spaces specified by the Minimum Size parameter. By default, when you open a reference with the Open VI Reference function, LabVIEW allocates one data space per CPU core on the development computer.

Use this method to ensure deterministic execution of asynchronous VI calls. Set the Minimum Size of the call pool to the maximum number of calls that you expect to make to the referenced VI. This prevents LabVIEW from needing to allocate data spaces in the asynchronous call pool on demand, thereby avoiding the jitter of memory allocation.

You cannot decrease the size of the asynchronous call pool. Use the Current Size output of this method to identify the current number of data spaces allocated for the referenced VI.

LabVIEW deallocates the call pool when it closes the corresponding VI reference.

Example

Parameters

Data typeNameRequiredDescription
Minimum SizeNoMinimum Size determines the number of data spaces that the asynchronous call pool of the referenced VI is required to have. If you wire a number to this input that is smaller than the Current Size of the asynchronous call pool, the size of the call pool remains unchanged.
Current SizeNoCurrent Size returns the current number of data spaces in the asynchronous call pool for the referenced VI.

Remarks

The following table lists the characteristics of this method.

Data typeNo return value
Available in Run-Time EngineYes (Read/Write)
Available in Real-Time Operating SystemYes
Settable when the VI is runningYes
Loads the front panel into memoryNo
Need to authenticate before useNo
Loads the block diagram into memoryNo
Remote access allowedNo
Must wait until user interface is idleNo
Available with control VIsNo
Available with global VIsNo
Available with strict type definitionsNo
Available with polymorphic VIsNo

Example

Refer to the Populating the Asynchronous Call Pool VI in the labview\examples\Application Control\VI Server\Asynchronous Call By Reference directory for an example of using the Populate Asynchronous Call Pool method.

 Open example  Find related examples