LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Multiple vi

I need to design a test which has 3 sections using labview.Each section is a separate vi.

 

It need to work in the following way:

 

1.Click on a TAKE THE TEST  button and the control displays section 1.

 

2.Once section 1 is done,click on next button and control goes to section 2.

 

3.After section 2,click next to go to section 3.

 

4.Section 3 has a FINISH button.Click on it to stop running the vi.

 

How can this be done?

 

 

 

 

 

 

 

0 Kudos
Message 1 of 13
(4,431 Views)

Hi Anushaas,

 

I need to design a test which has 3 sections using labview.Each section is a separate vi.

How can this be done?

Well: I would create 3 VIs, each one with a "next"/"finish" button. Seems quite easy!

 

Have you done any of the free online resources that help you to learn LabVIEW? NI offers a lot of them!

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 13
(4,423 Views)

Hi anushaas

                       You can use subpanel and based on user input you insert each secion into the subpanel or you just make the sub vis opne one after the other.

                    anyway go through basics of labview and select the best option suitable for you application.

 

regards

senthil

0 Kudos
Message 3 of 13
(4,393 Views)

It sounds like you are just doing a wizard type applications.  Have another VI that has a statemachine that can call these VIs when they are needed.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 4 of 13
(4,360 Views)

There are lots of ways as mentioned above.  Sub-VIs, tab control, sub-panel.  This sounds like a homework question though so please post your attempt after picking a technique.  I suggest you start with a simple sub-VI application as that will teach you how to configure a basic VI to behave how you need it to.

 

You'll need to write 4 VIs.  Three that pop open when they're called and close when they're finished (File > VI Properties > Window Appearance tab).  And 1 main VI that strings them together in a sequence (wire the error terminals for dataflow).  

 

Give it a try and post back if you're stuck...

LabVIEW Pro Dev & Measurement Studio Pro (VS Pro) 2019
0 Kudos
Message 5 of 13
(4,339 Views)

While connecting the Timer.vi to main.vi, I see the Timer front panel appearing along with main.vi frontpanel.

 

What I want is only the Timer.vi front panel showing up while clicking START button in main.vi front panel.

 

How can I do this?

Download All
0 Kudos
Message 6 of 13
(4,130 Views)

Hi anushaas,

 

hide the mainVI front panel while the Timer VI is running…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 7 of 13
(4,109 Views)

I tried doing that as mentioned in the link:

 

http://digital.ni.com/public.nsf/allkb/5D861C416A55F2208625700600537025

 

but it is not working.The sub vi front panel appears along with the main vi front panel even before execution of main vi

0 Kudos
Message 8 of 13
(4,098 Views)

There are Invoke Node Methods for the VI for Front Panel Open and Front Panel Close.  Use those.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 9 of 13
(4,072 Views)

You tried the "alternative method" of setting the File > VI Properties > Window Appearance options?  That should have worked.  (EDIT:  Actually, their example may not be exactly what you want but the options on that tab can accomplish your intentions.)  

 

Those options are important to understand as they give you the ability to control the way VIs open and interact with the user.  They can be over-ridden when you build your VI into an application and the they can also be programatically controlled at run-time with property and invoke nodes as mentioned.   I suggest you play around with them a little more and try to get comfortable with all the ways they can be manipulated.  They are important when you want your VI to act like a "professional" application.  Smiley Wink

LabVIEW Pro Dev & Measurement Studio Pro (VS Pro) 2019
0 Kudos
Message 10 of 13
(4,048 Views)