05-23-2017 09:30 AM
I have an array of elements that I want to position beginning at the top left of a user's screen when they begin the vi. Right now, I'm using this property node:
However, depending on how the screen is set up at the time, I can get something like this:
How can I make sure that either A) the array is always in the top left corner of the user's view or B) Lock the user's view so that [0,0] is always in the top left corner?
Long term, I'm going to be using this as a sub-panel in a larger vi, so whichever method would work with that best would be my preference.
Solved! Go to Solution.
05-23-2017 09:40 AM
See that little dot there at the crossing of the grid lines. That is 0,0 of the front panel grid. If you want that point to be in the top left corner of the VI, you need to set the pane origin to 0,0. Create a property node, right click it and select Link->Pane. Change it to Write mode and create a [0,0] cluster constant.
05-23-2017 09:40 AM - edited 05-23-2017 09:41 AM
You need to set the origin on the panel.

05-23-2017 09:56 AM
I should add that if you have splitters on your front panel, you'll have multiple options for linking the property node. If you have your panels named properly, it's easy to link to the correct one.
05-23-2017 10:49 AM
05-23-2017 10:52 AM
05-23-2017 10:55 AM
@ATE-EGNE wrote:
@crossrulz wrote:
You need to set the origin on the panel.
Thanks! Why the Index element value?
Because of what I said above about multiple panels. There is no need for getting the panes array if you link the property node to a specific panel.