04-16-2012 10:08 AM
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
Solved! Go to Solution.
04-16-2012 10:27 AM - edited 04-16-2012 10:27 AM
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.
04-16-2012 11:35 AM - edited 04-16-2012 11:36 AM
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
04-16-2012 11:39 AM
@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
04-16-2012 12:00 PM - edited 04-16-2012 12:03 PM
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
04-16-2012 12:11 PM
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
04-16-2012 12:16 PM
make case 0 look like this
04-16-2012 12:37 PM
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!!!!