LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Calling Sub Vi

Hello all..

 

I am currently working in a project which has 4 sub vi and one main vi all are configured in a click event. Now am calling the subvi using vi reference. What I am feeling is its not a good method to do. Can any one suggest me any other method of calling the code effectively. 

Regards,
Silver_Shaper
CLD
0 Kudos
Message 1 of 7
(782 Views)

ou probably need to provide significantly more information:

 

Should all four subVIs be able to run concurrently?


LabVIEW Champion. It all comes together in GCentral GCentral
0 Kudos
Message 2 of 7
(771 Views)

Generally if you wish to call a sub-vi you simply pull the file (or icon if you already have it open) into the caller vi. Just like you've done with Add, Index array and the other vi's already. 🙂

 

/Y

G# - Award winning reference based OOP for LV, for free! ADDQ VIPM Now on GitHub
"Only dead fish swim downstream" - "My life for Kudos!" - "Dumb people repeat old mistakes - smart ones create new ones."
Certified-LabVIEW-Developer
0 Kudos
Message 3 of 7
(765 Views)

Am calling the sub vi not concurrently. All are done some what serial only. What about queues, notifiers and user defined event. Where they are use.

Regards,
Silver_Shaper
CLD
0 Kudos
Message 4 of 7
(761 Views)

1. Please post your VI and subVIs (zip them if necessary).  We cannot tell enough detail about what you are trying to do from a few sentences.  Also, please describe what does not work and how you want it to work.

 

2. Guessing: You probably can just wire the output of the first subVI to the input of the next one. No references, no queues, no events.

 

3. Work through the on-line tutorials to learn the basics of LabVIEW.

 

Lynn

0 Kudos
Message 5 of 7
(756 Views)

I can't post my vi here. Its a project for an famous industry. I ve almost finished. Any how thanks for your replies.

Regards,
Silver_Shaper
CLD
0 Kudos
Message 6 of 7
(754 Views)

when you call VI b y reference, you need to take while packaging, you have to mention explicitly to include those VIs.....

 

You can just drop that VI in the event structure...........

Anil Punnam
CLD
LV 2012, TestStand 4.2..........
0 Kudos
Message 7 of 7
(741 Views)