LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

subVI

Hi everyone,
i'm trying to create a main VI that looks like c.jpg(attached) with various tabs indicating for different testings. If i were to create various subVI for different testings, how do i connect them in the main VI (shown in d.jpg)?
Is it better if i create the subVI without the tab control first and readjust the icons in the main VI?
Thank you for any help given.
Good day!
Download All
0 Kudos
Message 1 of 6
(3,599 Views)

Hi,

Design Event Driven Block Diagram for your Front Panel using Event Structure and Create Value Change Event for the Tab Control.

In the Event handling case, check the value property of the tab. If it is the 1, then Call the subvi Corresponding to the 1st tab and if it the 2, call the subvi corresponding to 2nd tab.

Thanks

Sowjanya

 

0 Kudos
Message 2 of 6
(3,591 Views)
Your front panel figure doesn't show any "activation" control. All I see is some configuration parameters. Is something supposed to happen in response to a change in one of the configuration parameters? As it is, it's not clear how your VI is even supposed to work.

The event structure is one of the basic methods for implementing an event-driven VI if that's what you want. However, you shouldn't execute it based on the change in tab control's value. Doing so will just cause you headaches. Instead, you should add some sort of "GO" or "Start" or something to initiate the testing, and act on this.
Message 3 of 6
(3,568 Views)

Hi again,

sorry but i still don't quite understand on the property node portion, what do you mean by '...Corresponding to the 1st tab...'? And how do i wire subVI with other icons in block diagram?

Thanks for all the replies!

Message Edited by microes on 07-05-2007 09:41 PM

Message Edited by microes on 07-05-2007 09:42 PM

0 Kudos
Message 4 of 6
(3,532 Views)
Hi microes,

'how do i wire subVI with other icons' is a basic concept of programming in LabView - so you better RTFM or join one of the 3- or 6-hour courses on the NI website (search for them in the academics section, at a first glance I can only give you the german web address).

You have to create/select a connector pane and wire the needed controls/indicators to the terminals! Now you are able to wire the subvi with other functions in the block daigram of the main vi.

Message Edited by GerdW on 07-06-2007 10:46 AM

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 5 of 6
(3,499 Views)

Hello,

i will give this a try, many thanks.

0 Kudos
Message 6 of 6
(3,489 Views)