LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Front panel displaced

I am doing a program, and when I open the project, sometimes all the front panel is dispalced. How can I do to avoid that?

 

Captura de pantalla completa 28122019 205538.bmp.jpg

Thanks!!

0 Kudos
Message 1 of 7
(3,936 Views)

First of all, your Front Panel is pretty "busy" -- do you really want to have so much going on?

 

OK, so you can do the following (which might help) --

  1. Carefully arrange all of the elements on your Front Panel so they are positioned as you want them to be, relative to each other.
  2. Click-drag to select those you want to "lock together".
  3. In the little Alignment controls to the right of the top Tool Bar, click the last one ("Reorder") and choose "Group".  A dashed line will surround your selected region.
  4. Now try dragging this around.  Everything inside will move together, which is what I think you want.

Once you have done this, however, you will not be able to delete any Controls or Indicators that are in the Grouped region.  Should you need to do this, you need to click the Region, Ungroup, delete, re-select, and re-Group.

 

Bob Schor

0 Kudos
Message 2 of 7
(3,900 Views)

Thank you!! 🙂

 

 

 

 

0 Kudos
Message 3 of 7
(3,882 Views)

When I've seen things that that happening, it's because of font size differences on different monitors.

Try including this in your labview.ini file:


FPFont="0" 15
BDFont="0" 15
appFont="Tahoma" 15
dialogFont="Tahoma" 15
systemFont="Tahoma" 15

"If you weren't supposed to push it, it wouldn't be a button."
0 Kudos
Message 4 of 7
(3,811 Views)

@sangvalle wrote:

I am doing a program, and when I open the project, sometimes all the front panel is dispalced. How can I do to avoid that?


What are the conditions of "sometimes"?

 

  • Random?
  • Always good on one computer and bad on another computer?
  • Good in the morning and bad in the afternoon?
  • Good when opened and bad after running?
  • Depending on window size? (maximized, resized, etc.) 
  • etc....

 

This is definitely more than just a font size issue, but font scaling can explain some of the smaller problems.

 

  • Could it be that all things are correctly in place and the code only makes certain elements visible depending on state at run time?
  • Do you use splitter panes and/or "Scale to panel" options? Is the FP maximised?
  • Is it possible that your front panel objects are located outside the valid coordinates (I16 range, -32768 to 32767!) of the front panel (details)?

Can you please attach your VI so we can analyze it better. Thanks!

0 Kudos
Message 5 of 7
(3,801 Views)

Hello,

I think this happens mainly when I open my project in a different computer (I use my normal PC at home and laptop in the uni to test the program), and also sometimes (not always) when I open the project in the same computer but after close Labview. It doesn't occur after running.

 

I am not using splitter panes or "Scale to panel" options, but I am working with several visible/invisible or disabled controls. As I didn't find a property "value" node for Stop and Measure buttons (I know it's because there are latches), I put different buttons one above another and make the correct one visible. And, if I try to group all the objects, as 

 

I wasn't able to find this: Tools » Profile » VI Metrics

I also try this from details :

Additional Information

To demonstrate erratic behavior due to an oversize front panel, you can create a VI that has one numeric control close to the origin, and one numeric control close to the maximum size limits of the front panel (~32000, ~32000). After placing these controls, if you try to move the second numeric control any lower or more right, you may see that the numeric control and front panel are displayed incorrectly.

 

but didn't see anything wrong.

 

Maybe should I select something here?

 

Captura de pantalla completa 01012020 144721.bmp.jpg

 

 

I attached you my VI. I hope you can see it well and not displaced. This is its correct appearance:

 

Captura de pantalla completa 28122019 215218.bmp.jpg

 

I guess I am not using a very efficient programation, since it's my first program and I am learning on the fly.

Thanks!!

 

 

0 Kudos
Message 6 of 7
(2,629 Views)

Does not look too bad if I open it here, but you do have some parts that use "application font" (e.g. some button labels) and thus will scale if the windows theme changes (font scaling not 100%, other font, etc.). Do you really need all these decorations? Modern application are typically much flatter.

 

Looks like you are coming from a text programming background because you use "value properties" like variables. None of those are needed. I would recommend to look into a better architecture (state machine, etc.) and keep the diagram to one screen size. There seems to be a lot of duplicate code, too.

All your visibility changes should be done in a separate loop using an event structure. Properties need to be only written if they change, and not with each iteration of the loop.

0 Kudos
Message 7 of 7
(2,464 Views)