LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to control/determine order of call by reference

How do i control or determine the order the controls will come up in a loop like this.  I have a page of controls and want to read write individual data to each one.

control order.JPG

0 Kudos
Message 1 of 10
(3,301 Views)

The order should be based on the tabbing order, which you can set from the Edit -> Set Tabbing Order... menu item.

 

Why not just use the Label.Text property instead of the class name?

Message 2 of 10
(3,294 Views)

I'm not sure i understand how label.text would help me. All my labels are different for each control. Oh and thank you for the update about the tabbing order!

Message 3 of 10
(3,283 Views)

@chipper wrote:

I'm not sure i understand how label.text would help me. All my labels are different for each control. Oh and thank you for the update about the tabbing order!


look at the control name and act based on what you read.

 

BTW: "Thank You" on this forum are best said by clicking on that Kudos star thingy.

 

If you have not seen this Nugget on control refs it may give you some ideas.

 

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
Message 4 of 10
(3,274 Views)

To my experience, the order is the reverse of the order when you did create the controls (I'm not completely sure about FP controls, this is how I've found BD objects are listed). The only option to change the order is to delete and recreate them.

 

Felix

0 Kudos
Message 5 of 10
(3,262 Views)

Nope, it's the tabbing order. Try it. Smiley Wink

0 Kudos
Message 6 of 10
(3,253 Views)

Actually, You are both right 🙂

 

the Z order from back to front is Also the default tabbing order. I'd have to play with it a bit to see if move to back/front changes things.


"Should be" isn't "Is" -Jay
0 Kudos
Message 7 of 10
(3,245 Views)

The problem was there were over 100 numeric indicators on some of the display page and up to four pages of displays.  I have one page for setup on one computer and one for display, this was like 600 or 700 indicators i have to assign channels to.  I didnt want to have to wire each one or recreate them.  i wanted a way to assign a channel to each numeric indicator without having to wire to each individual indicator. Plus i wanted to learn how to use references. I think i have it working, but im still in the process of testing. The numeric indicators are labeled meter x, where x increments so i test for each label name and sort the info by label name.

0 Kudos
Message 8 of 10
(3,215 Views)

Methinks you need to simplify your front panel. 600 to 700 indicators is a bit much, don't you think? The amount of horsepower required just to update the indicators alone has to be substantial.

0 Kudos
Message 9 of 10
(3,200 Views)

In most cases this more than one PC driving this many displays and several ppl will be watching their own display and care about only the stuff they care about.  And that is only 300 display with 300 on the setup PC used for setup.  We are only updating about half that many constantly, and only about once every 300 mSec.

0 Kudos
Message 10 of 10
(3,194 Views)