LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to run two independent VIs?

I need to apply a scanning voltage on a piezo and make waveform
measurements at the same time. I'm using NI-6713/SCB-68 to make this
scanning voltage and NI-5112 to acquire the waveform. But they won't
work together. I tried to run two VIs for the two jobs but they all
halt. If I put the two loops in one VI, they are synchronized. I want
the scanning voltage to run continuously without any interference.
Then I would make the measurements randomly. Please help me out! I'm
using Labview 6.1 here.
0 Kudos
Message 1 of 4
(2,475 Views)
You can create two parallel loops in your vi that run at different rates or you can spawn another independent process using VI server. Using vi server you can programmatically load a vi that wouldn't be in the hierarchy of the caller vi. See the following example on how to load a vi programmatically. THis way if VI A stops VI B can keep running. Hope this helps.
BJD1613

Lead Test Tools Development Engineer

Philips Respironics

Certified LV Architect / Instructor
0 Kudos
Message 2 of 4
(2,475 Views)
For some reason, you have removed the block diagram of your example above. This is not very useful. 😞
0 Kudos
Message 3 of 4
(2,475 Views)
That was kinda weird. Well anyways you can goto HELP>>Find Examples and type in VI under the search tab. You will see Vi Server-Changing another vi's properties. This is the same example I sent you. If you have any other questions let me know. Thanks.
BJD1613

Lead Test Tools Development Engineer

Philips Respironics

Certified LV Architect / Instructor
0 Kudos
Message 4 of 4
(2,475 Views)