12-28-2019 01:57 PM
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?
Thanks!!
12-28-2019 02:35 PM - edited 12-28-2019 02:44 PM
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) --
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
12-28-2019 03:02 PM
Thank you!! 🙂
12-28-2019 05:30 PM
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
12-28-2019 06:59 PM
@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"?
This is definitely more than just a font size issue, but font scaling can explain some of the smaller problems.
Can you please attach your VI so we can analyze it better. Thanks!
01-02-2020 06:52 AM - edited 01-02-2020 06:54 AM
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 Bob_Schor told me, the ones which are behind can't be selected, and then, when I run the program, appears behind the whole group, even if they have to be "visible". 😪
I wasn't able to find this: Tools » Profile » VI Metrics
I also try this from details :
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?
I attached you my VI. I hope you can see it well and not displaced. This is its correct appearance:
I guess I am not using a very efficient programation, since it's my first program and I am learning on the fly.
Thanks!!
01-07-2020 11:36 AM
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.