Clearing Previous Front Panel before displaying a new one.

hi,
My problem is clearing the old front panel. What I have is a VI with a CONFIG button. When user presses the config button front panel # 2 appears. There is a NEXT button on from panel #2. When you press the NEXT button front panel #3 pops up. The problem is that front panel # 2 stays in the background behind the new front panel # 3. What do i have to do to cancel the prevoius front panel? 
Solved!
Go to Solution.

This will cancel the pervious window.  Your booleans should be inside the event structure.
Reese, (former CLAD, future CLD)
Some people call me the Space Cowboy!
Some call me the gangster of love.
Some people call me MoReese!
...I'm right here baby, right here, right here, right here at home
Attachments:
start with this VI-2.vi ‏8 KB
2.vi ‏17 KB
3.vi ‏14 KB

Similar Messages

  • VI locks up when front panel is displayed

    Hi
    Firstly, I apologise if I’ve sent this to the wrong forum – I’m not sure if this is a TestStand or Labview related issue or possibly both.
    I have a test procedure developed using Labview 7.1 and TestStand 3.1. It’s run from TestStand’s Operator Interface VI (full version), and executes about a dozen TestStand sequences in turn which call lower level VIs that perform the actual tests.
    The code was written on a Dell GX240 Pentium 4 PC, with Windows 2000 + SP4 installed and runs without a hitch. However, I also have a second PC, same model & spec, but running Windows XP + SP3 instead of Win2K. I’ve also installed the same versions of Labview & TestStand on it, and copied across all my TestStand sequences & VIs into the same working directory. However, when I run the program on this machine, again using the same Operator Interface, it executes until about half way through and then hangs up.
    In several tests, I call up a graphical user interface VI which displays a picture and prompts the operator to click on either a ‘Pass’ or ‘Fail’ button – the actual text being passed as a parameter. When the lock up occurs, the front panel is displayed, but there’s no picture and the buttons are blank. Up to that point, previous calls to the VI have executed ok.
    If I modify the step that causes the problem, to call another VI - for example, a sub VI that doesn’t display a front panel - the new VI executes and the program continues to run. If I then change this VI’s configuration so that it’s front panel is displayed at run time, the problem re-occurs - the front panel outline appears but everything then freezes.
    Attempting to close the front panel window, results in either error code –18001 and the message ‘an error occurred accessing the Labview ActiveX automation server’ being displayed or the Windows prompt to close Labview as it’s not responding. Usually, clicking ‘End Program’ causes the PC to crash out & re-boot.
    Skipping TestStand sequences, whether they execute the GUI VI or not, just moves the point where the lock up occurs further down the list of tests, to the next step where the GUI VI is called. It’s almost as if something isn’t being closed properly when the program runs, and eventually reaches some limit, but why this doesn’t appear to effect the Windows 2000 PC, I’m at a loss. 
    Very much appreciate anyone’s thoughts.
    Thanks
    Bruce

    Hi Bruce,
    I found a KnowledgeBase article relating to the error you are seeing.
    It describes error 18001 "Error occurred accessing LV activeX automation server". 
    Let me know if this helps you out.
    This problem may also be due to how you have configured the Distributed COM (DCOM) settings on your machine. You will need to ensure that your DCOM settings allows the LabVIEW ActiveX Server to be launched and accessed through ActiveX automation. Even Administrator accounts can be denied launch and access permissions. To modify these permissions follow the steps below for Windows XP:
    Login to Windows using a UserID that has administrator privileges.
    Select Start»Run and enter dcomcnfg.exe. This displays the Component Services dialog window.
    Navigate to Component Services»Computers»My Computer and select DCOM Config. Ignore the warnings that may appear.
    Right-click on LabVIEW Application, TestStandLVRTS or the name of your LabVIEW ActiveX Server and select Properties to open the LabVIEW Application Properties dialog window. Select the Security tab. 
    You must give permission to the appropriate users so that they can access the LabVIEW server. You should give everyone access permissions and appropriate users launch permission. Only users who have launch permission will be able to access the server. Add permissions by selecting Customize and Edit for each of the three permission settings and manually adding permissions for each user.
    I doubled checked that LabVIEW 7.1 and 3.1 are compatible with windows XP and they are.  Just to make sure, it is 32bit or 64bit you are using?
    Let me know how you get on.
    Kind Regards
    Lewis Gear CLD
    Check out my LabVIEW UAV

  • Any LabVIEW 2009 Front Panel Gage displayed as Continuous 360 deg circle?

    Any LabVIEW 2009 Front Panel Gage displayed as Continuous 360 deg circle? I want to display a Motor position on the LabVIEW Front Panel as 360 degree circle. Is there any way to make the gage display as a continous 360 deg circle?
    Solved!
    Go to Solution.

    dbaechtel wrote:
    The knobs, gages and dials, none of them seem to be designed for 360 degree continuous operation. Of course I can set the scale for 0 to 360, but I can not get rid of the gap between 0 and 360.
    How do I set up a gage to display a Continuous 360 degrees without a gap between 0 and 360?
    To change the gap, grab the high marker line and move it to the desired place (To change the origin, grab the low marker).
    Also, don't forget to wrap the raw data into the 0..360 range if it falls outside. Here's a quick example (LabVIEW 8.0).
    LabVIEW Champion . Do more with less code and in less time .
    Attachments:
    360degreeGauge.vi ‏9 KB

  • Waiting a JInternalFrame to be closed before opening a new one

    Hello all
    I would like to wait a JInternalFrame to be closed by the user before opening a new one.
    Here is the sample code :
                   openRemote.getWindow().show();
                   Thread t = new Thread(new Runnable() {
                             public void run() {
                                  try {
                                       synchronized(openRemote.getWindow()) {
                                            System.out.println("Wait");
                                            openRemote.getWindow().wait();
                                            System.out.println("Closed");
                                       System.out.println("1111");
                                       //ChoosePhantomAction cpa = new ChoosePhantomAction();
                                       //cpa.actionPerformed(null);
                                       String phant = (String)JOptionPane.showInternalInputDialog(iFrame,"Phantom's name:", "Phantom selection",JOptionPane.PLAIN_MESSAGE,null,null, null);
                                       System.out.println("2222");
                                  } catch (java.lang.InterruptedException ie) {
                                       ie.printStackTrace();
                                  } catch (Exception exp) {
                                       exp.printStackTrace();
                   t.start();The first code line shows a JInternalFrame.
    I can see the JOptionPane on screen when i close the first frame but the message "22222" is never displayed. And i really can't understand why. Can it be due to the thread that uses Swing objects or the event dispatcher ?
    Thanks

    There are 2 files.
    The main one :
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import javax.swing.event.*;
    public class SSCCE extends JPanel {
        static JFrame frame;
         private JDesktopPane desktop = new JDesktopPane();
         private JInternalFrame iFrame = new JInternalFrame();
         public SSCCE() {
              setLayout(new BorderLayout());
              add(desktop, BorderLayout.CENTER);
              setPreferredSize(new Dimension(800,600));
              iFrame.setPreferredSize(new Dimension(300,200));
              JPanel panelCentre = new JPanel();
              panelCentre.setLayout(new BorderLayout());
              panelCentre.add(getMenusBar(), BorderLayout.NORTH);
              iFrame.getContentPane().add(panelCentre, BorderLayout.CENTER);
              iFrame.pack();
              iFrame.setVisible(true);
              desktop.add(iFrame);
        public JMenuBar getMenusBar() {
              JMenuBar menuBar = new JMenuBar();
              JMenu clickMenu = (JMenu) menuBar.add(new JMenu("Click here..."));
              createMenuItem(clickMenu, "...and now here", "click", new ClickAction());
              return menuBar;
        public JMenuItem createMenuItem(JMenu menu, String label,
                                                 String accessibleDescription, Action action) {
            JMenuItem mi = (JMenuItem) menu.add(new JMenuItem(label));
              mi.getAccessibleContext().setAccessibleDescription(accessibleDescription);
              mi.addActionListener(action);
              if(action == null) {
                   mi.setEnabled(false);
              return mi;
        public static JFrame createFrame() {
              JFrame frame = new JFrame();
              WindowListener l = new WindowAdapter() {
                        public void windowClosing(WindowEvent e) {
                             System.exit(0);
              frame.addWindowListener(l);
              return frame;
        class ClickAction extends AbstractAction {
            public void actionPerformed(ActionEvent e) {
                   final InternalPopUp ip1 = new InternalPopUp(desktop, "Please close to open 2nd window");
                   ip1.show();
                   Thread t = new Thread(new Runnable() {
                             public void run() {
                                  try {
                                       synchronized(ip1) {
                                            System.out.println("Wait");
                                            ip1.wait();
                                            System.out.println("Closed");
                                       System.out.println("1111");
                                       String phant = (String)JOptionPane.showInternalInputDialog(iFrame,"Enter something", "Enter something and check if 2222 is displayed in the console",JOptionPane.PLAIN_MESSAGE,null,null, null);
                                       System.out.println("2222");
                                  } catch (java.lang.InterruptedException ie) {
                                       ie.printStackTrace();
                                  } catch (Exception exp) {
                                       exp.printStackTrace();
                   t.start();
        public static void main(String s[]) {
              frame = createFrame();
              SSCCE sscce = new SSCCE();
              frame.setTitle("Sample test");
              frame.getContentPane().add(sscce, BorderLayout.CENTER);
              frame.pack();
              frame.setLocation(0,0);
              frame.setResizable(true);
              frame.setVisible(true);
    }The second one :
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import javax.swing.event.*;
    import javax.swing.border.TitledBorder;
    class InternalPopUp extends JInternalFrame {
        private int PREFERRED_WIDTH = 250;
        private int PREFERRED_HEIGHT = 80;
         private JDesktopPane desktop = null;
         class PopupListener implements InternalFrameListener {
              JInternalFrame parent = null;          
              public PopupListener(JInternalFrame parent) {
                   this.parent = parent;
              public void internalFrameClosing(InternalFrameEvent e) {
              public void internalFrameClosed(InternalFrameEvent e) {
                   desktop.repaint();
                   synchronized(e.getSource()) {
                        e.getSource().notifyAll();
              public void internalFrameOpened(InternalFrameEvent e) {
              public void internalFrameIconified(InternalFrameEvent e) {
              public void internalFrameDeiconified(InternalFrameEvent e) {
              public void internalFrameActivated(InternalFrameEvent e) {
              public void internalFrameDeactivated(InternalFrameEvent e) {
         public InternalPopUp(JDesktopPane desktop, String text) {
              this.desktop = desktop;
              addInternalFrameListener(new PopupListener(this));
              setPreferredSize(new Dimension(PREFERRED_WIDTH,PREFERRED_HEIGHT));
              JPanel panelCentre = new JPanel();
              JButton close = new JButton(text);
              close.addActionListener(new ActionListener() {
                        public void actionPerformed(ActionEvent e) {
                             hidePopup();
              panelCentre.add(close);
              getContentPane().add(panelCentre);
              pack();
              desktop.add(this, JLayeredPane.POPUP_LAYER);
         public void hidePopup() {
              //super.hide();
              try {
                   setClosed(true);
              } catch (Exception e) {
              desktop.repaint();
    }I never see the "2222" sting in the console ...

  • I try to open I photo and  I get the message, your iPhoto library is damaged...please restore from backup. But i din't made backup copy. How can i delete previous library and work wrom the new one?

    I try to open I photo and  I get the message, your iPhoto library is damaged...please restore from backup. But i din't made backup copy. How can i delete previous library and work wrom the new one?

    Try this (assuming you're using iPhoto 12): make a temporary, duplicate copy of the library and try the three fixes below in order as needed:
      Fix #1
    delete the iPhoto preference file, com.apple.iPhoto.plist, that resides in your Home/Library/Preferences folder. 
    delete iPhoto's cache files that are located in your Home/Library/Caches/com.apple.iPhoto folder.
    reboot, launch iPhoto and try again.
    NOTE: If you're moved your library from its default location in your Home/Pictures folder you will have to point iPhoto to its new location when you next open iPhoto by holding the the Option key.  You'll also have to reset the iPhoto's various preferences.
    Fix #2
    Launch iPhoto with the Command+Option keys depressed and follow the instructions to rebuild the library.
    Select options #1, #2 and #6. 
    Fix #3
    Rebuild the library using iPhoto Library Manager as follows:
    Using iPhoto Library Manager  to Rebuild Your iPhoto Library
    Download iPhoto Library Manager and launch.
    Click on the Add Library button, navigate to your Home/Pictures folder and select your iPhoto Library folder.
    Now that the library is listed in the left hand pane of iPLM, click on your library and go to the File ➙ Rebuild Library menu option
    In the next  window name the new library and select the location you want it to be placed.
    Click on the Create button.
    Note: This creates a new library based on the LIbraryData.xml file in the library and will recover Events, Albums, keywords, titles and comments but not books, calendars or slideshows. The original library will be left untouched for further attempts at fixing the problem or in case the rebuilt library is not satisfactory.
    OT

  • I have a new iPhone 5S, how can I get my photostream photos from my previous phone(iPhone 4S) to my new one.

    I have a new iPhone 5S, how can I get my photostream photos from my previous phone(iPhone 4S) to my new one.

    Setting up iCloud with the same account data and switching on Photostream should do the trick:
    I see different photos in My Photo Stream on each of my devices.
    Your device will keep up to 1000 photos, even if they are older than 30 days. Photos older than 30 days are removed from the iCloud server, so all devices may not have the same photos, depending on when you enabled My Photo Stream.
    If you prefer to have only the most current photos in My Photo Stream on each of your devices, and delete the older photos:
    If there are any photos in My Photo Stream that you want to keep, save them to your Camera Roll, then back up your Camera Roll and other data using iCloud or iTunes.
    Turn My Photo Stream off in Settings > iCloud > Photos (on a device using iOS 6, go to Settings > iCloud > Photo Stream). Confirm that you wish to Delete Photos.
    Turn My Photo Stream back on. iCloud will automatically push your stored photos to your device.
    Repeat these steps for each device.
    copied from iCloud: Photo Stream Troubleshooting

  • I need to deauthorize all of my computers before adding my new one.  will my library remain intact and will i need to simply plug my ipod touch back in to the pc?  thx

    i need to deauthorize all of my computers before adding my new one.  will my library remain intact and will i need to simply plug my ipod touch back in to the pc?  thx

    1. The library will remain as is. Back it up anyway.
    2. Authorize that computer individually before connecting the iPod touch to it.
    (79226)

  • My phone is water damaged and i bought new iphone 5S can i restored the data from my previous phone cloud backup to the new one

    my phone is dead due to water damaged and i bought new iphone 5S. can i restore the data from my previous phone cloud backup to the new one?

    how? i can see the backup from the phone cloud setting but there is nothing to click to restored. the one ive got now is since last year

  • My ipod touch is being replaced by a warranty. How do I back up the data? I have to send the old one in first, before receiving the new one.

    My ipod touch is being replaced by a warranty. How do I back up the data? I am on a PC. I have to send the old one in before receiving the new one.

    See:
    iOS: Transferring information from your current iPhone, iPad, or iPod touch to a new device

  • HT5622 How to keep my previous apps on my ipad with new ones that i purchased recently from iTunes

    How to keep my previous apps on my ipad with new ones that i purchased from iTunnes recently? i should note that i create new apple ID for my computer help friends.

    Apps and other itunes content are tied to the AppleId used to purchase them. They cannot be transferred.

  • How can i use the same front panel graph in more than one events in an event structure?

    i want to display the signals from my sensorDAQ in a graph.but i have more than one event in the event structure to acquire the signal and display it in the graph.the first event is to acquire the threshold signals and its displayed in the graph as a feedback.after the first event is executed, i will call the second event,where the further signals are acuired and compared with the threshold signals from the event 1.my question is how can i use the same front panel control in more than two events in the event structure?please answer me i'm stuck.
    Solved!
    Go to Solution.

    Hi,
    I have attached here an example of doing the same using shift registers and local variables. Take a look. Shift register is always a better option than local variables.
    Regards,
    Nitzz
    (Give kudos to good answers, Mark it as a solution if your problem is Solved) 
    Attachments:
    Graph and shift registers.vi ‏12 KB
    graph and local variables.vi ‏12 KB

  • Mail suddenly duplicates all previous emails and won't retrieve new ones

    At around 3pm today I saw that my my mac mail program download a 2nd copy of all the messages on my server, and won't retrieve any newer ones since. My Iphone will retrieve new ones and I am able to send from my mac mail program but just not receive.... I went on to my website email server and all the messages are still there too...

    Sometimes messages left on the server clog up the account there, or Mail may end up losing track of which messages have already been downloaded, or Mail may choke on a particular message it cannot download and that prevents it from downloading the rest as well. Solving this problem will probably require removing one or more messages from the server.
    You may tell Mail to remove from the server all the messages that have already been downloaded by means of Preferences > Accounts > Advanced > Remove now. Alternatively, you may use the Account Info window to remove specific messages from the server — choose Get Info (⌘I) from the Action menu (gear icon) located below the mailbox list in the main Mail window. And if the account allows web access, you may also remove messages from the server that way.
    Try removing from the server messages that have already been downloaded and/or the first message not downloaded yet (i.e. the message that Mail appears to be choking on).

  • Cracked my screen, should i call apple first before getting a new one?

    any help would be appreciated, thanks.

    As long as you understand that Apple can rightfully refuse to replace or fix the screen since it is not a covered issue. If you are near an Apple store you might try going in and talking to them. Some people have claimed that Apple store reps replaced their iPhone on the spot when they presented it to them with a broken screen. At the end of the day, the worse answer you will get from calling or going in is that the phone isn't covered and you have to buy a new one or pay for the repair yourself.

  • Airport Express worked with previous ADSL modem, not working with new one

    hello all.
    maybe the majority of you people won't be able to help me, since i am in Brazil.
    this is the story:
    for the last 4 years i was a subscriber of the Speedy ADSL provider (in conjunction with the Terra content provider). the Sppedy service is part of the Telefonica telephone company and uses the regular telephone infrastructure to provide the ADSL signal thru telephone lines.
    approximately 2 years ago i bought an Airport Express and set it up with the ADSL modem that Speedy provided to me. configuration was a breeze and it worked flawlessly since then.
    as of last thursday (april 7th) i became a subscriber of the Ajato ADSL provider. the Ajato company is part of the TVA (cable tv) company and uses the TVA cable tv infrastructure to provide the ADSL signal.
    the problem is: when i connect the Cisco DPC3000 ADSL modem to my Macbook via ethernet cable, i can surf the internet with Ajato with no problems. but when i connect the modem to my Airport Express (even though i have reset AE in order to clear the previous Speedy/Terra configuration), i get no internet in my home wireless network.
    i know you guys don't have Ajato there, of course. but i suppose some of you might have faced similar problems in similar cable ADSL environments.
    this said, any kind of help or hint is greatly appreciated.
    Message was edited by: Amaury Vargas: typos

    Amaury Vargas wrote:
    when i connect the Cisco DPC3000 ADSL modem to my Macbook via ethernet cable, i can surf the internet with Ajato with no problems.
    First that Cisco DPC3000 is a cable modem, not a ADSL modem. You probably don't need the DSL configuration that you had before.
    when i connect the modem to my Airport Express (even though i have reset AE in order to clear the previous Speedy/Terra configuration), i get no internet in my home wireless network.
    How did you "reset" the AE? How is it configured now? You probably need a setting of "Connect Using:" "Ethernet", rather than the "PPPoE" setting you may have had before.
    If everything else looks good, it's common to have to reset a modem when switching what device is connected to it. Try powering down the modem for a few minutes. If it has a reset switch, press that.

  • HT4623 How can I revert to the previous version of IOS.  This new one is crippling me.  I can't use contacts or my phone, it keeps freezing.  HELP!!

    I updated to the new IOS on my 4S yesterday.  Today I can't access my contacts.  I select one and it freezes for over a minute before the selection is viewed.  I can't exist this way.  I need my phone for work.  HELP!!  Is anyone else having this issue?  Any solutions?  Can I go back to the previous IOS?

    Make Firefox 4/5 look like Firefox 3.6.x:
    *NOTE: Support for Firefox 3.6.x is scheduled to end soon, so we can help you find solutions for using Firefox 5.
    **Also Firefox 4 support has ended (replaced by Firefox 5) and Firefox 6 is scheduled for release next week
    *http://www.computertechtips.net/64/make-firefox-4-look-like-ff-3-6/
    *http://blog.fligtar.com/2011/01/16/how-to-customize-firefox-4s-ui/
    Other changes that you are having difficulty with? Respond with the specific items.
    '''If this reply solves your problem, please click "Solved It" next to this reply when <u>signed-in</u> to the forum.'''
    Not related to your question, but...
    You need to update some plug-ins:
    *Plug-in check: https://www-trunk.stage.mozilla.com/en-US/plugincheck/
    *Adobe Shockwave for Director Netscape plug-in: [https://support.mozilla.com/en-US/kb/Using%20the%20Shockwave%20plugin%20with%20Firefox#w_installing-shockwave Installing ('''''or Updating''''') the Shockwave plugin with Firefox]

Maybe you are looking for

  • Multiple Query/View usage

    "Avoid multiple query execution by assigning a query or view to just one data provider, which is used by all web items." could you please explain me the importance of this?

  • Emoji in Pages

    Hi there, I was trying to enter some of the new Emoji characters in Lion into a Pages document, but all it displays are blank spaces. It correctly changes the font, but doesn't display anything. Entering Emoji in TextEdit works (through the special c

  • Upgrading Photoshop CS5 upgrade to CS6

    My base full version is CS4. Bought CS5 upgrade in 2013 and would like to upgrade to CS6. Is this possible? Could be that only the full version of CS5 (i.e. being the 'base'-version) can be upgraded..? Can't find any info on that. Thanks

  • R12 SQL*Plus Access - Application Manager

    Hi Guys, Finally managed to get my R12 up and running on Linux Redhat 4. I'm trying to get client SQL*Plus access to the database but i'm having a few problems. If i remember correctly on 11.5.10.2 as sysadmin you need to log on as Application Manage

  • QuickTime 7.2 Not Functioning in Any Browser

    Hi there, Using Tiger 10.4.10 with QuickTime Pro 7.2. Any page (in any browser, Safari, Camino or FireFox) that has a QuickTime component on it will no longer display the QT element. All I see is a faded Q with a white question mark inside it. I have