LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Setting Global Variable order

Solved!
Go to solution

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.

 

 

0 Kudos
Message 1 of 12
(4,228 Views)

@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.

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
0 Kudos
Message 2 of 12
(4,185 Views)

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.

0 Kudos
Message 3 of 12
(4,182 Views)

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

Message 4 of 12
(4,178 Views)

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.

0 Kudos
Message 5 of 12
(4,123 Views)

ScreenShot028.png

 

EDIT -> Set Tabbing Order, using LV2016 Professionnal

Message 6 of 12
(4,116 Views)

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.

0 Kudos
Message 7 of 12
(4,098 Views)

Sorry, I meant clusters, not Local variables.

0 Kudos
Message 8 of 12
(4,062 Views)

In your example the "Edit" is grayed out.  What exact Menu Control path got you to this edit window?

0 Kudos
Message 9 of 12
(4,061 Views)

Here is a screen Capture of my Global Variable Tabbing Order.  Under Edit -> Tabbing Order is grayed out 

 

Why:

 

2017-09-16  LabView Global Variable Tabing Order.jpg

0 Kudos
Message 10 of 12
(4,059 Views)