LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Event structure and control ordering issue

Solved!
Go to solution

The basic problem: I'm trying to use the CtlRef of an event structure as a Control Index to pick out a specific value from an array. However, the order under the 'Controls' menu for the Event structure appears to be dictating the numbering given by CtlRef. Below, you can see that the order I'd like is:

PLIF station 1...4

PIV Station 1...4

 

labview00.png

However, it appears to be using the ordering not of the LEFT hand column (image below), but of the MIDDLE column. I can't change this order, and it's giving me the wrong value to go with an array I have. What dictates this order and how can I get around this or fix this?  I'm currently using Labview 2015. Thanks!

labview01.png

0 Kudos
Message 1 of 4
(2,371 Views)
Solution
Accepted by topic author plasmageek

I think it depends on tab order; but I don't recommend using that.

I suggest something like this:

ev.png

"If you weren't supposed to push it, it wouldn't be a button."
Message 2 of 4
(2,358 Views)

Please attach the VI,  code images makes little to no sense.  What is the order of the cluster elements? What's the purpose of all this?

0 Kudos
Message 3 of 4
(2,354 Views)

Thanks! Works beautifully and such a simple solution.

0 Kudos
Message 4 of 4
(2,312 Views)