Capturing a front panel menu selection in a SubVI

All,
      Title is pretty descriptive, so i've got a subvi that's running pretty much in a while loop and I want a menu selection from the parent VI to be able to cancel it. What i've tried so far is passing the reference to the front panel menu and then trying to detect a valuechange/mouse click/ selection etc in an event loop in the SubVI. The problem is it doesn't look like the front panel menu registers the change until after the SubVI finishes executing. How can I fix this?
Regards,
Ken

Hi Ken,
I hope you are doing well today! Before I attempt the answer your question, I
need just need to clear a few things as to what you are trying to do. Are you
trying to stop the while loop in the subVI from the parent VI? And, what’s the
purpose of using a menu selection? If you can post a simple example, that would
be great.
Adnan Zafar
Certified LabVIEW Architect
Coleman Technologies

Similar Messages

  • Bug? Right-click on Front Panel causes selection rectangle!

    Originally posted on LAVA: http://lavag.org/topic/12097-right-click-on-front-panel-causes-selection-rectangle/. This post contains an updated description of the problem.
    Anytime I right-click on a control on the FP, and dismiss the context menu, I get a selection rectangle. If I don't catch it, moving outside the bounds of the FP will cause the FP to scroll to continue my unwanted "selection". So far this has been repeatable every time.
    I noticed that the problem doesn't occur on the Controls pallette, only the context menu for controls. Also, if I mouse over the context menu before dismissing it, the problem doesn't occur. If I select an item from the context menu (which also dismisses it), the problem doesn't occur.
    I am running LabVIEW 8.6.1f1 on Windows XP Home SP3.
    -Ian
    Solved!
    Go to Solution.

    I once worked in a lab which contained a transformer with its incessant 120 Hz hum.  Just when I could tune it out someone would say "What's that hum?" and then it would annoy me again.  Similar story in a different lab which had a cooling water drain.  Just when I get used to the sound, someone would bring it up.
    This behavior has p#$#ed me of on numerous occasions and I am mostly used to it by now.   At home I use a track ball mouse which covers a lot of real estate in a hurry so of course I am often scrolling a FP into never-never land.  Now you bring it up and I am having flashbacks... (Thanks really, it is time to get this fixed)
    I have learned to spot the little circle in the crosshair cursor.  When it is missing, you are in selection mode.

  • Front Panel of select VI's pop up upon start-up

    I have a main VI which organizes about 200 test cases(also VI's). However when I load the Main VI, about 50-60 of the front panels from different VI's load. I've checked most of the settings and can't figure this it out. Is there anything I'm missing. Someone suggested a VI Server...what's that? Is the only way to have the front panel load one at a time, to make the VI's load dynamically?

    Let me see if I understand your problem correctly. Are you saying that when you load your main VI, but before you run it, the subVI's front panels are displayed? If that's the case, there's a couple of ways that this could be happening. First, in the VI that has the subVI, right click on the subVI and select SubVI Node Setup. Make sure that Open Front Panel When Loaded is not checked. Second, open the subVI itself and go to VI Properties>Window Appearance. If the Custom radio button is selected, click on the Customize button and see if Show Front Panel When Loaded is checked.

  • How to display PSA screen capture on Front Panel

    Any one know how to display screen capture of PSA series specturm analyzer on front panel. I can save the JPEG file in the C drive, but I can't display on the front pannel. Please see my labview code.
    Solved!
    Go to Solution.
    Attachments:
    Capture screen E4446A.vi ‏21 KB
    reading and writing binary number.vi ‏22 KB
    yumg.jpg ‏20 KB

    Do you actually need to save the front panel image?  Or do you want to save a graph of the signal (spectrum) that you acquired?  If the latter will do the trick, you can simply read the waveform over GPIB (or whichever means you control the analyzer) into an array that is plotted to a waveform graph in LabVIEW.  You then save the image of the waveform graph as an image.
    Since you have all the data, you can even save the data which can be viewed later (and not only by LabVIEW).

  • How can I access the member of a cluster on the front panel by selecting the label?

    I have a cluster of Controls. i would like to choose the element of the cluster by his label on the front panel and then show the value. Does anyone have an idea?

    I think I understand what you are trying to do. I've whipped up an example that uses property nodes, see if it helps...
    Brian
    Attachments:
    ClusterSelect.vi ‏35 KB

  • Can not open front panel sub VI when running an application VI.

    When I create an application of my program a problem occurs. When I select options (press a button or so) from the main front panel that should result in a popup menu (sub VI cal) LabVIEW indicates that something is happening but the front panel does not open. The mouse indicator changes to the time glass so LabVIEW is doing something but the window of the sub VI does not open.
    The problem has the same characteristics on several places. There are some sub VI front panels that opens but I ca not find the reason for why these open and not other.

    Hi
    there are three ways trhough which you can force a subVI to show its front panel
    1. open the perticular SUB VI
    click File->VI properties select window appearence catagory.
    click customize button and select "Show Front Panel when called" and "close afterwads if originally closed" check boxes
    save the VI
    whenever you use this Sub VI every time it will pop up front panel
    2. dont perform the changes suggested in option 1. place the instance of subVI in your main application and if you want that instance to popup a front panel then right click on subVI and Select "SubVI Node Setup" again select "Show Front Panel when called" and "close afterwads if originally closed" check boxes
    with this option only certain instances of SUB VI will cause pop up to occur
    3. this is the most flexible option. use invoke node to show front panel. in invoke node select show front panel method to popup the VI and use close front panel method to close the pop up window.
    Tushar Jambhekar
    [email protected]
    Jambhekar Automation Solutions
    LabVIEW Consultancy, LabVIEW Training
    Rent a LabVIEW Developer, My Blog

  • Remote front panel SSH support?

    Does the LabVIEW HTTP server which delivers remote front panel "content" have the option of running in SSH mode? If not, what are my alternatives for securing connections to remote front panel servers?

    I am not aware of any options for SSH in LabVIEW. However, there are other ways to keep you remote panels secure. To prevent a user from gaining control of a VI, click the lower left corner of the front panel and select Lock Control from the shortcut menu. This option prevents a viewer from requesting control of the VI on the Web until you unlock it. Similarly, you can regain control of a VI from any Web client.
    To configure more Web Server security options, select Tools»Options, select Web Server: Configuration from the top pull-down menu, and enter the Root Directory. After you enter a root directory, Web clients have access only to files in that directory and its subdirectories. All other files on your computer are not accessible on the Web. Select Web Server
    : Browser Access to grant or deny viewing and/or controlling access to different IP addresses, so only known clients can view or run your application. Select Web Server: Visible VIs for control over which VIs in your Web Server directory are visible to a client, and to limit the time that a client can maintain control of a VI. Refer to the LabVIEW Help, which you can access by selecting Help»VI, Function, & How-To Help, for more information about configuring the Web Server.
    Alternatively, you can program security into the VI itself. For example, you can require a user to log in when the VI first runs, and disable all other aspects of the VI until you verify the login. To do so, place a login field on one page of a tab control, the other controls on subsequent pages, and enable the other pages after the user successfully logs in.
    J.R. Allen

  • Button to enable all checkboxes on front panel

    I have checkbox controls on the front panel to select various functions of my VI.  I would like to have buttons to check ("enable all") and un-check ("disable all") all the checkboxes at once, if desired.  Preferably, I'd like to see the boxes activate (show the checkmark) prior to starting the VI -- like they do when you select them one by one.  I am fairly new to LabView & am using 7.0 Pro.  Any help would be appreciated.
    JH

    Here's a picture of the code. Pretty simple.
    Message Edited by altenbach on 04-05-2006 09:23 AM
    LabVIEW Champion . Do more with less code and in less time .
    Attachments:
    AllOnOff.png ‏7 KB

  • Is there any way to prevent excess rows from being added to a table on the front panel?

    Whenever I programmatically add rows through a property node I can still go into the front panel and keep adding additional rows through the table. Is there any way to prevent this "excess scrolling"? Maybe grey out the rows or something? 
    At least I have chicken

    Hello Labviewleroy,
    You should be able to right click on the table on the front panel and select
    Visible Items>>Horizontal Scrollbar or Vertical Scrollbar
    You could also consider changing their visibility programmatically using a property node for the control or indicator that you are referencing. You can create the property node by right clicking on the control on the block diagram and selecting
    Create>>Property Node>>Visible Items>>Horizontal Scrollbar or Vertical Scrollbar
    Cheers,
    -Joel
    Motion PSE
    National Instruments

  • Need to Print Screen the Front Panel

    Hey guys, as the subject says, I need to capture the front panel of the Vi every time it runs (without using alt-printscreen or any other applications). Can I do this using LabVIEW 8? Thanks!

    Here's a code example.
    RayR
    Attachments:
    SaveFPimage.vi ‏11 KB

  • How do I group a large logic circuit into a single icon that still allows for control of that VI's front panel?

    I have a graphical representation of a P&ID made of LED lights that turns green or red depending on if that 
    process line is open or closed. The coorisponding block diagram is a rather large logic circuit that controls 
    these LED lights.
    My problem is that I want to essentailly block that large piece of code into a "Sub VI" but I still want to use that 
    code to control THAT VI's front panal. This would allow me to, in the future, make an automated sequence that can 
    still use this light show without opening another VI's front panal.
    If anyone has used Simulink this is the exact same thing as its grouping function...

    Are you asking how to control the front panel of one VI from the front panel of one of its subVIs (or another VI)?  Is so, check out VI server.  VI server functions are found on the Application Control palette.  For a short demo, right click on one of your controls and select Create»Reference.  You will be switched to the block diagram and have a reference node attached to your cursor.  Drop it.  Now go to the Application Control palette and select and drop a Property Node.  Connect the newly created reference to the Property Node top left terminal.  Click the Property Node's Property area and scroll down to the Value property and select it.  Right click on the Value and select Change to Write.  Wire a value to this input and it will change the value of the control.  You now have a method that allows you to change the value of a control from another VI.
    Some caveats.  This can be slow.  It is synchronous, meaning that the function will not return until the front panel has been updated.  If you want to do a lot of controls at once, use the VI property Defer Panel Updates to turn updates of the front panel off while you are writing to it.  Don't forget to turn it back on.  If you can use a terminal or local variable, do not use the Value property.
    My apologies if I have misinterpreted your request.  Let us know if you need more info.
    This account is no longer active. Contact ShadesOfGray for current posts and information.

  • How to display remote front panels of subvis that are already open

    I inherited an RT project that uses remote front panels for nearly all the user interfaces. The host application opens a remote front panel the the top level RT vi, and there are several subvis on the RT system that are opened from that top level vi and thus displayed on the host (i.e. their "Show Front Panel When Called" properties are set TRUE).
    If the Host loses its connection to the RT system when any subvi front panels are opened, and the host application is restarted, it can re-open the top level vi remote front panel, but all the RT subvis that are already open will not display their front panels. I am looking for a way to open the front panels to these subvis from the host application.
    The kicker is, I need to know which subvis are actually running before I attempt to open remote front panels. Is there any way to determine what subvis are actively running (and not just in memory, such as subvis that won't get executed until the top level vi reaches a certain state)? I am thinking that I could create a list of the subvis that I need access to, check to see if any are actively running on the RT system, and then invoke a remote front panel connection with those that are running.
    Does anyone have any ideas as to how I might be able to do so? Or any other suggestions? [and yes, I know that RFP communication is probably not the best way to go, but we're too entrenched in this software to start over with a new system!]

    TurboPhil wrote:
    If the Host loses its connection to the RT system when any subvi front panels are opened, and the host application is restarted, it can re-open the top level vi remote front panel, but all the RT subvis that are already open will not display their front panels. I am looking for a way to open the front panels to these subvis from the host application.
    It might be possible to work around this behavior by placing VI invoke nodes in your top level VI that reference each of your subvis and setting the Wait Until Done invoke method to false.  This should cause the subvi to close when the top level VI closes even in the case of an unexpected restart.
    You can access this invode node in the functions pallet by selecting Application Control » Invoke Node and also selecting Application Control » Static VI reference.    Wire the Static VI Reference to the vi reference input node and double click the Static VI Reference and select the appropriate subvi in the dialog window.  Left click on the Method section of the invoke node and select Run VI. Finally right click on the Wait Until Done invoke method and select Create Constant and ensure this constant is set to false. 
    TurboPhil wrote:
    The kicker is, I need to know which subvis are actually running before I attempt to open remote front panels. Is there any way to determine what subvis are actively running (and not just in memory, such as subvis that won't get executed until the top level vi reaches a certain state)? I am thinking that I could create a list of the subvis that I need access to, check to see if any are actively running on the RT system, and then invoke a remote front panel connection with those that are running.
    You can access this information by using the Real-Time System Manager (Tools » Real-Time Module » System Manager).  This can be used to show what VIs and subvis are loaded into memory and which are running.
    For more information on using this tool please referere to this Knowledge Base article. 
    Message Edited by BLAQmx on 02-18-2008 11:40 AM
    Mark
    LabVIEW R&D

  • Using a "menu ring" feature on the front panel with event structures

    hello - right now i have many event cases controlled by many "ok buttons". i would like to use a menu ring on the front panel to save space from all those buttons, but i don't see how it will work with all the individual event cases. currently each event is tied to a single button, and the menu ring acts as one thing on the block diagram so i can't tie an event to a choice in the menu. any suggestions? thanks....

    Alternativley, you could use an enum control instead of a menu ring. It will name the cases according to the selection automatically.
    If you want to use a menu ring and strings, you could do something like in this image.
    Message Edited by altenbach on 02-09-2006 01:43 PM
    LabVIEW Champion . Do more with less code and in less time .
    Attachments:
    RingText.png ‏3 KB

  • Can't access format & precision menu from front panel

    Labview 7 seems to have stopped allowing me to access the format and precision, data range, and properties menus from the front panel. I create a blank VI, drop a numeric control onto the front panel, right click and select format and precision... nothing happens. I can hear the computer thinking about it but no menu pops up. Same for the data range and properties menus. Other front panel objects with different pop-up menus are also not working.
    Anyone else run into this problem before? I keep thinking I must be missing something obvious but I can't figure out what it might be.
    Thanks,
    JW

    Problem is fixed. May have been the result of very low available disk space on my system partition. I was down to a few megs. Took off a couple of unused programs and it seems to have corrected the problem.
    JW

  • One click select object on Front panel

    Hi,
       LabView7.1. On the front panel, I cannot select an object by one left lick. Where can I change the setting?
    Thank you!
    Weitong

    weitong wrote:
    Hi,
       How to set the automatic selection tools true?
    In the tools palette, the LED on the top must be glowing. This indicates that you have selected the "Automatic Tool Selection"
    weitong wrote:
    Hi,
        When I double click the object on Front panel, it opens a new front panel with that object instead of locating that object on Block Diagram.
    It is opening the Control Editor panel because You have checked the "Open control editor when Double click" to true as shown in figure.
    Goto
    Tools>>Options, select front panel from the dropdown menu and uncheck the "Open the control editor with double click"
    Uncheck it.
    Attachments:
    AutomaticToolsSelection.PNG ‏6 KB
    DoubleClick.PNG ‏20 KB

Maybe you are looking for

  • Can no longer connect to NOAA websites

    I can't connect to any NOAA.gov web site any more. Just get a server stopped responding error. My edge connection has slowed to 65k bps but that's slightly faster than dial up which can still connect. Have tried clearing safari cache cookies etc. and

  • Downloading from Internal table to Excel

    Hi All, My requirement is download to Excel sheet, but in my internal table i have more than 95,000 record (max limit in Excel sheet is 65535). Please help me out by providing your solutions. note: here i know one solution, by splitting into two file

  • Konqueror + Flash keyboard problem

    Hi, I've stumbled upon a problem today with Konqueror and Flash. It's not that it doesn't work at all... The problem is: i can't use keyboard controlls in flash embedded objects like games etc. Anyone could help me with this one?

  • AGO functions with diferent time attibutes

    i have problem! i have too columns Year ago and month ago. When i take these columns with Month i can see only results from Month Ago (Year ago is no results), but when i take year and year ago i can see results from year ago. How can ia see year ago

  • Can you use Windows 7 OEM on bootcamp

    I want to install Windows 7 OEM edition on bootcamp? (http://www.amazon.co.uk/Microsoft-Windows-software-intended-builders/dp/B004Q0PT 3I/) Does anyone have experiance of this working?