04-29-2014 12:08 PM
Can someone please tell me what's wrong with this VI!
I've used it probably a dozen times in the last ten years, with mods for new versions of LV. I think I used it with my current version (2012) just last year. Now, suddenly, I get Error #1 at the WinBounds property node.
Strangely, I don't get that error if I set "Show" to false, even though that statement comes after the WinBounds node.
Further, I'm allowed to press Continue and everything behaves as expected.
I'm stumped.
04-29-2014 03:56 PM
I had a quick look at your VI, and the only way I found to generate error code # 1 is to enter too small a value for the size of the FP window.
There is probably some minimum size that a FP window is allowed to be.
04-30-2014 01:26 AM
Hi, Cathie,
I've tried your VI, but get no error.(I'm using LabVIEW 2013)
BTW, I think it should not pass the values of WinBounds in the Centre Alignment case,
or the Front Panel won't be centered in the screen of my monitor.
05-05-2014 10:09 AM - edited 05-05-2014 10:10 AM
MIG,
Hmm. Yes, I can see how "too small" would cause an error, but I'm asking for 300x800, and I have plenty of cases that are smaller and work fine. There's just something weird going on where I call it, I guess.
Thanks for looking.
05-05-2014 10:12 AM
William1225,
Ah yes, good point. I've probably never used "Centre" (I usually want things tiled, so I give them custom bounds).
Still can't figure out why I keep getting this error, but it must be in the call.
05-05-2014 02:45 PM
AAAAAAARGH! Found it, and I thought I should post, in case anyone else ever has this problem.
In the VI Properties, I had set a "minimum panel size." In fact, I had only used that to determine the size that I wanted,then neglected to remove the restriction, but somehow, when I put 300, 800 into the panel size of my VI, the resulting VI is 272x698 (I'm sure it has to do with scroll bars and header stuff). So if the VI's minimum panel size is set to 300x800, and you try to force it to 272x698, it gives an error.