Example program forces front panel screen size

I am somewhat of a novice at LabView programming.  I used an example program as the starting point.  I expanded the front panel, added buttons and displays, and added code to do additional things.  But when the program gets to the example code, it forces the front panel screen down to its original (example) size.  The help messages talk about going to File > VI properties > screen size but none of the settings solve the problem.  The code that I wrote starts with a full screen front panel and runs fine until the program gets to the example code then the front panel shrinks.  There must be something in that portion of the code that is setting the properties.  Anyone know what is happening?

Hi Gary,
Anyone know what is happening?
You already answered that on your own:
There must be something in that portion of the code that is setting the properties.
All you have to do is find that part of code!
Start searching using breakpoints and step-by-step execution (aka basic debugging techniques)…
Best regards,
GerdW
CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
Kudos are welcome

Similar Messages

  • How can I change my program to adjust to screen size?

    Top. I was wondering how can I design it so my program will fit all monitors?

    If your program is GUI-based and your top-level container is, say, a JFrame, you could use something like the following:
    JFrame frame = <whatever>;
    frame.setSize(frame.getToolkit().getScreenSize());
    // you could also maximize your frame if you are programming with Java 1.4
    frame.setExtendedState(Frame.MAXIMIZED_BOTH);Shaun

  • Screen capture of the front panel automatically

    I've got a VI that analyzes a data file and outputs a graph, some numbers/notes, and a pass/fail message to the front panel each time we run it. I want to be able to automatically save all that data into one easy-to-access file (no html) after running it, and ideally this would be accomplished by just capturing the screen of the front panel and saving it as a .jpg.
    I've looked up how to do this on the forums and searching the web, but no solutions have come up. I've looked at the "Get Image" method, but that only lets me get the image of one object in the front panel, and not the entire front panel screen. I read something about referencing the front panel as an global, and inputting that into the "Get Image" method, but I can't get that to work and don't know if that's possible.
    Is there a way to make a straightforward automatic screen capture of the VI front panel? How can I program that?  (Manually using the "pinrt screen" function off the keyboard and copying and pasting it won't be feasible for this application).
    -- Thanks for the guidance

    No sure why you couldn't find a reference to it but there is the VI method Get Panel Image.
    Message Edited by Dennis Knutson on 03-16-2007 07:42 AM
    Attachments:
    Get Panel Image.PNG ‏4 KB

  • 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.

  • Publising front panels of not visible subvis on the web

    High
    my main program has tab object with 10 pages. Within the main program there are several subvis whose front panels i want to publish on the web.
    The front panels of these subvis are not visible in the main program.  Front panels of some subvis are displayed correctly in browser (IE, Firefox) but some not.
    Fields of the object are empty or their fields are not refresh with new data (att. pict " array indicators").
    The problem is worse if not visible subvi contains chart object. In the browser window data are moved out of the chart window (att. pict. "chart within...").
    For monitoring front panels of the subvis i use MONITOR mode of the LabVIEW web server.
    Any idea, hints or simple example is welcome.
    Thanks and regards
    Trajan
    Attachments:
    chart within the browser2.jpg ‏16 KB
    three array indicators2.jpg ‏5 KB

    Duplicate post!
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome

  • Labels cut off smaller screen size

    I created an installer for an application. But some other users don't have the same screen size as the PC I created this application on, and some labels and characters are cut off on their screens, particularly if the screen size is small. I'm sure a solution is there for this problem. Can you help

    Hello,
    I've looked a little deeper into this for you, and have found some new information. Please take a look at the following document:
    http://digital.ni.com/public.nsf/allkb/048C31D73E8EC91286256E440063E1BB
    Under the Scaling all Objects heading, there is a note that text labels do not resize along with other front panel objects, because they're fixed. With that being said, it is still possible to programmatically find the front panel's size by accessing your VI's Front Panel>>Panel Bounds property. Then, you can set the size of you text labels programmatically by setting their Font property using a Property Node.
    I hope this helps.
    Frank L.
    Software Product Manager
    National Instruments

  • Builded executable doesn't close the main VI front panel

    I created an application with the Application Builder. All of it runs well, except that when the operator ends the program, the front panel of the main vi (the only top-level VI) remains open.
    Moreover, inside the VI window appears the toolbar with only the Run button on (in the VI properties I choosed to hide toolbar and menu bar).
    Is there a way to close the front panel when the program completes execution?
    Roberto
    Proud to use LW/CVI from 3.1 on.
    My contributions to the Developer Zone Community
    If I have helped you, why not giving me a kudos?

    I ussually use the "Quit LabVIEW" function found in the application control palette when application finishes. I use a utility that checks to see if it is running in the development or run time enviroment and only quits LabVIEW if it's in the run time enviroment.
    This wouldn't work to well if you were running other LabVIEW programs though.
    Brian

  • Front panel

    Hello,
    How do we do this in labview:
    > press a button on front panel which says "START" and a new window on the front panel shows up which has 5 lines. When you click one of the lines it takes you to new front panel or blank front panel. 

    Hello MikeS81,
    Attached is the document which explains the objective. on the same front panel when i click the START button it should give me a new layout of front panel which will have three button "step1, step2, step3". and this front panel screen will no longer have the START button.
    Really appreciate your reply ....
    Thanks
    Attachments:
    DIAGRAM.doc ‏20 KB

  • Big Problem Nokia E90 Fornt Panel & Screen Not Wor...

    Hi Everyone,
    I upgraded the firmware of my E90 last week. The next day it fel down & when picked up, the front panel including screen & key pad were off. I took out the battery & restarted it, the power came on the front screen lit up, the keypanel came on, the NOKIA logo comes on, but then the inner screen also gets simultaneously on, I hear the startup tone & then the front panel & screen powers off completely.
    On Flipping open the phone the Inner Screen also does not come on automatically. Only when I press any key does it come on. The inner screen & louspeaker works normally.
    I showed it in Nokia Care here & they are unable to figure out the problem. Please help me if someone has experienced a similar problem or any solutions to this.
    Thanks a lot guys for all your help. 

    Hello nitinbhatnagar, I don't think too many people have experienced your situation if any, but you can always try restoring your phone to factory settings or reset with *#7780# soft reset or *#7370# hard reset or reinstall firmware to rectify any software fault, but if it indeed sustained physical damage to internal circuits then you can't avoid a trip to the Nokia care point.

  • Adjust front panel to screen size and re-position objects on different systems automatically

    Hello, i have designed a vi that contains 5 led's placed at the 4 corners and center of the front panel which occupies the entire screen. However, this vi is to be used on different systems having different screen sizes. But on every screen, i'll need the front panel size = screen size and the led's to  be placed to the centers and corner of this new screen size automatically without any manual operations and positioning bieng done every time. Will the resize option perform this task completely or do i have to go for some other techniques?
    Solved!
    Go to Solution.

    As far as I know, what you want is not easy to do but it is doable but you have to programmatically do it (no Labview setting). Here is an example for only 2 LEDs but I suppose that you will be able to make it work for your other LEDs.
    This VI maximizes the front panel and then positions the 2 LEDs in the center and top right corner upon running. The LEDs are positioned according to their own top left  corners, not according to their centers.
    Marc Dubois
    HaroTek LLC
    www.harotek.com
    Attachments:
    Position LEDs.vi ‏14 KB

  • Scaling front panel objects for different screen sizes

    Hi,
    Can anybody help me of designing Vi for different screen sizes. I have designed a VI for a monitor of small size and lower resolution but when I open the same Vi on a different monitor,objects are not aligned properly. The properties which I have changed are
    Window appearence->Default
    Window Size -> Panel size 0,0   & Tick marked options of Maintain propotions for different monitors and scale all objects 
    Window Run Time position-> Maximum
    Regards
    Imran
    Solved!
    Go to Solution.

    Imran,
    I can't solve your problem entirely.  However when I have to write a program that will be deployed on a variety of monitor sizes, I tend to set the size of the Front Panel to suit the smallest monitor, and then remove the ability of the user to resize it.
    Also, set it to run in the centred position.
    See attachments.
    Many Thanks,
    Dan
    Dan
    CLD
    Attachments:
    Customize Window Appearance.JPG ‏44 KB
    VI Properties.JPG ‏29 KB

  • Same object size (front panel) with different screen resolution

    Hi everybody,
    I realised an application, and I try to instal it on various computer. The probleme is that they haven't the same screen resolution, so the front panel is not the same on each computer. It is possible to build an application which have the same front panel with different screen resolution ?
    Kriss.

    Hi Krisss,
    switch off any "adapt to screen resolution" switches in the VI properties...
    You should also define "same front panel" and "same object size"! Do you mean the same pixel size or size in mm or size in percent of screen?
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome

  • How do I automatically make new front panels and block diagrams a certain size and screen position, like able to fit on a 1024 x 768 screen?

    I'm studying for the CLD and I notice that one of the requirements is this:
    Develop block diagrams to fit a screen resolution of 1024 x 768.
    When I create a new VI, its resolution is slightly too big: 1110 x 768.
    When I create a subVI via the menu item Edit >> Create SubVI, it is way too small: 800 x 543.
    For both methods of creating new VIs, I would like to specify both the screen position and window size. But if that is not possible in LabVIEW, I'd like a quick way to make this happen. I see some property nodes for VIs where I could write a subVI that could do this for the front panel, but that is awkward. And it does not apply to block diagrams.
    Is there a clever way to do these things?

    bmihura wrote:
    I'm studying for the CLD and I notice that one of the requirements is this:
    Develop block diagrams to fit a screen resolution of 1024 x 768.
    When I create a new VI, its resolution is slightly too big: 1110 x 768.
    When I create a subVI via the menu item Edit >> Create SubVI, it is way too small: 800 x 543.
    For both methods of creating new VIs, I would like to specify both the screen position and window size. But if that is not possible in LabVIEW, I'd like a quick way to make this happen. I see some property nodes for VIs where I could write a subVI that could do this for the front panel, but that is awkward. And it does not apply to block diagrams.
    Is there a clever way to do these things?
    It doesn't mean the default size of the window. It means once your code is complete, your block diagram should be small enough that you can see all your code when its on a monitor of that resolution. Before you test, set your computer monitor resolution to 1024x768. Write your code. If all the code on your block diagram can be seen without scrolling, you will be fine. They won't measure this explicitly. They are basically just saying "you shouldn't have a huge block diagram."
    CLA, LabVIEW Versions 2010-2013

  • Keep front panel icons same size on different monitors

    I was wondreing if there was anyway where you can make your front panel automatically adjust itself to fit the full size screen of other computers with different resolutions than the one that the front panel was developed on.
    thank you

    Try this thread.
    http://forums.ni.com/ni/board/message?board.id=170​&thread.id=291198&view=by_date_ascending&page=1
    I have concluded nothing works and if any of my programs will be used on different monitors I will develope the program in the lowest resolution needed.

  • How do I input data to a table on the front panel and stop the program immediatel​y as button is pressed?

    What should I do if I want to display on the front panel in real time the values from Polarizer #, P1, P2 and the last calculated value (P2/P1 * 100) called T% in a table or some graphical representation like that?  What would I have to do?  It could just be Polarizer # and T% if that would be simpler.  I just want to let the user know the values in a list, spreadsheet or table as they go.  One last thing is that I would like to be able to stop the program at any point in time as soon as the stop button is pressed.  As of now, when the button is pressed it goes through the iteration currently in progress and then one afterwards.  I want the program to end as soon as the stop button is pressed no matter what sequence it is.  What can I do to achieve this?  Could you give me an example or modify my program to show me this.
    Thanks,
    Steve
    Stephen Coward
    Northrop Grumman
    [email protected]
    Attachments:
    EPM2000 almost done.vi ‏50 KB

    Put a single frame sequence structure around your stop button and then wire from the error cluster going into the error handler to the edge of the sequence structure. Now your code will stop at the end of the current iteration. To see why this works, watch you code execute with execution highlighting turned on and review the section of the manual talking about "Dataflow".
    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

Maybe you are looking for