NI Home
Cart Cart | Help
Hello Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI
You are here: 
NI Home > NI Developer Zone > NI Discussion Forums


Reply
Member
Raco
Posts: 2
0 Kudos

make output show up in new window

Hi I'm new to Labview and I was wondering if there was a way to show a desired result or output in a new window instead of on the same window as the inputs. Maybe I'm not asking the question correctly but here is a very simple example of what I want to do. In this example I am showing the indicators on the same window as the controls. What I want to do is have the answers pop up in a new window. Is this possible?
Knight of NI
altenbach
Posts: 23,140
0 Kudos

Re: make output show up in new window

First things first, since you are just starting to learn LabVIEW.
 
An 18 frame stacked sequence with frames linked via sequence locals and local variables is a nightmare for code maintenance. It reminds me strongly of the following topic: http://forums.ni.com/ni/board/message?board.id=170&message.id=230714
 
Are you using the "continuous run" button for this? (Else the case structure would not make sense). The continuous run button is a debugging tool and should not be used for regular operations. The right way would be to place your code in an event structure inside a while loop and create an event for "value changed" of the button.
 
Actually, such simple code could just spin in a small while loop with a small wait. This way the resuts get constantly updated whenever one of the controls chage. No need for the "calculate" button.
 
Back to your original question. You cold just place the output in a subVI and set the subVI to open the front panel if called.

LabVIEW Champion . Do more with less code and in less time .

Active Participant tbd
Active Participant
tbd
Posts: 887
0 Kudos

Re: make output show up in new window

Hi Raco,

   Don't forget to look for common math functions (including matrix functions) on the Mathematics\LinearAlgebra palett!

The attach VI(s) use the "Solve Linear Equations.vi" in an alternative way to handle this example. 

Cheers!

"Inside every large program is a small program struggling to get out." (attributed to Tony Hoare)
Knight of NI
altenbach
Posts: 23,140
0 Kudos

Re: make output show up in new window

[ Edited ]

All you really need is a matrix operations (Not available in LabVIEW base!):

You should really consider using matrix and array controls and indicators. Now you can easily change the size to anything you want (2x2, 5x5, 20x20 etc.) without rewriting the code.

(If you only have LabVIEW base, you shouldn't be doing these kinds of operations. Time to upgrade! :smileyhappy:)

I would really advise against showing the result in a subVI. It clutters the desktop and required more clicks to continue.

Message Edited by altenbach on 10-28-2007 12:43 AM


LabVIEW Champion . Do more with less code and in less time .

Member
Raco
Posts: 2
0 Kudos

Re: make output show up in new window

Thank you guys for your responses. They were exactly what I needed. I only used that matrix as an example. I really just wanted to know how to display any kind of output in a new window.
By using this web site, you accept the Terms of Use for this web site. Please read these Terms of Use carefully before using any part of this site. Please go here for information on ni.com's copyright infringement policy.
My Profile | Privacy | Legal | Contact NI © 2011 National Instruments Corporation. All rights reserved.    |    E-Mail this Page E-Mail this Page