LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

VI Analyzer Front Panel Size and Postion Test fails

Solved!
Go to solution

Ok, y'all help me fix this. 🙂 I did make some changes to this test over the past few years, but apparently I didn't change enough. Here's what the test currently looks like in LabVIEW 2013:

 

panelsizepos.png

 

If you want to play with the code, it lives here:

 

LabVIEW 2013\project\_VI Analyzer\_tests\Front Panel\User Interface\Panel Size and Position.llb\Panel Size and Position.vi

 

So we are comparing against the primary monitor for position...I propose that we do not change this, as a VI will open relative to the primary monitor top/left when opened on different machines, and I feel that, stylistically, it's bad practice to have VIs open in random spots on different machines.

 

0 Kudos
Message 11 of 19
(1,452 Views)

As a contrast,  the same code from 2011 where its easy to see the change from Monitor[0] to primary display.  Of course I'm stuck on a single monitor system at the time.  I cannot duplicate Magic Bean's findings.  Perhaps he would like to compare to a selected monitor?

 

NI_VIAnalyzerTKTests.lvlib_Panel Size and Position_BD.png


"Should be" isn't "Is" -Jay
0 Kudos
Message 12 of 19
(1,443 Views)

What I'd most like, Jeff, is for the test to compare the size and not the position. Personally I'm not too bothered about whether the monitor bounds are fetched automatically although I appreciate that it might be important to other people. That's mostly because I when I run the VI Analyzer I am using it for code I am writing to distribute to other computers and I don't know what sizes their monitors are (other than some agreed minimum). Also I develop code mostly on my secondary large monitor but the code gets deployed on laptops with smaller primary displays.

 

The way I want this test to work is that when I set a minimum display size, I want the test to fail only if the VI doesn't fit in that size regardless of which monitor the VI was open on when I ran the test. If there's a position test, I think that should be separate. It might just be a case of adding the left coordinate of the display on which the VI is (e.g. -2560 in my case) from the left and right values of the front panel bounds of the VI. 

 

I can't open the toolkit library block diagram currently because I have the VI Analyzer on eval but I intend to buy it later this month, however, my current timescales don't allow for me to spend time editing tools, fun though it might be.

 

 

0 Kudos
Message 13 of 19
(1,426 Views)

@magicbean wrote:

What I'd most like, Jeff, is for the test to compare the size and not the position


 

Ok, I can see the use case for that. But it doesn't seem straightforward to shoehorn this into the Panel Size and Position test, so I went ahead and wrote a custom test that just checks the panel size and ignores the position. I have posted it to the VI Analyzer Enthusiasts community here:

 

Test - Front Panel Size

 

That link includes another link to the instructions for installing custom VI Analyzer tests. I hope this helps.

 

 

Message 14 of 19
(1,418 Views)

Darren, that's perfect - does exactly what I wanted - thank you!

Steve

0 Kudos
Message 15 of 19
(1,411 Views)

Hello,

 

   I am getting failures of the VI Analyzer Front Panel Test. When I look at the VI CFG file that maximun size allowed is 1550 by 1050. When I look at the VI properties ---> Window Size ---> Set to current panel size I get 730 by 707.   But yet I am getting a fail for this vi.The  Vi Analyzer results also report a different size.

  Any ideas what is going on?

 

Regards,


Kaspar
0 Kudos
Message 16 of 19
(1,349 Views)

Kaspar, 

 

Which test are you using (the shipping Panel Size and Position test? The custom Front Panel Size test that I linked in this thread? Something else?). And what version of LabVIEW are you using?

 

Can you give me that information, along with a VI that demonstrates the issue, and steps to reproduce the problem?

Message 17 of 19
(1,340 Views)

Hello,

 

   I think a got it figured out and/or at least got the error count way down. I am using Labview 2013 SP1 on a WIndows 7 machine.

The VI Analyzer config file specifies two tests that check the front panel size. The first one is called "Panel Size and Position" that has a Max width of 1550 and a max Height of 1050. The second test is called "Front Panel Size" that has a max Panel width of 1024 and a max height of 768.

   So why are there two tests in VI analyzer to check the size of the front panel of a vi?  So I adjusted the size of the front panel to remove the failures by using the 1024 by 768 limits.

 

Regards,


Kaspar
0 Kudos
Message 18 of 19
(1,324 Views)

"Front Panel Size" is a custom test that I discussed in this thread, it does not ship with the VI Analyzer Toolkit. You must have installed it from the link I provided in this thread at some point. The only difference between the two tests is that Front Panel Size doesn't care about the position of the window, it only checks the panel size. Panel Size and Position, as you might expect, checks both the panel size and its position on the monitor.

0 Kudos
Message 19 of 19
(1,317 Views)