04-18-2014 02:41 PM
Hi there,
I have a simple subvi, it has a string indicator embeded into the panel. I have the string fit to the pane. I am going to change the size of the panel to width 240 and height 24 then centerlize the panel. I found some code in the forum. If I don't put the string there, the code works perfect. But after putting the string, it will run into error.
And I call the subvi FP.vi in a main vi (main.vi). The error is
------------------------------------------------------------------------------------------------------------------------------------------------------------------
Error 1 occurred at Property Node (arg 1) in FP.vi->main
Possible reasons(s):
LabVIEW: An input parameter is invalid. For example if the input is a path, the path might contain a character not allowed by the OS such as ? or @.
Property Name: Front Panel Window:Panel Bounds
------------------------------------------------------------------------------------------------------------------------------------------------------------------
Any suggestion why this error?
Solved! Go to Solution.
04-18-2014 03:50 PM
I don't see a reference to the FP subVI in your image. You need to have a VI reference going into the FP.PanelBounds Property Node.
04-18-2014 03:56 PM - edited 04-18-2014 04:15 PM
@lh845 wrote:
I don't see a reference to the FP subVI in your image. You need to have a VI reference going into the FP.PanelBounds Property Node.
Left unwired the property node uses "This VI" as a default value.
That works OK
Do you have a minimum size set in the vi properties?
04-18-2014 04:09 PM
Yes, I thought he was trying to call a subVI reference, though.
Anyway, I played around with the same VI's and I get the same error message if I try to use the same coordinates, but when I increased the bottom coordinate to a value of 26 then I don't get the error.
04-18-2014 04:12 PM
Here is a snippet that worked for me.
.
04-18-2014 04:18 PM
@lh845 wrote:
Here is a snippet that worked for me.
.
Yes there is a minimum height for string indicators you violated that
04-18-2014 06:41 PM
@lh845 wrote:
I don't see a reference to the FP subVI in your image. You need to have a VI reference going into the FP.PanelBounds Property Node.
I put everything in the subvi and I call the subvi in other code. I wonder if that subvi refer to itself automatically
04-18-2014 07:34 PM
@PKIM wrote:
@lh845 wrote:
I don't see a reference to the FP subVI in your image. You need to have a VI reference going into the FP.PanelBounds Property Node.
I put everything in the subvi and I call the subvi in other code. I wonder if that subvi refer to itself automatically
I just test that without the "This VI" it doesn't work. Thanks for your pointing out.
04-18-2014 07:37 PM
@lh845 wrote:
Yes, I thought he was trying to call a subVI reference, though.
Anyway, I played around with the same VI's and I get the same error message if I try to use the same coordinates, but when I increased the bottom coordinate to a value of 26 then I don't get the error.
Thanks for pointing that out. I just want to know how to figure out 26 is the minimum coordinate I should use other tha something else. Instead of hardcoding that, anywhere I can refer to so to get the minimum? Thanks.
04-18-2014 08:21 PM
Min size is a property of many controls. it changes. for instance, with a silver style string control its 37 pixels high with the default font size. ( it Makes sense, that it shows 1 line of text clearly)
By scaling to pane- the string min size is forced into the min pane size of the 1 pane panel (FP) so setting the height lower than the control could show 1 line of text clearly yielded an error.
Or, in other words, the error explaination could have been clearer when it was first implemented.