By default, Windows runs applications with their priority set to Normal.
Changing this priority cannot be done from the LabVIEW build. Therefore, if an application needs to run with a specific priority, the priority needs to be manually changed each time the application is run.
This can be tedious as well as very easily forgotten about. Additionally, if a Realtime priority is required, an administrator account is needed.
There is a way to change the priority of an application using the Windows Management Instrumentation Command line (WMIC) utility.
wmic process where name='<application.exe>' CALL setpriority '<priority>'
|Priority Level||Priority Value|
I have written a utility that can be run when starting an application which will set the priority automatically. As mentioned earlier, when setting a Realtime priority, the command needs to be run as an administrator.
Demo video changing the priority of an application.
I have only tested this on Windows 10 but should work on earlier versions. A demo application can be found here.