cancel
Showing results for 
Search instead for 
Did you mean: 

Event structure and control ordering issue

SOLVED
Highlighted
plasmageek
Member
Solved!

Event structure and control ordering issue

Message contains an image

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

3 REPLIES 3
paul_cardinale
Trusted Enthusiast
Solution

Re: Event structure and control ordering issue

Message contains an image

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."
altenbach
Knight of NI

Re: Event structure and control ordering issue

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?

plasmageek
Member

Re: Event structure and control ordering issue

Thanks! Works beautifully and such a simple solution.