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

Similar Messages

  • How to know the OS block size ?

    Hi all
    I want to know how to get the OS block size of my server ?
    For example if my server is Windows 2000 Professionnal , how can I get the size of my OS block size ?
    Thank you

    One way to find is to right click the drive in Windows Explorer and click Format (Not actually formatting it).
    In the popup window, you would see the "Allocation unit size" for the selected drive. Click "Close" to exit when done.

  • How to resize the front panel to fit different resolutions

    I m using LabVIEW 8.2 on Windows XP SP2
    I've tried both “maintain proportions of window for different monitor resolutions” and “scale all objects on front panel as the window resizes” selected but just messed up everything when i switched to another different resolution. It's annoying since I'm using 22 inch monitor to do the coding but the user supposed to run it on laptop or wince.
    Any solutions to it?
    Thx in advance.

    Thank you all. Following is the reply from NI support.  I think the best way is to edit vi in low resolution.
    One of the easiest ways to tackle varying screen resolutions is to design
    the front panel to the lowest resolution that you expect it to run on. It
    should then look acceptable on any screen larger than that.
    However, you can get a bit more tricky by programmatically determining the
    computer's screen resolution and then dynamically changing the size of your
    front panel objects. Use an Application Property Node and select
    Display>>All Monitors to return the current screen size. Then, according to
    the screen size, you can size the control or indicator programmatically
    using the Size property node for your front panel objects.
    Ultimately, these issues have often been a result of font size issues.
    Specifically, this can be a problem when two machines have different
    desktop theme/font settings. If your objects are coming out in different
    sizes on different computers, you can setup up LabVIEW to use the same font
    on different systems by modifying the .INI file.
    The easiest way is to do this: use Tools->Options->Fonts from the LabVIEW
    GUI. You can then set the system fonts to anything you want. After you
    have done this on one machine, open your INI file (it is in the same
    directory as the LabVIEW executable) with any text editor and copy the
    corresponding entries to another file. Add these entries to the INI files
    on any machines you want to lock to font. You will probably run into
    issues if you are supporting different platforms (Windows and Mac or Mac
    and Linux, for example), since the fonts you want may not be available on
    both platforms. There are Windows fonts available for both Mac and Linux
    platforms, so this can be somewhat ameliorated.
    This is all I can think of, but that's not to say these are the only
    solutions. You might check the Discussion Forums, as many of our LabVIEW
    Champions have tackled similar issues and offer their expertise as well.
    Here's just a few threads that I'd like to refer you to:
    How to make the size of VI and controls unchanged irrespective of the
    resolution?
    http://forums.ni.com/ni/board/message?board.id=170&message.id=273613&requireLogin=False
    How to program the front panel size to fit different monitor resolution?
    http://forums.ni.com/ni/board/message?board.id=170&message.id=87160&requireLogin=False
    I hope this discussion helps you along the way in your application
    development. Please let me know if you have any further questions/comments
    and I would be happy to discuss them with you.
    Otherwise, it was a pleasure assisting you and thank you for choosing
    National Instruments.

  • How to know the size of a DATABASE ?

    Guys,
    How to know the size of a DB ?
    Also
    How to know the size of a TABLE ?
    How to get the content of a procedure/view/trigger ?
    Inputs are welcome !

    How to know the size of a DB ?If you want to know the physical size, query dba_data_files + dba_temp_files. if you need to know the actual consumed space in those files, compute sum of bytes from DBA_SEGMENTS.
    How to know the size of a TABLE ?Query all/dba/user_segments.
    How to get the content of a procedure/view/trigger ?all/dba/user_source, all/dba/user_views, all/dba/user_triggers.
    Message was edited by:
    Satish Kandi

  • How to know the payload size of message

    hi can anybody tell me how to know the payload size of message?
    Message was edited by:
            vvr murty

    Hi,
    To know the size of the input message , i hope we have one option , after copying the test payload from the SXMB_MONI into Message mapping test -- click on test
    after come back to design tab in message mappign
    click on left side root node and Press CTRL+SHIFT + mouse right click and click on trace -- you can see the size of the message payload.
    In SXMB_MONI..
    see the payload messges
    also see the below link
    /people/michal.krawczyk2/blog/2005/09/16/xi-how-to-test-your-mapping-in-real-life-scenarios
    Regards
    Chilla

  • How to know the correct size of an image?

    hello, a thing ive never got a satisfying anwer on:
    how can i know the REAL image size of an image?
    1.
    image 1a: this is the size i see in the photoshop window
    1b: (why by the way is there 2 sizes?)
    2. image 2: the size i see in windows/my documents.
    same image, big differenct (8mb <--> 49mb)
    which one is correct?
    image 1: size in photoshop window
    image 2: size in windows/my documents

    Don't feel bad; there are more "size" indications than you'd think you need, but they're all useful for some things.  And there are some interrelationships.
    Size indications you might find:
    The size in "megabytes" of the image document in your computer's RAM (the first of the two numbers in your first image). This is helpful for getting an idea of how many resources in your computer the process of editing a particular document is taking. This number can grow to much larger than the second number, for example, if you have a lot of layers in your document that Photoshop has to maintain separately in RAM.  This size number will be reflected in the ultimate file sizes on disk when you save master documents (e.g., PSD) in which you maintain all the layers and other information used by Photoshop.
    The size in "megabytes" of a flattened TIFF on disk (the second of the two numbers you showed in your first image above).  This was a quick defacto shorthand developed by early people doing film scanning that described how many bytes on disk a flattened, uncompressed 8 bits/channel TIFF file would take.  It is always 3x the size of the image in megapixels, because it's the number of horizontal pixels multiplied by the number of vertical pixels multiplied by 3 colors per pixel (red, green, blue).  This usage of "megabytes" is often confused with the size a file actually does take on RAM or on disk, but they can be very different depending on file formats.
    The size on disk of the actual file you saved, as listed by Windows Explorer.  Since you did NOT save the image as a flattened, uncompressed 8 bit TIFF file, but probably as a PSD or JPEG file, each of which embody data compression, the file actually saved on your disk ended up smaller than the projected TIFF file size.  The amount of compression usually differs depending on the image content, so you might find this size varying.  The file size on disk is what will be important to web publishers.
    For what it's worth, I prefer to think primarily of the size of an image document in pixels (horizontal x vertical).
    I always keep my mind on the pixel count while editing. Then, when I'm preparing to use the image for a specific purpose, I think in terms of output size.
    Photoshop's Image - Image Size... dialog is where you set sizes. If you choose to resample, you change the pixel count. This can be appropriate for downsampling an image in preparation for web publishing, where you want the image to be a certain size on a screen. If you don't resample, you are changing metadata kept in the document that instructs Photoshop how large you want a print.  The size of an image in pixels DOES affect the size on disk, and the File - Save process for some formats (e.g., JPEG) puts up a dialog to allow you to choose a compression quality level, which additionally affects the size on disk.
    Hope this helps illuminate what you're seeing a little.
    -Noel

  • How come a locked decoration doesn't show up in the VI.Panel.Decorations[ ] property but a locked control shows up in the VI.Panel.Controls[ ] property?

    This seems like an oversight. Granted, I shouldn't be able to write to size and position properties of a locked decoration, but I would really like to read this information.
    -Jim

    Patient: Help me, doctor. It hurts when I do 'this'
    Doctor: Don't do that
    OK, but seriously, Regarding workaround No. 2. I tried to use the VI.Panel.AllObjects[] property but the refnum of all decorations are invalid and I get Error 1055 (Object reference is invalid) when I try to operate on it. I am running LV 6.0.2. Attached is an example with the values after running it on my PC saved as defaults.
    -Jim
    Attachments:
    Error_1055.vi ‏26 KB

  • How to know the size of a webservice request

    Hello...
    I'd like to know if you know how do I get the size of a Web request? I mean, I need to know the size of a Web Request 'cause I'll fill a Gauge Object up based on the quantity that I have received from the WebService.
    I'm using the KSOAP and KXML API's for consuming that WebServices and I used the Content-lengh Method and it didnt return anything to me... it returned empty. So, do you know how do I fill a Gauge Object based on the size of the WebRequest? Could you tell me some examples plz?
    Thanx...
    Lucas Abrao

    How to know the size of a DB ?If you want to know the physical size, query dba_data_files + dba_temp_files. if you need to know the actual consumed space in those files, compute sum of bytes from DBA_SEGMENTS.
    How to know the size of a TABLE ?Query all/dba/user_segments.
    How to get the content of a procedure/view/trigger ?all/dba/user_source, all/dba/user_views, all/dba/user_triggers.
    Message was edited by:
    Satish Kandi

  • How to know the size (GB) of an ECC client?

    For R/3 seems there was no way to know the client's size in terms of GB.
    It's said that in ECC6.0 it is possible.
    If so, would you please inform us the way to do it?
    Thanks!

    Hi,
    Do the test run of the local client copy or else u can run the report RSSPACECHECK.
    Take a look at note 118823.
    Also u can Create one new client. Perform the test client copy with the client whose size you want to know.
    Hope this helps more.
    Thanks
    Ruchika

  • Changing the minimum window size in Calendar

    I keep two programs open side by side on one of my "Desktops." They fit next to each other side by side and filled the entire screen. iCal was one of those applications. Since upgrading to Mountain Lion, the default minimum window size appears to be larger than it was in Lion. Now Calendar.app obscures part of the other application on this desktop.
    I've searched around on the internet for hours looking for a way to modify the minimum window size to restore the "side by side" configuration, but I have not been able to find anything.
    Does anyone have any advice on how to tackle this?
    Don

    I just upgraded to mountain lion.  I cannot reduce the size of ical to fit with mail on my 15" macbook pro.  In checking around, the new calendar does not allow us to size the window as we want.  This is a big miss for apple.  we need to be able to size windows as we see fit.  also, in lion, and now mountain lion, we only have the option of the stupid fake-leather looking calendar.  We should have options for this, too.
    Please let me know if there is a fix for sizing the ical window as we previously had in lion.  Apple, if you are listening, go for simplicity and flexibility.  Let us decide window sizes, look, and anything else.
    thank you
    john

  • How to show the front panel when launching VI with Call by reference node??

    Hello!
    I just wonder how I make the front panel visible during execution when I launch the VI with CALL BY REFERENCE NODE.
    Se example.
    Could u also show me how to change different properties (window size ..) of the front panel??? (launched with CALL BY REFERENCE NODE)
    Thank you!
    Attachments:
    test.vi ‏18 KB

    In VI Properties>>Window Apperance>>Customize you can check "Show front panel when called". This will open the front panel on each call. It doesn't matter how the call was initiated.
    You can set a lot of Front panel properties during runtime. Place a Property Node in the block diagram. Change the class from App to VI. Under properties select Front Panel window>>Panel bounds to set the position and size of the front panel.
    Waldemar
    Using 7.1.1, 8.5.1, 8.6.1, 2009 on XP and RT
    Don't forget to give Kudos to good answers and/or questions

  • How to know the memory

    Hi
    Following is the output of sh ver of cisco 2621 router. There is two place saying about the memory
    cisco 2621 (MPC860) processor (revision 0x600) with 53248K/12288K bytes of memory.
    another
    32K bytes of non-volatile configuration memory.
    what is the actual memory size? is it 64 or 32?
    Can i install an IOS which minimum requires 64Mb memory in this Router?
    #sh ver
    cisco 2621 (MPC860) processor (revision 0x600) with 53248K/12288K bytes of memor
    y.
    Processor board ID JAD05440L9D (3776779414)
    M860 processor: part number 0, mask 49
    Bridging software.
    X.25 software, Version 3.0.0.
    2 FastEthernet/IEEE 802.3 interface(s)
    32K bytes of non-volatile configuration memory.
    16384K bytes of processor board System flash (Read/Write)

    In addition to Andrew info..
    How to know the memory ?
    cisco 2621 (MPC860) processor (revision 0x600) with 53248K/12288K bytes of memory.
    when you get the above output from sh ver,
    simply add 53248k + 12288k and always devide by 1024.
    e.i
    53248k + 12288k / 1024 = 64
    64MB is your total memory in your router
    Rgds
    Jorge

  • How to change the default window size display font size on Lync 2013 main window?

    Hi champs,
    Just a simple non-technical question: How to change the default window size display font size on Lync 2013 main window on Windows 7 desktop?
    Thanks,

    Hi,
    Did you mean change the Lync: Change the Default Font and Color of Instant Messages just as Edwin said above?
    If not, as I know, there is no natural way to change it.
    If yes, on the latest version of Lync 2013 client, there is a new option “IM” on Lync client “Options” list. And you need to change the default Font and Color of IM in the interface of “IM”.
    Best Regards,
    Eason Huang
    Eason Huang
    TechNet Community Support

  • How to view the program panel in full screen mode?

    I know how to make the program panel full screen using the "~" key, but I would like to view my work completely without borders. Similar to using Quicktime or Windows media player. I can't imagine that this feature doesn't exist. Any help would be greatly appreciated.

    This feature is new to CS6. Hit ctrl+` (ctrl+grave).

  • How to change the picture frame size in Lightroom 5 Book

    I would like to control the actual picture frame size when making a Book in Lightroom 5. Or else know the sizes of the different picture frames provided by choosing the different page layouts. That way I can either change the picture frame dimensions to accomodate each photo or change the image size to fit in the offered picture frame. I find that using the software as is winds up cropping the images in unwanted ways. Modifying the picture frame would be my preferred alternative. Appreciate any ideas

    Hi again Tony,
                I have been using Adobe Photoshop 7, Photoshop Elements, Perfect Photo Suite, Photo Studio, etc., changing Image size, placing a picture on a page and then, do a simple last minute size adjustment by using the arrows to stretch or shrink it in place. Things would be a lot simpler if I could do the same thing with the cells in Lightroom 5. Cell pad adjustments do not fill the bill.
    I think we’ve pretty much concluded this exchange. Thanks again for your effort.
        david
    ay [email protected]
    Sent: Wednesday, March 12, 2014 11:27 PM
    To: dgbrow
    Subject: How to change the picture frame size in Lightroom 5 Book
    Re: How to change the picture frame size in Lightroom 5 Book
    created by Tony Jay <http://forums.adobe.com/people/Tony+Jay>  in Photoshop Lightroom - View the full discussion <http://forums.adobe.com/message/6205206#6205206

Maybe you are looking for

  • Zoom Search with Merged Projects

    I have read the instructions on www.grainge.org, but I don't seem to be getting results from any of my merged projects. I think the problem is the directory structure of my merged projects. Can someone confirm? My structure is: Master SDK (placeholde

  • Calculated column based on the value of a prompt

    Hi all I created a page prompt for the user than he can choose the years period: for example Year: between 2009 and 2015 In the report I have one of the measures that and I only want to display for the year 2009.I don't want to sum from 2009 till 201

  • On announcing my site (1st time), iWeb encounters an error

    On trying to announce my site (1st time), iWeb encounters an error while trying to locate my default email program. Can anyone explain, please? Any advice very gratefully accepted. annfromvic

  • Extra Adapter Engine Installtion

    Hello Experts, Due to heavy load in Central Adapter Engine, we are planning to use one more decentralize adapter engine. My concerns are , are we need to install seperate AS java with different SID than central SID? then install AE. can we install ex

  • Can i upgrade from cs5.5 student version to cs6 full version

    as a student i bought cs 5.5 web premium years ago. i want to be more independent (stop the yearly licenses) and buy an upgrade to cs 6 design and web premium. is that 'legal' under the adobe licenses? i must know before i pay and download...