07-17-2008 07:58 AM
Hi Veeru,
here is a simple example, how you can do it with a vi template.
Hope it helps.
Mike
07-17-2008 08:06 AM - edited 07-17-2008 08:07 AM
Are you sure of this option? I suppose the event-handler won't be able to process next event until the subVI it launches hasn't ended execution. Maybe you have to launch VI inside event structure, not actually put the subVI, am I right? Sincerely, I don't know so deeply events, I seldom use them...
@Pnt wrote:That is another option to run two subvis in parrallel
07-17-2008 08:11 AM
07-17-2008 08:18 AM
Hello Veeru,
I am in the middle of doing something very similar to you. I have a bunch of buttons on a front panel and each button must launch a seperate VI (in parallel). I store the filename of the corresponding VI in the button labels. When a button is pressed, first I check to see if the VI is already running. If it is, I ignore the button, if not, I execute the VI using a run VI invoke node and then open the front panel. I have each individual subVI close it's own front panel before it stops executing. To get the output of the each VI I think you can use an invoke node with "Control Value Get". VI is attached. Hope that helps! (I am new to labview too).
Jorge
07-17-2008 08:34 AM
Graziano wrote:
Are you sure of this option? I suppose the event-handler won't be able to process next event until the subVI it launches hasn't ended execution. Maybe you have to launch VI inside event structure, not actually put the subVI, am I right? Sincerely, I don't know so deeply events, I seldom use them...
07-17-2008 08:38 AM
@Pnt wrote:
Where i write subvi 1, you put there the sub vi itself.There is no dependency between two loops so the main vi can launch another vi, before previous has ended.
07-17-2008 09:03 AM
Thanks everyone for your help
The discussion is interesting,when i look at Mikes ex(mesage 21) its interesting.
i will proceed with the tips from this issue.Also thanks Jorgewpi. If there is any problem involved pls let me know.
Thanks