Configuring the Number of Execution Threads Assigned to a LabVIEW Execution System
- Updated2025-07-23
- 2 minute(s) read
You can add tokens to a .ini file to configure the number of threads assigned to a LabVIEW execution system. The full name and location of the .ini file depends on which of the following servers you configure in the LabVIEW Adapter Configuration dialog box to use to execute VIs:
- LabVIEW Run-Time Engine—LabVIEW looks for a .ini file with the same name and location as the TestStand application, such as SeqEdit.ini for the TestStand Sequence Editor or TestExec.ini for a TestStand User Interface.
- Development System—LabVIEW looks for a .ini file named LabVIEW.ini, located in the same directory as the LabVIEW.exe development system executable.
For the LabVIEW development system, add the following tokens below the [LabVIEW] tag in the .ini file. For the LabVIEW Run-Time Engine, add the following tokens below the [LVRT] tag in the .ini file.
ESys.StdNParallel = -1
ESys<Built-in Execution System>.Normal = n
where
- n is the number of threads to assign to the execution system. Specify -1 to use the default number of threads in LabVIEW, which is the greater of four or the number of CPUs in the system.
- <Built-in Execution System> is the execution system for which you want to set the number of threads. The following lists the valid values for specifying the execution system.
| Execution System Name | Value |
|---|---|
| Standard | <EmptyString> |
| Instrument | .Instrument |
| DAQ | .DAQ |
| Other1 | .other1 |
| Other2 | .other2 |
Note
- You must restart LabVIEW for the new settings to take effect.
- The settings you specify apply to all versions of the LabVIEW RTE that TestStand loads.