取消
显示结果 
搜索替代 
您的意思是: 

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. 

---
Silver_Shaper | CLD
0 项奖励
1 条消息(共 7 条)
3,930 次查看

ou probably need to provide significantly more information:

 

Should all four subVIs be able to run concurrently?

0 项奖励
2 条消息(共 7 条)
3,919 次查看

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! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
0 项奖励
3 条消息(共 7 条)
3,913 次查看

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.

---
Silver_Shaper | CLD
0 项奖励
4 条消息(共 7 条)
3,909 次查看

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 项奖励
5 条消息(共 7 条)
3,904 次查看

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

---
Silver_Shaper | CLD
0 项奖励
6 条消息(共 7 条)
3,902 次查看

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 项奖励
7 条消息(共 7 条)
3,889 次查看