LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Call SubVI

Thanks Joseph

Pls could you explain more detail, also if u have examples that is helpful for me

Thanks

0 Kudos
Message 11 of 28
(1,322 Views)
Hi
 
With regards to my problem, what happens if clone method is used instaed if event structure. Because i have seen the clone example and it seems bit easier.
 
Thanks
0 Kudos
Message 12 of 28
(1,313 Views)

The example i have seen is reentrants program in the NI examples

 

0 Kudos
Message 13 of 28
(1,311 Views)
Something doesn't make sense. Calling a subVI is extremely basic and is covered in basic tutorials that you should take. You keep mentioning things like dynamic calls, clones, reentrant and those are used for certain special applications and from what you have asked for so far, not at all necessary. You might want to explain in some detail why you are looking at those things. Are these subVIs all the same? Do you want the subVIs to all be open at the same time?
0 Kudos
Message 14 of 28
(1,291 Views)

Apologize dennis,this is the 1st time i am using this SubVi and calling into main prgs.

Now i got it after reading the materials.

Also i got a question,I called the subvi through the call Vi reference into the event structure of main program,after executing it gives the error message 1000,what it means

0 Kudos
Message 15 of 28
(1,288 Views)
The error means 'The VI is not in a state compatible with this operation.'
 
I have no idea why you are using the Call by VI Reference and unless you post the main VI and subVI, no one can tell what you have done wrong (aside from making things much more complicated than it needs to be).
0 Kudos
Message 16 of 28
(1,286 Views)
Actually,i have to run many applications(for ex:5), from my main program i can choose which application needs to run.so if i choose application2 then its corresponding front panel should open so that i can see the results.
 
sorry if anything is wrong becoz just i am learning and developing prgs.
 
Thanks
0 Kudos
Message 17 of 28
(1,285 Views)

Thanks Dennis

I have attached the prgm

0 Kudos
Message 18 of 28
(1,279 Views)

This would be the normal way to call a subVI.

As far as your example, as the help says, if you wire up to the type specifier input, you cannot use the Run VI method. Delete it and it will work.

Download All
0 Kudos
Message 19 of 28
(1,276 Views)
Thanks Dennis
 
But after the selection of 1st application,the sub vi front opens and running but the main vi finishes
 
 
0 Kudos
Message 20 of 28
(1,272 Views)