LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Configure the priority/execution system of Sub-VIs

Hi,
I wonder if it is possible to configure a VI to run with different priorities or in different execution systems when called on different occations. It seems to me that the only way to influence this is by changing the properties of a VI and then saving it. That would leave me having n just slightly different VIs for n settings.
 
Sören
0 Kudos
Message 1 of 3
(2,867 Views)

Hello,

VI server exposes properties which allow you to change the priority and execution of a VI dynamically.  However, these properties cannot be set while the VI is running, and therefore a VI cannot set its own priority or execution system.  This means that you have to use a plug-in architecture (dynamically called VIs) in order to dynamically choose the priority and execution system of VIs.  I've attached a short example written in LV 7.1.  If you are unfamiliar with VI server or dynamically calling VIs, the LabVIEW Intermediate II course covers these topics and I'm sure there is also plenty of good content on these forums and in the developer zone.

Regards,

Ryan K.

Note:  You should be careful when adjusting the priorities and execution systems on a VI, as you can often end up with undesired results due to priority inversion.

0 Kudos
Message 2 of 3
(2,859 Views)
Thanks Ryan!
The method is not as convenient as I hoped for but one shouldn`t need it too often.
 
Regards,
Sören
0 Kudos
Message 3 of 3
(2,841 Views)