Panel size event acts first in dialog VI?

Appearently, the event 'panel size' occurs first when a dialog subvi is called. This will cause issues if a one time timout is used. Can someone please confirm that this is true?
I have attached a caller and subvi to demonstrate. When the dialog is called, the index should show 1, indicating that only one event was executed, but in this case it shows 2.
Attachments:
caller.vi ‏8 KB
subvi_dialog.vi ‏9 KB

Hi Drazen,
Actually, the Pane Size (panel resize) event will occur twice as your sub-vi front panel is opened: first when the resizing begins, and again when the resizing is over (when LabVIEW sees that Old Boundaries and New Boundaries are equal). So, the 2 you see immediately in the indicator on the sub-vi is for both panel resize events. A timeout event when the timeout is set to zero initially never occurs because the VI registers the panel resize event first.
I hope that clarification will help you develop your application!
Product Support Engineer
National Instruments

Similar Messages

  • Set front panel size to fit different monitor ( 2 monitors-pattern to 1 monitor-pattern)

    Hello, Everybody,
    I have here some questions about front panel size.
    At first I have create my LabVIEW programs with 2 monitors and run them with 2 monitors, because of this reason I have created a huge front panel with many objects.
    But sometimes I will run the program only with 1 monitor, the problem is, the front panel is too big, I can not see the front panel with all objects completely on one monitor! I know, I can scroll aroud it, but I don´t like this way. I would like to set the front panel size automatically to fit the window ( to differenz window sizes or resolutions), how can I do that?
    I have tried with "Maintain proportions of window for different monitor resolutions" and "Scale all objects on front panel as the window sizes" to finish that, but they did`t work, I can not see the front panel at once on one monitor;-(
    Can you help me?
    regards,
    Johnny

    As noted in the KB article What Is the Difference Between the Options
    "Scale All Objects on Panel" and "Maintain Window Proport..., the "Scale All Objects on Panel causes all the objects inside the panel to scale when the panel itself is resized". If the panel isn't resized, the objects arent's scaled. You may also want to read the KB article How Do I Scale All of the Objects of My Front Panel with the Window Size?.

  • Panel size inconsistency

    Hi all.
    I am fairly new to making my panels native doc-able panels using Eclipse with Extension Builder. Up till now, I have been creating floating panels just using ScriptUI.
    I am pretty happy with the new process, and its good forcing me to brush up my HTML.
    I have build a panel, that works fine on my InDesign CC 2014, but when a colleague has the same extension installed, he gets strange extra blank panel space.
    He has re-installed the extension (using ExtensionManager) and its still happening.
    The Bundle Manifest/User Interface is set to the Min, Default and Max dimensions to be the same, so this as far as I can see should make the panel size absolute.
    Here are 2 screen shots showing the effect...
    The only difference is I am using Mavericks on a newer MacBook, and the incorrect Mac is on and older MacBook, running Mountain Lion.
    Does anyone have any experience with this? I would happily send the extension to others to check for me..
    Cheers
    Roy

    Hi Drazen,
    Actually, the Pane Size (panel resize) event will occur twice as your sub-vi front panel is opened: first when the resizing begins, and again when the resizing is over (when LabVIEW sees that Old Boundaries and New Boundaries are equal). So, the 2 you see immediately in the indicator on the sub-vi is for both panel resize events. A timeout event when the timeout is set to zero initially never occurs because the VI registers the panel resize event first.
    I hope that clarification will help you develop your application!
    Product Support Engineer
    National Instruments

  • Panel resize event bug?

    I'm having a bit of hassle with a panel resize event.
    For reasons best known to me, I have some parallel loops monitoring certain UI behaviour and reacting appropriately.
    I have noticved that when a loop which is monitoring the "Panel Resize" event stops, (No dynamic registration) the next panel resize will freeze the VI.  It's as if the Event case is not releasing the handle to the "Panel resize" event.
    If I handle the "Panel Resize" event via a dynamic registration and subsequent release, everything works fine.
    This is in LV 8.2.1.
    Shane.
    Say hello to my little friend.
    RFC 2323 FHE-Compliant
    Attachments:
    Freezes.vi ‏22 KB
    Doesnt freeze.vi ‏24 KB

    tst wrote:
    I think this has to do with LabVIEW locking the FP (as configured) even when the event structure should not execute any more. I actually created a simple example of it recently, but saved it in one my projects instead of where I would see it, so I forgot about it. I now dug it up and back saved it to 8.0. You can also simplify this example by removing the value change event and making the key down event lock the UI.
    Message Edited by tst on 11-10-2008 02:14 PM
    Sorry Yair,
    but this is not a bug!, it is explainable behaviour and expected behaviour.
    What happens, the front panel is locked on the second edit. (use exectuion high-lighting) The event structure is always listening for events where it is registered for, even if the event case will never execute, on the first edit (key down) the event is triggered and the VI is locked and unlocked. The second edit the event is triggered again and the FP is locked. Because the event structure can't execute the FP stays locked.
    Shane's behaviour is truly a bug.
    The same behaviour is seen with the 'Pane:size' event. (in 8.6)
    Ton
    Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
    Nederlandse LabVIEW user groep www.lvug.nl
    My LabVIEW Ideas
    LabVIEW, programming like it should be!

  • VI Analyzer Front Panel Size and Postion Test fails

    Hi
    We make a lot of use of the VI Analyser and I have been playing with the configuration settings to try and make it only fail the tests that matter to us and I have one test I do not understand correctly.
    From the LabVIEW help
    Panel Size and Position—Checks that a front panel
    completely resides within the bounds of the screen. The test also checks whether
    the front panel is larger than the maximum specified width and height. If you
    are using a multi-monitor system, the test fails if the panel does not reside
    entirely within the bounds of the primary monitor. This test works only on
    standard, control, and global VIs.
    I would like to apply this test, a simple check developers are not creating huge VI, it sounds simple enough, but I cannot seem to get this test to pass.
    I am working with two monitors and this test fails when my VI is on either monitor with the message  "This VI's front panel does not reside entirely within the specified bounds (1280 x 1024)" my current screen resolutionis 1280 x 1024, so I assume as long as my VI front panel fits within one screen it should be a pass.
    I can clearly see my that VI front panel (and block diagram for that matter) fits within the screen of either monitor. If I look at the VI properties of my VI the Window Size is 474 x 513, could anybody please suggest when why this might be failing.
    cheers 
    Dannyt
    Danny Thomson CLAD
    Sub10 Systems Ltd
    Solved!
    Go to Solution.

    Hi Norbert,
    Thanks for the prompt reply, my asking the question and your reply has made me play with this a little deeper and I have managed to solve my problem.
    In case anyone else has a similar problem here are the details.
    When you have two monitors and look at the Windows properites you see one monitor is identified as 1 and the other as 2, thses identities are based on the graphics card and the which monitor is plugged into which ouptput connector. You can then chose which monitor you wish to act as your primary monitor. You would suspect it would not matter once you have selected your primary monitor BUT IT DOES.
    My inital set-up   
    Left Hand Monitor    - idenity 2 selected to be primary monitor
    Right Hand Monitor - identiy 1 
    With this set-up everything looks and acts as I expect it to task bar, icons etc on my primarry monitor.  However if you run the VI Analyser it will fail Panel Size and Position on BOTH the left and right hand monitors.
    I crawlled under my desk and swapped the monitors cables round so now the set-up is
    Left Hand Monitor    - idenity 1 selected to be primary monitor
    Right Hand Monitor - identiy 2
    Now the VI Analysers Panel Size & Position Tests will pass on the left hand monitor but fail on the right hand monitor, just as would expect.
    It appears that LabVIEW is looking not only at the windows "Primary Monitor" setting but also the identies, this does not seem the behaviour I would expect nor the correct behaviour.
    cheers 
    Dannyt
    Danny Thomson CLAD
    Sub10 Systems Ltd

  • LabVIEW 2010 Window Size/Panel Size Run-Time VI properties - unexpected behavior

    I have used the VI Properties Windows Run-Time Position - Panel Size and VI Properties - Window Size to set the desired display size for use on the application PC.
    A strange thing happens, when I first open the application window, it is smaller than the specified Window Size and Panel Size (both set to 1064 x 728).  However, if I click on a horizontal border the window's vertical size snaps instantly to the 728 pixel value and the horizontal size in unchanged, still smaller than the 1064 value specified.  When I click on a vertical border, the horizontal size changes to the specified value.
    I don't believe this is how these properties were intended to work.  They should open the application in a window sized as specified.  
    Is this a known problem?  Is there a workaround.

    I regret that I cannot post my employers' proprietary code.  I have tried to duplicate the problem with a publicly distributed VI and been unable to do so.  
    I believe now that it is possible my VI was "straddling" two monitors when I made the initial changes.  
    Later compilations were made using different VI properties and do not show this problem.
    I have attached a file showing the relevant VI property settings used in the aberrant VI compilation.
    Attachments:
    vi properties used.JPG ‏58 KB

  • When I try to add a new event to iCal a dialog says "you can't add or change events in the Birthday Calendar". How do I cancel this?

    When I try to add a New Event to iCal a dialog box keeps saying "you can't add or change events in the Birthday Calendar". iCal is, however, receiving up-dates from my other devoces via iCloud. Can anyone help unblock this for me please?

    You can not add events to the birthday's calendar. To add birthday's to the birthday calendar you need to add the birthday to a contact in the Contacts app.
    You can set your default calendar here:
    iCal > Preferences > General  > Default Calendar and chose the calendar you want to default to.

  • Set maximum panel size

    Hi,
    I would like to know how can I set the maximum panel size, in order
    that when I maximize it with a state property node set to 5 (maximized)
    when I open it, it don't pass the size I want for that panel.
    How Can I do It? I can set the minimum panel size, in File->Vi
    properties->Window size but I can't set the maximum panel size?
    Thanks,
    ToNi.

    Hi,
    From my vi, before I call another vi from it, I have a FP Open and FP.
    State property set to True and 4 (Minimized) respectively and then I
    use a Run Vi invoke node and finally, after it, I have another FP.
    State property set to 1 (Standard). My front panel  when opens has
    the same size as I saved it but LV not redraws it well. How Can I do to
    solve this kind of problem? I have this problem since a lot of time ago.
    ToNi.
    Attachments:
    sample.JPG ‏40 KB

  • Panel size won't "stick" when restarting LR.

    I want the left hand panel to be MUCH bigger so I can see more of my folder names. I can re-size it, but when I close and re-open LR, it returns the panel size to the original default size. Is there a way to get the re-sized panel to stay that way across LR re-starts?
    On a related topic, at the moment, even with the left panel at the largest size I can make it, my folder/sub-folder structure results in part of the folder names being cut off. Is there any way to deal with this? Is there perhaps a way to get the font to be a bit smaller so that I can use longer folder names without having them cut off?
    Thanks,
    Larry

    >In the preferences>interface>panel font size, make sure you have it >set on the smaller option
    I'm referring to the panel size, not the font size (although I would also like to be able to make the font size smaller than the "small" setting.)
    Zal posted about the problem I'm seeing, which appears to be a bug.
    Thanks,
    Larry

  • Panel size problem

    I tried to set the panel size on my fram but every single time i run the application (I have 4 panels on my frame 1 on top 3 on the buttom) the panels are sceezed no space beetween them. Do you have any idea how to get space beetween them. I use the setSize method but it looks like it doesn't work, i work for my classmate but not for me. (I have class panel with around 4 objects ex.txtbutton, txtbox, etc) if it help you .
    Thanks for help

    If you are using a GridLayout() to position your panels, you could try
    this.setLayout(new GridLayout(x,y,5,5);
    the last two parameters specify the gap between the panels. x any y are obviously just your layout values.
    Hope this helps

  • How to set front panel size to be same as one led?

    Hello All,
    LV2010
    In documentation reads that minimum front panel size is one pixel. I need to create front panel which have same size as one led (see attachment). I'm not able to make front enough small just by dragging window borders. I also tried to change front panel size from File->Vi properties ->Window size but that didn't helped. How I can set front panel to smaller size?
    Attachments:
    Small_front_panel.vi ‏6 KB

    I think I got it
    In the window apperance option I removed everything except "Allow user to resize window" And the Run options. Then I ran the VI (continuosly since there is no loop) and resized it. After I stopped it, I then removed  "Allow user to resize window" from the window apperance options.
    P.S! If you try to resize my Vi now, it will pop back out for some reason. 
    Regards,
    Even
    Certified LabVIEW Associate Developer
    Automated Test Developer
    Topro AS
    Norway
    Attachments:
    Small_front_panel (1).vi ‏6 KB

  • Apple TV sorts my photos only in ascending order, how can I change so the most recent EVENTS appear first?

    Apple TV sorts my photos only in ascending order, how can I change so the most recent EVENTS appear first?

    I'm looking for an answer to this, too, since I have thousands of Events, and so scrolling down to the bottom every time I want to show my newest photos makes it almost unusable.

  • How to know the "minimum panel size" property

    I want to know the "Minimum Panel Size" specified in the "VI properties" by programming. It's very important to get this information, because my panel size changes over the execution and I need the minimum panel size available. I can’t use the panel bound property because it return me the actual size of the panel.
    Any idea?
    Thanks for your help.
    Solved!
    Go to Solution.

    There is no property to directly return the minimum panel size that you set.
    You can however trick it into giving it to you. Since you can't use the "Panel Bounds" property to make a window smaller than it's set minimum, You can try to set it to 0,0 size, then read the size and subtract the left from right and top from bottom to get the size. The panel will actually resize to the minimum, but will return an error if you try to go below that.
    The attached VI shows this working. I only tried this 7.1, so if you have an earlier version, let me know and I'll save it back.
    Ed
    Ed Dickens - Certified LabVIEW Architect - DISTek Integration, Inc. - NI Certified Alliance Partner
    Using the Abort button to stop your VI is like using a tree to stop your car. It works, but there may be consequences.
    Attachments:
    Get minimum panel size setting.vi ‏40 KB

  • Have Photoshop remember panel size

    My panel has dynamic content so its size need to be adjusted by the user after it has loaded.
    However, whenever I restart Photoshop the panel resizes to the dimensions set in Configurator.
    Is it possible to have Photoshop remember its last size?
    My panel is created with Configurator 4.

    This should already be possible if the "Persistent" option is set to "Yes". In Configurator, you can find this setting on the righthand side, in the "Basic Attributes" section.
    If you have already exported a panel, you can modify it without re-exporting by modifying your panel's xml file. This should be located within its "content" folder, and would be named after the project, as: "<ProjectName>.xml". Inside that file, usually about 5 lines down, is a line that contains the property setting "persistent=" (either "true" or "false"). Set that to true, and the panel size should be maintained between sessions.
    I just tested with a project of mine to make sure I wasn't full of it, and it worked even after shutting down and restarting PS.

  • Inherited JPanels inserted to GridLayout - panel size problem

    Hello,
    I'm not sure if I implemented it correctly, however I'm trying to have different-sized JPanels inserted to GridLayout. JPanels are inherited from base JPanel class. Shortly:
    public class CMyBasePanel extends javax.swing.JPanel
    public class CPanelBig extends CMyBasePanel
        this.setLayout(null);
        this.setPreferredSize(new java.awt.Dimension(642, 138));
    public class CPanelSmall extends CMyBasePanel
        this.setLayout(null);
        this.setPreferredSize(new java.awt.Dimension(642, 50));
    }and I'm trying to insert them that way:
    int numPanels = this.panels.size();    // Vector of CMyBasePanel
    jPanelSteps = new JPanel();
    jPanelSteps.setLayout(new GridLayout(numPanels, 1));
    for (int i = 0; i < numPanels; i++)
        CMyBasePanel onePanel = (CMyBasePanel)this.panels.get(i);
        jPanelSteps.add(onePanel);
    jScrollPaneSteps.setViewportView(jPanelSteps);
    jScrollPaneSteps.revalidate();
    jScrollPaneSteps.repaint();This method shows created panels correctly, but the panel height is constant for all panels, even if they have different Dimensions set in the constructor.
    Full case can be downloaded here: http://slajerek.demon.pl/others/bugs/JPanelInheritProblem.tar.gz
    After starting the case just right click on empty space to show popup menu and add two different panels, size of already added panels is changed respectively (add 10 small panels, and then big one). Java version: Java(TM) SE Runtime Environment (build 1.6.0_02-b05), Linux
    is this a bug or bad implementation? I thought that if I change one of the parameters in the inherited class I'm not changing the base class. For me it seems that the panel size is declared "static"? how to avoid this problem and have different heights for panels?

    yea GridLayout resizes components to fit in the grid, where all the grids are the same size. So if you have one big component in a grid, then the components in the other grid will be resized i believe.

Maybe you are looking for

  • How do I start iTunes with whichever iTunes library I want?

    How do I start iTunes with whichever iTunes library I want? I've created a 2nd iTunes library using the "press shift-key while opening iTunes from the start menu" method given in iTunes help. Now, when I try to start iTunes from the Quick Launch menu

  • Is There a Fit-to-Page Option in Scan?

    When I scanned a government form that is on an 8.5" x 11" sheet, but has only a 1/4" left, right, top margins and 1/8" bottom margin, the preview showed the bottom 1.5" of the form and part of the text on the side margins cut off. I selected the "Sav

  • BAPI to get a user list with access rights to particular objects

    Hi Experts, BAPI to get all user lists for input specific object, authorizations, profiles and values? Any useful answer will be rewarded with suitable points. Thanks, Rohan

  • How do i add new fonts that i've downloaded?

    easy question.. sorry. i downloaded a lot of freebies, now how do i install them to be ready to use in word? thanks.

  • Year over Year

    Hi I need to do year over year comparision. I have a key figure net value.When the users run the report, they should have to columns for the same keyfigure for two different years. User should have the ability to compare the following. If user wants