LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to call subvi Asynchronously with version 8.6

Solved!
Go to solution

With new version 2011, labview has a function of Start Asynchronous Call, but version 8.6 does not have it.

 

I would like to call subvi, but not waiting for subvi to finish before excute the next step in main vi.   

 

An asynchronous call to a subVI starts execution of the subVI while allowing data flow to continue in the calling VI.

 

Anybody can help on how to realize this in version  8.6.

 

Thanks

0 Kudos
Message 1 of 8
(3,692 Views)

You simply need to call it dynamically the old fashioned way:

 

Open a VI reference and run it using the run VI method. Make "wait until done" false.

0 Kudos
Message 2 of 8
(3,687 Views)

Thanks for helpl. I am still very confused about this. how to open that run vi method? 

 

can you give me a simple example including Open VI Reference Function, call reference by node and this run vi method.

 

Thanks

 

Yihan

0 Kudos
Message 3 of 8
(3,676 Views)

@bozeman wrote:

Thanks for helpl. I am still very confused about this. how to open that run vi method? 

 

can you give me a simple example including Open VI Reference Function, call reference by node and this run vi method.

 

Thanks

 

Yihan


 

THe code for this Nugget should serve as an example.

 

Ben

 

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 4 of 8
(3,670 Views)

Hi Ben,

 

I attached one sub vi and one main vi here.  It is very simple example.

I want to main vi stops before subvi. But it does not work. Can you take a look?

 

If I remove the run vi session, just connect the open vi reference to call reference node, it works. The problem is when I inserting the run vi method in between, something is wrong.

 

yihan

Download All
0 Kudos
Message 5 of 8
(3,664 Views)

Did you look at the example I offered?

 

I typically don't look at posted VIs (my public machine has LV 7.1 and earlier) but I will look at jpgs.

 

Ben

 

 

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 6 of 8
(3,655 Views)
Solution
Accepted by topic author bozeman

CM.png

 

make case 0 look like this


"Should be" isn't "Is" -Jay
0 Kudos
Message 7 of 8
(3,652 Views)

works!!!!

 

thanks so much.

 

one more question, after Open VI Reference Function , i need to link type specifier vi refnum,  I was tyring to creat a constant from type specifier vi refnum terminal , and then select the subvi , but it does not work. I did your way, just simply link the Static VI Reference Function to type specifier vi refnum, then it works. Can you explian it? Thanks again!!!!

 

big help!!!!

 

 

0 Kudos
Message 8 of 8
(3,647 Views)