Bringing SubVI to the Front

I'm developing an interface for monitoring experiments but require a separate VI to control pump hardware. The problem is I implemented the pump VI as a subVi is called from the monitoring interface with a button press. After calling it, I want upon another button press to bring the pump VI to the front if opened, if not I'd like to reopen it.
Thanks  
Solved!
Go to Solution.

here is a way. Make sure you have your subVI properties set to "open front panel when called" by pressing cntl+I -> window appearance. You only need one button with this. If the front panel is already open, it moves the fp to the front. If it's closed, it calls the VI.
Note that if you have error wires going into your subVI, it wont react to any front panel activity from your main front panel while it is open if you open it via this method because of data flow. It will wait for the error cluster to return from the subVI before anything else happens. If this is the case, you will need to dynamically call the VI using an invoke node and the Run VI method. You would then put that in the false case instead. Should be straight forward though. This should give you an idea at least.
Message Edited by for(imstuck) on 06-01-2010 07:57 AM
CLA, LabVIEW Versions 2010-2013
Attachments:
openFP.PNG ‏18 KB

Similar Messages

  • Bringing JPanel to the front!!

    hi,
    I am using an JInternalFrame with some components like JTextField, JComboBox etc. Also, I am having a JPanel with some components which is to be displayed within the bounds of the JInternalFrame. If the JPanel is displayed, its components are mingled with the JInternalFrame components. I dont need that. Is there any way to display only the JPanel components as bringing it to the front. Please do reply. Thanks in advance.
    bhuvana

    hi,
    U are right. It is related to the Layout. Actually, I have set the Layout as null and specifically given the bounds for the components. What I need is that, I am having some components in a JFrame, with the same bounds I am displaying a JPanel with some components. But components of JFrame and JPanel are mingled with each other. But, I want to show only JPanel components on a button click by hiding JFrame's components and make JPanel components invisible on other button's click by hiding the JPanel's components. The point is that, I cannot make the JFrame's components invisible while showing JPanel's components. Is there any property to bring the JPanel front by hiding the others. Please do reply. thanks.
    bhuvana.

  • Why doesn't clicking on a Finder window always bring it to the front

    Right now on my screen I have two Finder windows. One is partially covered by the other.
    Clicking on the rear window does not bring it to the front. I've seen this happen many times already.
    Why wouldn't it come to the front and cover the current front window?
    Thanks,
    doug

    Start Firefox in <u>[[Safe Mode|Safe Mode]]</u> to check if one of the extensions (Firefox/Tools > Add-ons > Extensions) or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance).
    *Do NOT click the Reset button on the Safe Mode start window.
    *https://support.mozilla.org/kb/Safe+Mode
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes

  • Overdrive Media Console/iPhone Problem Resolved-"iTunes is not responding, bring iTunes to the front and check status.

    I could not download books from Overdrive Media Console from my iMac desktop. I realized if I turned off iTunes Match in my iphone, it fixed the problem. On your iphone...Go to "Setting", scroll down to "Music" and turn off iTunes Match. i Tunes match is a music subscription service that I had purchased a few weeks ago. I could not figure out when I tried to download audiobooks from Overdrive I got the following message "iTunes is not responding, bring iTunes to the front and check status". Problem solved. I hope this helps others who are experiencing the same problem!

    I'm assuming you are talking about audiobooks and if so, just download all the parts in overdrive media console then locate them in your finder. Go into Itunes and go File > Add new files to Library. Go select all the mp3s and upload them onto your library. Sync your iPhone with it and that is what has worked for me Hope this helps!

  • How to bring of subvis to the front panel of main vi?

    I am working on a simulaton project where a PID control toolkit is used to controla process .How can I access the controls of this PID controller when I execute the main VI ?

    I'm not sure I understand. The PID VIs I know run within your code on a loop basis. In every iteration of the loop they run using the values you input and output the proper values. So, to input values, you simply wire controls into them. Regardless of this, to open the front panel of a VI, you need to get a reference to that VI (using open VI reference) and wire that reference into a property node (both can be found in the Application Control palette).
    Select the Front Panel>>Open property, wire T into it and the FP will open. You can also set the VI to have its front panel open when called in File>>VI properties.
    Try to take over the world!

  • How can I display a changing variable in a subvi on the front panel of the main vi as the subvi is excuting

    In the document attached the vi on the right is sub to the vi on the left. On the subvi on the right the variable "Field Reading" is continuously updated on the front panel of the subvi as the "for" loop is executed, but only the last value of the variable is updated on the main vi front panel which is what is expected. My question is how can I display the changing value of "Field Reading" on the main vi front panel as the "for" loop in the subvi is running?
    Thank you.
    Solved!
    Go to Solution.
    Attachments:
    Doc2.docx ‏554 KB

    Hopefully I can explain it well enough. It really is simple.
    1) Create an empty global variable and call it something like User Interface References.vi
    2) For each and every control and indicator on your front panel, right-click and select Create/Reference
    3) Place these references wherever you like (I use a series of Event cases to perform my initialisation and these all live in one of these event cases). They can be placed anywhere in the main vi.
    4) For each of the references, right-click and select Create/Indicator
    5) Moving to the front panel, Cut all the indicators and Paste them in the global variable (eg. User Interface References.vi)
    6) Moving back to the block diagram, wire the global variable to each of the references and select the same named global variable.
    All the hard work is now done (until you add another user interface terminal). You should now have something that look as shown below, [except the reference labels would be to the left (not sure why the snippet put them above)]. In my latest program I have 82 references!
    Done. You can now access all your front panel controls and indicators anywhere in your program as shown below.
    You can just select Value in most cases, but in this particular case I wanted to fire off an Event to do some things (log the alarm) as well as just update the value. So, this is another bonus with the method.
    Hopefully this all makes sense. If not, let me know.

  • How to display the status of a SubVI on the front panel?

    Hi,
    I am writing a program to control an instrument through a serial communication port. The control and communication functions are integrated in a SubVI and they work fine.
    In the front panel of the main VI, I want to add some indicators to display the status of those controls in real time, such as using some LEDs to show whether the program is running in some loops of the SubVI, or use some indicators to show some variables in the SubVI.
    I tried using global variables, but I can't make them work in real time (or maybe I didn't do it right). The values of the global variables are actually changing on the fly, but the indicators on the front panel wouldn't reflect those changes until the program return
    ed from the SubVI.
    Is there a way to do this in Labview 6.0.2?
    Your earlist help is very much appreciated.
    Best regards,
    Hua

    Hua,
    I have attached an example in which a front panel boolean indicator is toggled in the subvi. Also, a front panel stop button is used to stop the loop execution in the subvi. References are passed to the subvi instead of the actual control values.
    Without seeing your code I'm not sure what was going on with the globals, but you had to have a data dependency somewhere which was keeping the code from running until after the execution of the subvi. The code must be totally independent of the subvi in order to run. Also, in order for the update to work it would have to be operating in a loop.
    Attachments:
    Main.vi ‏13 KB
    subvi.vi ‏20 KB

  • How do I monitor parameters from a SubVI on the front panel of the main VI?

    Good day.  I have a LabView program that I am modifiying (actually it is a National Instruments demo program called Simple PID Demo).  On the Front Panel of the main VI, I need to monitor several parameters that are on a SubVI.  How do I do this?
    Thank you very much for your time and help.
    Michael

    Hi Michael,
    Global Variables should solve your problem.
    Looks like you have to pass values  from  Sub VI that will execute continously inside a main vi.
    Look at attached VI
    Hope you can implement this type of logic in your program.
    regards
    Dev
    Attachments:
    Main_1.llb ‏53 KB

  • My mail window only viewable with 3 finger swipe, disappears when I try to click on it to bring it to the front

    I can't get it to come to the front to use it. How do I get it back?

    Known issue, See:
    * https://bugzilla.mozilla.org/show_bug.cgi?id=713014
    this issue maybe fixed in beta/nightly release
    * firefox.com/beta

  • Rotate square and bring it to the front

    Hi,
    i would like to draw a square which is displayed angular before and will be then brought to the front so you see it frontal. (for example by using a JSlider).
    i have here a little drawing where i tried do draw what i want to do
    bringingToFront
    does anybody know how i can realize this in a convenient way?
    pat

    Well that depends upon your picking strategy, if you have one. Basically you perform operations on the Transform3D co-ords of the TransformGroup your object belongs to.
    See SwingInteraction.java in the examples package for a neat thread safe design pattern at
    http://download.java.net/media/java3d/examples/1.4.0/j3d-examples-1_4_0-src.zip
    from the downloads page at
    https://java3d.dev.java.net/binary-builds.html
    regards

  • Must bring window to the front w/o switching focus

    Ok, now I'm happy subclassing whatever I have to, but I haven't been able to find anything for pushing a window to the front as toFront() will, that DOESN'T switch the focus.
    Basically I have subclassed JWindow to show a little window that will disappear when you click on it or after a specified period of time. Now I would like to be able to show that window above everything else, but if I use toFront() that little window will gain focus which is NOT what I want.
    I just need to push it to the front w/o gaining focus. if this is possible, like you can point me in the right direction, much appreciated. if this simply isn't possible due to the VM/OS windowing systems, please let me know.

    I was afraid someone would say that. that was what the guys in my JUG said, but I needed to check with a larger community to verify.
    On a second note, can anyone explain why a KeyListener attached to a JWindow won't recieve key events when there's a label in the content pane?
    If you know, please enlighten me.

  • Bring window to the front

    Hi,
      I want to bring the window to front when it is behind the window as well as when it is minmized. I have done for minimized state. But i was not able to bring the window to front when it is behind some window.
    Thanks & Regards,
    Jayagopal.

    Hi guys,
                  I found solution for this.
                   this.alwaysInFront=true
                   this.alwaysInFront=false;
    this will fix the problem.
    Thanks & Regards,
    Jayagopal.

  • Grouping of windows - bringing them to the front

    I am curious if anyone knows a way to link or group the windows of certain applications to appear, say when only ONE of the applications is selected(clicked) from the dock.
    part of me got very used to virtual windows on unix-based systems. i am trying to emulate that in some way by tiling the screen with the windows from say x11 and aquamacs emacs, plus possibly more apps. is this even possible. it would be nice not to need to click each application (in the dock) associated with a particular tiling. perhaps there's some 3rd party software that makes this possible?
    any advice would be greatly appreciated.
    Powerbook G4 & iMac G5 ::   Mac OS X (10.4.7)  

    I am not sure if I understood your question, but Expose can display a group of windows from a certain application. The default key is F10. For example, open two windows of Safari and two windows of Preview and press, F10. Pressing the tab key switches back and forth between the two applications. To choose a window within a certain application, use the arrow keys.
    One problem I see with this method is that minimized windows (windows in the dock) are ignored.
    I hope this helps.

  • Bringing items to the front.

    I have 4 rotating pictures and each time they rotate I want one of them to be on top of the rest but yet the corners of the others to be visible underneath. Is there a way I can do this as it seems only the first one will be on top obviously because it's top in the layers

    In PPro, you will need to stack sections of your clips on different layers to get them into the order you want. Use the razor tool as necessary to cut clips into sections so you can manipulate the order.
    Alternatively, if you have After Effects, assign them to 3D layers and do the job properly.

  • Bringing a JFrame to the front?

    i have already searched the forum, but i think i might not be using the right words....
    anyways, i have a JFrame that is launched when a button is clicked on another JFrame. Initially it is created,
    which brings it to the front. However, for subsequent button clicks (i.e.-when it is created, but currently minimized)
    I want a button click to cause this window to either un-minimize or jump to the front of any other windows on the
    screen. How can i do this? I don't see any methods in JFrame that provide this functionality. What am i missing? thanks!

    thanks! that worked!
    why is it that i have to add the .setExtendedState() call in the end? I read the documentation,
    but still don't understand why that is required to get this working correctly. any explanation?
    thanks again..

Maybe you are looking for

  • Is there a way to change the color of the Commenting indicator?

    Our company is utilizing the commenting feature more now in Adobe Acrobat X Pro.  This is an attempt to reduce printing on paper.  In one of our processes, people will use the comments listed in the Comments Panel to keep track of each note.  They ma

  • The icloud icon is no longer showing up in my system preferences and I can't access it

    I can't get to my desktop on my network and thought it might be a problem with the icloud. So I went to system preferences and the icloud icon is no longer there, although the mobile me icon IS showing... so, I don't know what's wrong!

  • Phpakt in DW CS3

    since DW CS3 doesn't support the phpakt-Extension there is no possibility to connect to msSQL Server using PHP (as I do). I think this is an enournous step backward in the development of DW. Is there any Possibility to connect to msSQL with PHP ? The

  • BEA WebLogic 10.3 JMS Jar version

    Hi, Someone knows what specific version of JMS BEA Jar should be used when connecting to a 10.3 JMS BEA Server from a PI 7.0 system? Thanks in advance.

  • Why can't I open my youtube account? I can do so in Chrome.

    Why can't I sign into my youtube account? I can do so in Chrome. I have Windows 7 and the latest Firefox version. I used to be able to do so.