Error 1 When Setting Front Panel Window Bounds
Primary Software Version: 1.0
Primary Software Fixed Version: N/A
Secondary Software: N/A
I am using a property node to set the window bounds of my front panel. When I run the program I get the following error:
Error 1 occurred at Property Node (arg 1) in Untitled 1
LabVIEW: An input parameter is invalid.
NI-488: Command requires GPIB Controller to be Controller in Charge.
If I copy the block diagram code to a new VI and run the VI, I don't get the error. Why am I getting this error?
This error is caused by setting the window bounds to be less than the minimum panel size specified in the VI properties.
When setting the four attributes of the FP.PanelBounds property node, the difference between the Left and Right attributes must be greater than the Minimum Panel Size Width, and the difference between the Top and Bottom attributes must be greater than the Minimum Panel Size Height.
In order to correct this, follow these steps:
The reason you do not receive this error when you copy the code into a new VI is because the new VI has a default Minimum Panel Size Width and Height of 0.
Note: The Minimum Panel Size Width and Height do not include the following Window Appearance items. However, the WinBounds property includes the following Window Appearance Items.
KnowledgeBase 3ELD8N4H: Programmatically Move Front Panel to Desired Position
Report Date: 02/16/2005
Last Updated: 05/17/2013
Document ID: 3IF9AP0K