09-10-2017 02:57 PM
When you have a global Variable that has multiple variables in it, how do I set the pecking order in that global variable. I remember how to do that with a Local Variable, but I seem to of forgotten how to do that with a Global Variable.
Solved! Go to Solution.
09-10-2017 05:37 PM
@emw129 wrote:
When you have a global Variable that has multiple variables in it, how do I set the pecking order in that global variable. I remember how to do that with a Local Variable, but I seem to of forgotten how to do that with a Global Variable.
Not sure what you mean? You just drop the global on a block diagram, then select the control/indicator from the dropdown menu. I'm not even sure I know what behavior you are describing for the local variable.
09-10-2017 05:48 PM
I assume you are referring to the situation where you have many variables on a Global VI and when you select one from the node at development time you want to control the order in which they are displayed? One way that occurs to me is to put them into a cluster on the global VI and then control the order in the cluster as normal. I believe they are then shown in that order in the right-click menu.
09-10-2017 06:59 PM
emw129 a écrit :
When you have a global Variable that has multiple variables in it, how do I set the pecking order in that global variable. I remember how to do that with a Local Variable, but I seem to of forgotten how to do that with a Global Variable.
If you go to the global front panel edit menu and select "Set tabbing order', the control set to tab order 0 is the one that will display when you drop the global on the block diagram. But if you click on the global it will not display the different possible controls in the tabbing order. It looks like it uses control labels alphanumerical order (number preceeding capital preceeding lowercase).
Ben64
09-13-2017 11:57 AM
There is no "Set Tabbing Order" in the Global Variable Edit Menu. I'm running LabView 2016 Professional.
A global Variable can contain more than one variable, and how to set the Tabbing order is no where to be found in the "Global Variable" Edit menu.
Yes, it is possible and relatively easy to set the tabbing order in a Cluster.... But I do remember from long ago that there used to be a way of setting the tabbing order in a Global Variable with or without cluster variables.
09-13-2017 12:05 PM
09-14-2017 02:57 PM - edited 09-14-2017 02:57 PM
This question is just answered with Data Flow. Whenever the data is available the function takes place. If your function is a single global write it will be written when that wire has data on it. Do you have two writes in parallel? Then a CLAD question will say you can't guarantee the order. Using data flow you can force one to execute before the other.
Nevermind, tabbing order is the answer, sorry for not reading close enough.
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
17 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord
09-16-2017 10:52 AM
Sorry, I meant clusters, not Local variables.
09-16-2017 10:54 AM
In your example the "Edit" is grayed out. What exact Menu Control path got you to this edit window?
09-16-2017 11:02 AM
Here is a screen Capture of my Global Variable Tabbing Order. Under Edit -> Tabbing Order is grayed out
Why: