When TestStand executes a VI using the LabVIEW development system, the CPU affinity for all LabVIEW execution threads is set to allow all CPUs.

When TestStand executes a VI using the LabVIEW RTE, the CPU affinity for LabVIEW execution threads depends on the following factors:

  • The CPU affinity of the TestStand execution thread
  • Whether you enable the Execute ‘Same as caller’ VIs Using Multiple Threads option in the LabVIEW Adapter Configuration dialog box
  • Whether you enable the Additional Threads Inherit Calling Thread’s CPU Affinity option in the LabVIEW Adapter Configuration dialog box
  • The setting of the Preferred Execution System option on the Execution page of the VI Properties dialog box in LabVIEW
  • The version of LabVIEW that executes the VI

LabVIEW 2009 or Later

The following table shows how these factors apply when TestStand executes VIs using the LabVIEW 2009 or later RTE and the preferred execution system of the VI is same as caller.

TestStand Option:Execute 'Same as caller' VIs Using Multiple Threads TestStand Option:Additional Threads Inherit Calling Thread's CPU Affinity CPU Affinity Behavior
Disabled The VI executes using the TestStand execution thread and its CPU affinity.
Enabled Disabled The CPU affinity for all execution threads, including the TestStand execution thread, is set to allow all CPUs. The CPU affinity of the TestStand execution thread is restored to its original affinity when the VI execution completes and the TestStand execution thread returns to TestStand.
Enabled Enabled The CPU affinity for all additional LabVIEW execution threads is set to match the CPU affinity of the TestStand thread.

When TestStand executes VIs using the LabVIEW 2009 or later RTE and the preferred execution system of the VIs is set to something to other than same as caller, the CPU affinity for all LabVIEW execution threads is set to allow all CPUs.

LabVIEW 8.6.1 or Earlier

The following table describes the CPU affinity for LabVIEW execution threads when TestStand executes VIs using the LabVIEW 8.6.1 or earlier RTE.

LabVIEW Setting:Preferred Execution System CPU Affinity Behavior
same as caller The VI executes using the TestStand execution thread and its CPU affinity.
Not same as caller The CPU affinity for all LabVIEW execution threads is set to allow all CPUs