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.
Data type | Name | Required | Description |
---|---|---|---|
Minimum Size | No | Minimum 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 Size | No | Current Size returns the current number of data spaces in the asynchronous call pool for the referenced VI. |
The following table lists the characteristics of this method.
Data type | No return value |
Available in Run-Time Engine | Yes (Read/Write) |
Available in Real-Time Operating System | Yes |
Settable when the VI is running | Yes |
Loads the front panel into memory | No |
Need to authenticate before use | No |
Loads the block diagram into memory | No |
Remote access allowed | No |
Must wait until user interface is idle | No |
Available with control VIs | No |
Available with global VIs | No |
Available with strict type definitions | No |
Available with polymorphic VIs | No |
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.