Button Function Problem When Showing Front Panel of Sub VI

Good Afternoon,
I have a created a simplified version of a much more complicated vi to illustrate the problem I am having. Attached is a main vi and a sub vi. The main vi has a boolean which says to open or close the front panel of the sub-vi. This works great. However, the other push button ( " My Button Function" ) on the main vi does not work properly when the sub-vi front panel is being displayed. It is supposed to be a  "switch until released" button. However, if you try to click and hold it down while the sub-vi panel is displayed it acts as if I am clicking the button rather than being able to hold it down? I was wondering why showing the sub-vi front panel makes this happen? And also, if anyone has any recommendations to fixing this problem?
Attachments:
main.vi ‏12 KB
sub.vi ‏5 KB

What is happening is the loop is running very fast.  It is constantly reading the open SubVI button and opening the subVI if true, even if the subVI front panel is already open.  If you are trying to hold down the other button, the opening of the subVI front panel is taking away the focus from the main VI and thus acting like you let up on the button.
Maintain the status of the subVI in a shift register and only open or close it if the status changes.  See attached Main VI.
Attachments:
main.vi ‏12 KB

Similar Messages

  • Show front panels of sub VIs when running a EXE (build application)

    I've created a exe file and it works fine. However, it only shows the front panel of main VI and I can not open sub VIs (it looks like they are all hidden). I know it can be done by creating a library file along with this exe file, but that's not what I want. I want to create a single exe file that shows several front panels, and that can be run with run time engine. Is there any way to show front panels of sub VIs by running a exe file?

    In the development mode, how are you displaying the front panels? Did you right click on the subVI and select SubVI Node Setup and choose 'Show Font Panel when called/Close afterwards if originallly closed' or did you choose the same options from VI Properties for each subVI. If the second, then the app builder will automatically retain the front panels of the subVI. If you chose the first option or if you are using VI Server to open a front panel, then the default setting in the app builder is to remove the front panels. You would then have to go the VI Setting tab in app builder and edit the settings.

  • Dialog box problem when controlling front panel remotely

    I have encountered an issue with the Web Publishing Tool- I have a VI that calls a subvi that uses the Promt User for Input function.  When controlling the front panel from another computer I get a message saying that you "Cannot control subVI front panels remotely" and points you to the machine actually running LabView to enter the information in the Prompt User dialog box.  I set the subVI front panel to show when called, which does show the front panel of the subVI, but still get the error related to the dialog box.
    Is there any way to make this work?  Am I missing something obvious?
    Thanks,
    Nathan

    Hi Nathan.
    There are some limitations with dialog boxes in remote applications.  This tutorial has some good examples and explanations on functionality to avoid with web applications.  Additionally, the LabVIEW online Help offers some general guidance for Viewing and Controlling Front Panels Remotely, which may help you in further developing your application.
    Hope that helps!
    Lorielle P.
    Applications Engineer
    National Instruments

  • Open front panel of sub vi when called - how?

    Hello,
    I have a VI with several sub VIs.
    I want some of the sub VI front panels to be opened, if they are not yet opened and if they are called but I want them to stay in the background.
    There are two SubVI Node setups: "Open Front Panel when loaded" and "show front panel when called"
    Both are not what I want. If I select "show front panel when called", then the front panels are opened but flickering because they are called often and alternately.  
    Greetings Johannes
    Using LabVIEW 7.1 and 2009 recently
    Solved!
    Go to Solution.

    johanneshoer wrote:
    No, no issue with my code :-)
    Yeah, we've heard that one before...
    @smercurio_fc: With your example I can see if a subVI is opened or not, but how can I open the subVI during run time if it is not opened
    Just call the method with it set to "write" (right-click and select "Change to Write"). I don't recall if LV 7.0 has a Front Panelpen method. Check the LabVIEW manual.

  • Show front panel in runtime

    I want to show front panel in runtime( or when called) without all the
    menus, tool bars and scroll bar, just as a ordinary control panel only
    with window title.
    any suggest will be appreciated.
    Jacob
    Sent via Deja.com http://www.deja.com/
    Share what you know. Learn what you don't.

    [email protected] wrote:
    > I want to show front panel in runtime( or when called) without all the
    > menus, tool bars and scroll bar, just as a ordinary control panel only
    > with window title.
    >
    > any suggest will be appreciated.
    >
    > Jacob
    >
    > Sent via Deja.com http://www.deja.com/
    > Share what you know. Learn what you don't.
    These are options you can setup using the Sub-VI Setup.
    You can also access these through the VI Server.
    If you look on NI's web site and get the Splash Screen VI
    you can see how to do this.
    I can't get to LAbview right now or I would be more specific.

  • LV2011 problem with several front panels

    Hello,
                 There is a bug in my software and I don't know it is common to every one or not. This not to be worry, I will notify you anyway. When I open only one front panel and one block diagram which having a program to communicate with a serial device. In this case, if I choose the VISA resource name, it obviously takes some time to popup the USB and after it show the port and front panel will stay in front you until you choose the device. Here, every thing is fine but when I open several front panels and working on only with serial program front panel to choose the serial device in VISA resource name. Then after some time, it took me to another front panel. I have seen this problem several times in past two months. More, even when I am decorating the front panel and front panel took some time after pushing some controls and switched another front panel.
    Is this bug? Or I common for every one.
    Using labVIEW 2011.

    I am certainly using labVIEW from two months. So, I did not use MAX in my past time. I only used one time to check my USB 6008 device but this is off topic here. I will tell you down here.
    Suppose, If I open multiple VI's and I am only working with one VI that can communicate with my SERIAL device and the rest of the VI's(Block diagram and front panel) are rested. This case, if I click the drop downlist of "VISA resource name" of SERIAL VI, then it took some time(200ms or 100 ms, just it is a guess) to populate and it is switched to another front panel which were opened and rested before. Again, I need to come to my serial front panel again to select the COM port. This is one case.
    If don't have any other VI's not opened than this serial Vi. Then it stays on the same front panel.
    Is this bug came with labVIEW or  is it common?

  • Programaticly (dynamicly) show front panel of a vi

    I want to programaticly show the front panel of one of my sub VI's. I have one method that allows me to do this but I would like others input on wether this is a proper way or if there is a better method. I want to make sure that I am not going to gobble up memory.
    The VI properties are set with the show panel on all unchecked.
    The reason for doing this is because sometimes I want user input and other times input is provided dynamicly.
    Attachments:
    DynamicShow.vi ‏36 KB

    Your code looks pretty good. The only thing to be careful of is reference numbers and loop. With a WHILE loop (like you are using in tis example) there would be no problem simply running the reference through the array.
    However, if you every want to do something similar using a FOR loop you will need to be very careful because they have a fundamental difference. WHILE loops always execute at least once, so their outputs are always defined. FOR loops can execute zero times, and when they do their outputs are undefined--which in the case of a reference results in an invalid reference and lots of errors down stream from the loop.
    Mike...
    Certified Professional Instructor
    Certified LabVIEW Architect
    LabVIEW Champion
    "... after all, He's not a tame lion..."
    Be thinking ahead and mark your dance card for NI Week 2015 now: TS 6139 - Object Oriented First Steps

  • Show front panel of subVI on a real-time target

    Hi,
    I'm running an application on a real-time target (14.00). On the main front panel of the application, I have a button who open another VI with the invoke node method but this component doesn't work with Real-Time taget. So, how can I show the front panel without this method ?
    Thank you

    Hint: RT = there should be no GUI.
    RT applications are meant to just run off on their own.  GUI is not part of a real RT system since that adds a non-deterministic process to the system, adding jitter (which is a big no-no in RT).  What you should be doing is making a Windows host application that can communicate with the RT system (via Network Streams, TCP/IP, etc).  The host application acts as the GUI/HMI.
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines

  • Problem with Append Front Panel Image To Report.vi

    I'm using LV 7.0 with the MicroSoft Report Generation toolkit installed. Under the Report Generation palette there exists an Append Front Panel Image To Report vi. Also on the same palette there is an Easy Print VI Panel or Documentation.vi which uses another Append Front Panel Image To Report vi located under the VI Documentation subpalette. Here is the problem; I have serval vi's that use Append Front Panel Image To Report.vi from the Report Generation palette and I have a couple of vi's that use the Easy Print VI Panel or Documentation.vi which is linked to the Append Front Panel Image To Report.vi located under the VI Documentation subpalette. Clear as mud!
    This creates a conflict of intrest. In a nut shell th
    ere are two vi's with the same name in different locations doing different things. I have a program with subvi's that need to call each respective Append Front Panel Image To Report.vi and that just is not working.
    Is this a known issue with LV7.0 that has already been addressed and/or resloved?
    Thanks.

    ATC Herman,
    Based on the picture you posted and what you are describing, it looks like you might have an incomplete install. What version of the toolkit do you have? Was it first installed on an earlier version of LabVIEW, or did you install it first on 7.0? Your VI Documentation Palette appears the same as if you hadn�t installed the toolkit. I�ve attached a screenshot of what it should look like. The VI in question is a polymorphic VI, which may be causing some of the confusion. If you right-click on it and select �Open Polymorphic VI�, it will show you what options you have, depending on the input. I opened both test and test1, and they appeared the same for me. I was able to have them both on the block diagram. The path to bo
    th of them was C:\Program Files\National Instruments\LabVIEW 7.0\vi.lib\printing\ReportDocExtensions.llb\Append Front Panel Image to Report.vi. The .llb ReportDocExtensions has the polymorphic VI, as well as copies of each of the possible instantiations. Make sure you have these VI�s in the .llb in that directory.
    There is a KB on having the toolkit on multiple versions of LabVIEW and what files you need. Make sure you have all the files listed.
    Please let me know if you are able to get to the bottom of the issue with the above information.
    Thanks, and have a happy day!
    Robert M
    Applications Engineer
    National Instruments
    Robert Mortensen
    Software Engineer
    National Instruments
    Attachments:
    Report_Palettes.JPG ‏57 KB

  • Reference to control on main front panel fails when subvi front panel is closed?

    Hi All,
    I'm experiencing an odd bug. In my code, I use a subvi to control a piece of hardware. This subvi has controls for all of the functions of my hardware.
    I'm changing the value of one of these controls from my main front panel by running a reference to a knob on my main front panel into the subvi, grabbing the value of the knob with a property node, and then updating the value of the subvi control using a signaling property node.
    This works fine when my subvi front panel is open but fails to work at all when the subvi front panel is closed.
    I'm new to labview , so any help is appreciated.
    Thanks,
    Arpan
    Solved!
    Go to Solution.

    What is your LabVIEW version?
    Front panels that are not shown are typically not updated and might not even be loaded into memory.
    The presence of certain code elements (e.g. property nodes) often forces the front panel to be in memory even if it is not shown, but I haven't studied it in a long time so there might be subtleties. Maybe somebody from NI can give more details.
    If it does not work unles the FP is open, open the front panel minimized to avoid distraction.
    Can you attach some code? Maybe there are better ways to do all this anyway.
    LabVIEW Champion . Do more with less code and in less time .

  • Show Front Panel form VGA output of CVS

    I have built a stand-alone Real-Time Application on my CVS by following the method in ‘RT_Getting_Started.pdf’ file, and I think it is successful (because the ‘startup.rtexe’ file is already created in the startup folder in CVS). I was set the application file as a startup.
    Is it possible to show a Front Panel of Real-Time Application (Startup program) from a VGA output of CVS without using any PC?  I want to use only CVS and Monitor (from VGA output).

    hello MFarid,
    Thank you for your post.
    It is only possible to show some images and counters on the VGA output of an CVS. You will need a graphical operating system (like windows) to present the complete front panel of your VI. There are complete panel PC's (like PPC 2015 and PPC 2115) which are complete PC's with a touch screen.
    If you want to make a simple user interface (only some buttons to control the CSV and some simple data presenting) a touch panel (Windows CE device) can be used. Please be aware that you need a Labview touch panel module to deploy to this kind of device. The simple user interface can communicate throug shared variables with your Labview application on the CVI.
    So I'm sorry to say that with only a monitor and a CVS it isn't possible.
    Many greetings,
    Martijn
    Martijn S
    Applications Engineer
    NI Netherlands

  • Noise when using Front-Panel headphone j

    This message is for those who may experience noise in headphones plugged into a case's front jack. These noises would likely be heard if one uses a quality phone set with good isolation. (not noise cancelling type) and during quiet times, such as when no music or other audio source is being played, or perhaps when listening to programming with very high dynamic range and the frequent, very low loudness passages of music, etc.. There is no problem with the card. (I'm using an Xtreme Gamer card) The problem will be with the header panel on the case itself. You need to isolate the case ground from the other grounds coming in from the various board headers, such as USB, the sound card, etc. I accomplished this by scraping away the foil from around the stud landings on the panel module board. Of course you need to exercise care when performing such a modification but you will be rewarded with absolute, golden silence, when that's what you should be getting. Again, there is NO problem with the card.

    If it is possible to remove the circuit board assembly for the front panel jacks from the case, you can see how the circuit foil "traces" on the board are connected. In my situation, and probably yours, you may find that the mounting screws that hold the circuit board to the computer case will also have the foil traces under them and that those traces will be a common ground to the rest of the circuits on the board. The problem arises because the computer case ground is at a somewhat different "signal" level than the grounds coming into the circuit board from the various "header" connectors, that is, the connectors you mate with the corresponding pins on your sound card, as well as the USB pins, if you choose to hook them up too. There is a great deal of strange noises that can be present in a given motherboard's circuits and associated grounds. All the ground connections from the headers coming into the board should only go to the individual connectors on the front panel. I cut away the foil paths where the grounds were all run together on the circuit board, thus isolating them from one another, as well as cut away the foil under the mounting screws. You may even have to cut foil from both sides of the board, depending on your model. You need to take care not to open up a circuit when making those cuts. A good, sharp Xacto knife or utility knife should work fine.
    I found it strange that the designers of the board didn't consider the problem of "ground loops", which is what the problem is defined as. Ground loops, as you can see now, can happen when when a circuit or even separate components altogether, such as a computer, TV and HIFI system are all connected together. In the?HIFI setup case, hum results because the point of incoming cable ground for your TV and/or Internet are at a different 60 Hz voltage from the ground in your home's wiring,?to which your computer is connected for power. This causes a current to flow through the audio cable shields that is large enough to induce a voltage into the audio equipment. I've even heard of ground loops so bad that people have seen sparks when trying to hook up the audio cables between the pieces of equipment. Almost anyone who has a system hookup such as I described has run into that problem of hum when using their computer's audio into their HIFI setup. The only relief is to get some type of ground "isolator" that connects between the incoming cable and your TV and/or Internet cable modem. A quick and dirty solution is to use a grounding adapter in the AC connection for your computer and other equipment that uses a grounding plug. This, of course, is not recommended, but will kill the hum for now. I thought I would throw in the HIFI setup hum problem since, as I said, many people are suffering from that problem.
    Even if the header grounds were all shorted together, the problem would be no where near as bad as having the case ground shorted to the header grounds, which was the way mine was made.
    I know this is a looooonnnnnng winded post but trying to explain something like this in writing is not easy. Hopefully you will now have a better understanding of what I meant the first time, even though it was by no means a short post either.

  • Problems with Remote Front Panel

    Hi, I've seen "How to create a LabVIEW Remote Front Panel" video of Grant H.
    I've followed the steps to create a remote front panel but doesn't work. When I open the URL in Explorer, show the title, header and footer but don't show the front panel, only a image that say: "Downloading front panel 0.00% of 0 Bytes" and don't work.
    My Remote Front Server in turned on and I'm using LabVIEW 2010 in Windows 7.

    I am having the same issue.
    Is there anything I can look up to find possible solutions?
    BTW, I run the same application in a different machine and it works just fine. I just can't seem to find where I should be looking...

  • Motherboard no rear audio when "disable front panel jack detection" not selected

    I recently built this system.
    Motherboard:  MSI P67A-G43 (B3) LGA 1155 Intel P67 SATA 6Gb/s USB 3.0 ATX Intel Motherboard
    Processor:   Intel Core i7-2600 Sandy Bridge 3.4GHz LGA 1155 95W Quad-Core Desktop Processor Intel HD Graphics 2000 BX80623I72600
    Memory: G.SKILL Ripjaws X Series 8GB (2 x 4GB) 240-Pin DDR3 SDRAM DDR3 1600 (PC3 12800) Desktop Memory Model F3-12800CL7D-8GBXH
    Video Card: EVGA SuperClocked 012-P3-1572-AR GeForce GTX 570 (Fermi) 1280MB 320-bit GDDR5
    HD 1: OCZ Solid 3 SLD3-25SAT3-120G 2.5" 120GB SATA III MLC
    HD 2: Western Digital Caviar Black WD2002FAEX 2TB 7200 RPM SATA 6.0Gb/s 3.5" Internal Hard Drive
    Additional NIC:  Rosewill RC-400 10/ 100/ 1000Mbps PCI V2.2, 32/64-bit, 33/66MHz Networking LAN Card
    DVD: SAMSUNG Black Blu-ray Combo SATA Model SH-B123L LightScribe Support - OEM
    Power Supply: OCZ ZT Series 750W Fully-Modular 80PLUS Bronze High Performance Power Supply
    Case: Antec One Hundred Black Steel / Plastic ATX Mid Tower Computer Case
    I also have an old Creative 4.1 speaker system (been around for about 10 years from system to system)
    It worked flawlessly....until.....this morning my daughter was watching NetFlix and she plugged in the headphones.  The sound muted the rears (as it is supposed to do) and sound came through the headphones (front jack) as it was supposed to do.  She said some popup appeared to which she didn't read and just hit OK (doh!).  Now I am unable to get any sound out of the rear speakers when unplugging the headphones.  After much playing around, if I un-check  "disable front panel jack detection" in the MSI Audio Manager then the sound once again works from the rear, however (as can be expected) it doesn't mute it when the headphone jack is re-plugged in. Strange, thing is that this worked before this morning.  It's like it is always detecting the headphones and therefore mutes the rears.

    Additional information. 
    I also have to set:  "Separate all input jacks as independent input devices"      in the MSI Audio Manager (Device advanced settings) in order to get my microphone to work too.   
    What the heck happended?  What's wrong?
    MSI, got any ideas?

  • Problem when showing MS power point files on browser.

    Hi
         I wrote the code in JSP to show MS power point files on browser. And
    I logged session for security as follow.
    <%@ page language = "java" import="javax.servlet.*, java.util.*, java.io.*" %>
    <%
         String filename = request.getParameter("fileName");
         String path = request.getParameter("path");
         session = request.getSession(true);
         if(session.isNew()) {
              response.sendRedirect("login.jsp");
         }else {
              response.setContentType ("application/vnd.ms-powerpoint");
              int iRead;
              FileInputStream stream = null;
              try {
                   File f = new File(path+filename);
                   stream = new FileInputStream(f);
                   while ((iRead = stream.read()) != -1){
                        out.write(iRead);
                   out.flush();
              }finally {
                   if (stream != null) { stream.close(); }     
    %>
         I got problem with showing in Windows XP with MS Office XP only.
    Could anyone please give me suggestion.
    Thank you.
    Atthapon

    Hi!
    I don't have Office XP. But why you don't try to use application/octet-stream instead of vnd.ms-powerpoint? It should work with it.

Maybe you are looking for

  • How do i save my pdf fikes to the cloud?

    I have noticed that some if my pdf files on my kendle seem to disappear, is this because I have exceeded my storage capacity?

  • Applications, data and folders structure question

    I am new to the Mac OS X and wish to setup my folder structure correctly in a multi-disk environment (Mac Pro). I have 2 drives at the moment and plan to add more. I assume that I should boot the OS from a separate OS disk and put apps and data on di

  • Ok is it just me or....

    I do not have the ability to "get info" on any of my songs or itunes freezes. Why? It makes no sense to me and really frustrates me. I have had 2 problems with itunes in the past week, and i've never had a problem with itunes my entire life. Its ridi

  • Lost 5-volt signal from pin 49 on PC-LPM-16

    CUTTING TO THE CHASE Can you tell me how to check if I accidentally drew more then 1A from pin 49 and if the fuse is now open and, if so, how to replace it? THE BACKGROUND Was learning how to use this device to read analog voltages. Using Visual Basi

  • What is this technology on this site?

    http://experience.mtvnhd.com there is a technology at this link. it places the loaded picture onto a face in the video. What is this technology? how can this made? can you give some links if you have knowledge? thanks....