LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Can Labview execute a VI in background at a constante rate?

I would like Labview to execute some program code in background at a
constant rate, for example every second. It means the main VI execution is
interrupted every second and this program code is executed. How can I
implement this?
Thanks for your help.

Philip
0 Kudos
Message 1 of 3
(2,784 Views)
Can you give a little more detail on each process. What it sounds like is that you will need a parallel loop architechture. Two loops running at different rates. Maybe adding some syncronization techniques such as a semaphore to halt the main process every time the secondary process is running. Try an give a little more detail and I can maybe give a better answer. Hope this helps.
BJD1613

Lead Test Tools Development Engineer

Philips Respironics

Certified LV Architect / Instructor
0 Kudos
Message 2 of 3
(2,784 Views)
> I would like Labview to execute some program code in background at a
> constant rate, for example every second. It means the main VI execution is
> interrupted every second and this program code is executed. How can I
> implement this?

If you want it to be a part of your main VI, then put a parallel loop
with no data dependence on your main vi diagram. Then put the task in
the parallel loop and a wait ms multiple in the loop too.

If this is totally independent from your main VI and should run even
when your main isn't, make it another VI that gets invoked through the
menus, start menu, as a service, etc.

Greg McKaskle
0 Kudos
Message 3 of 3
(2,784 Views)