LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How can we switch two Vi files back and fourth?

Hello,

I am using Labview 2006.I am using a switch(OK button),if it was pressed I want to open ma 2nd Vi file,it was done,but the problem was there is also a switch in the 2nd Vi file if it is pressed I want to open my previous Vi file,but it is not happenings it gone stuck. Can any one help me???

Thanx ..

0 Kudos
Message 1 of 7
(2,700 Views)

There might be one of several reasons for this behavior. Please attach your VIs (NOT pictures of VIs) to a post, so the people here can see what you have done and suggest a remedy.

 

Cameron

 

To err is human, but to really foul it up requires a computer.
The optimist believes we are in the best of all possible worlds - the pessimist fears this is true.
Profanity is the one language all programmers know best.
An expert is someone who has made all the possible mistakes.

To learn something about LabVIEW at no extra cost, work the online LabVIEW tutorial(s):

LabVIEW Unit 1 - Getting Started</ a>
Learn to Use LabVIEW with MyDAQ</ a>
0 Kudos
Message 2 of 7
(2,683 Views)

@geethu88 wrote:

Hello,

I am using Labview 2006.I am using a switch(OK button),if it was pressed I want to open ma 2nd Vi file,it was done,but the problem was there is also a switch in the 2nd Vi file if it is pressed I want to open my previous Vi file,but it is not happenings it gone stuck. Can any one help me???

Thanx ..


There was not LabVIEW 2006.  Do you mean LabVIEW 6?  Or maybe LabVIEW 8.2 (which was released in 2006)?

 

I'm not really understanding your problem.  Do you just want to close the second VI and therefore give focus to the first?  Showing some code helps explain things too.


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 3 of 7
(2,682 Views)

Hello

 

I'm using LabVIEW 2013!

 

I've almost the same problem. I have a Main VI that I open. Then I want to press a button and open a VI 2 (The Main VI should hide). When I close the VI 2, the Main VI should appear again. So there is always only one window visible.

 

I've tried it but the problem is, that when I go back to the main VI, it's like frozen. It looks like its deactivated.

 

Here are pictures of both the Main VI and the VI 2 (the code files are attached also)

 

Does anyone have an idea what the problem is??

 

THANKS

 

Main VI.jpg

VI_2.jpg

Download All
0 Kudos
Message 4 of 7
(2,599 Views)

@wasauchimmer wrote:

Hello

 

I'm using LabVIEW 2013!

 

I've almost the same problem. I have a Main VI that I open. Then I want to press a button and open a VI 2 (The Main VI should hide). When I close the VI 2, the Main VI should appear again. So there is always only one window visible.

 

I've tried it but the problem is, that when I go back to the main VI, it's like frozen. It looks like its deactivated.

 


There are several things wrong with your VIs the most important is that you aren't using data flow.  I'd recommend some free LabVIEW training:

 

3 Hour Introduction http://www.ni.com/white-paper/5243/en/

6 Hour Introduction http://www.ni.com/white-paper/5241/en/

LabVEW Basics http://www.ni.com/gettingstarted/labviewbasics/

Self Paced training for students http://www.ni.com/academic/students/learn/

Self Paced training beginner to advanced, SSP Required http://sine.ni.com/myni/self-paced-training/app/main.xhtml

LabVIEW Wiki on Training http://labviewwiki.org/LabVIEW_tutorial#External_Links

 

Attached is a zip with VIs that I think does what you want.  Run the main and then click the button to show the second window.  Then close it (or hit stop) to close it and show the main again.  From there you can close the main to stop, or click open again to re-open it.

0 Kudos
Message 5 of 7
(2,491 Views)

Thanks for the example. That's exactly what I was looking for!

 

Thanks also for the links! Will check them 🙂

0 Kudos
Message 6 of 7
(2,454 Views)

@wasauchimmer wrote:

Thanks for the example. That's exactly what I was looking for!

 

Thanks also for the links! Will check them 🙂


Giving Kudos is a great way to say thank you.

Message 7 of 7
(2,446 Views)