LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How do we control which processes occur first in a windows operating system?

I am developing a program that will simulate heart beats, and it runs every 200ms, and i have implemented it such that it will beep every 60/(heart_rate) seconds ... however, the problem i am having is that when i am running other applications in the background on my laptop, the beeps no longer come in regular intervals... when i turn off all other programs, then it runs fine. I wish to know how we can set the windows operating system or something such that my program takes priority over other processes. How do i set this priority sequence? thank you
0 Kudos
Message 1 of 2
(2,454 Views)
Windows is not very well designed for this. If you need deterministic time performance, you probably need LabVIEW RT.

You can improve the situation somewhat by increasing the priority of your VI (VI properties..execution).

If you would upgrade to LabVIEW 7.1 you can also benefit from the new "timed loop" structure. It seems to work much more precisely for these kind of tasks, even at normal VI priority.

(btw, it is not clear why you use local variables and value property reads if a regular wire can do just fine. Wires are much more efficient. Also, why isn't there a while loop around the code so the code repeats? Are you by any chance using the run continously button to execute this?)
0 Kudos
Message 2 of 2
(2,454 Views)