LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to pass parameters between main and sub vi during parallel execution using the VI server technique?

Hello All,

I am working with the following example (from previous postings on this board) that demonstrates how to run a sub vi in parallel with the main vi.  I'd like to pass parameters between the main and sub such as the control (delay) and indicator (value) parameters of my subvi example.  Does any one know how to do this?  Parallel execution is important for me, I cannot just paste the subvi icon into my main diagram (two nested while loops...)

Many thanks,

Luis

Message Edited by cascao on 08-16-2005 08:42 PM

Message Edited by cascao on 08-16-2005 08:42 PM

Download All
0 Kudos
Message 1 of 5
(2,910 Views)


@cascao wrote:
Hello All,

I am working with the following example (from previous postings on this board) that demonstrates how to run a sub vi in parallel with the main vi.  I'd like to pass parameters between the main and sub such as the control (delay) and indicator (value) parameters of my subvi example.  Does any one know how to do this?  Parallel execution is important for me, I cannot just paste the subvi icon into my main diagram (two nested while loops...)

Many thanks,
Luis

Luis, you can use the VI Server methods 'Set Control Value' and 'Get Control Value', as demonstrated in the attached examples.

-Franz
Message 2 of 5
(2,901 Views)
Hi Franz,

thanks for your reply and example code.  Unfortunately I couldn't open it since I'm running LabVIEW 6.1.  Do you have of exporting the vi as 6.1, pdf or screen capture image?  Too bad NI doesn't make their code backward compatible....

Thanks a bunch,  Luis

Message Edited by cascao on 08-17-2005 12:28 AM

0 Kudos
Message 3 of 5
(2,898 Views)


@cascao wrote:
Hi Franz,

thanks for your reply and example code.  Unfortunately I couldn't open it since I'm running LabVIEW 6.1.  Do you have of exporting the vi as 6.1, pdf or screen capture image?  Too bad NI doesn't make their code backward compatible....

Thanks a bunch,  Luis

Message Edited by cascao on 08-17-2005 12:28 AM


Sorry, I should have seen that you use a < LV7 version. Here's the 6.1 code:

Message 4 of 5
(2,887 Views)
Hi Franz,

this is exactly what I needed and it maintains the parallel execution!  Thanks to your example now I finally understand how the set/get control value works.  This is definetely 5 stars.  Many, many thanks.

Luis
Message 5 of 5
(2,882 Views)