LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Read Array Indicator Index Display Value

Solved!
Go to solution

Hi all,

 

I have a 1D array indicator on my front panel and I need to read the index display value...

 

I don't want to read the array value at that index... I want to read the index location that the user selects on the front panel using the up and down arrows...

 

I hope this makes sense... I can't find a property node that will read that value...  

 

Any suggestions?

 

Thanks,

Jack

0 Kudos
Message 1 of 5
(394 Views)

You mean like this?

Index array.png

 

 

 

 

 

 

 

 

 

Thanks

Kumaresan

0 Kudos
Message 2 of 5
(370 Views)
Solution
Accepted by topic author jcannon

@jcannon wrote:

Hi all,

 

I have a 1D array indicator on my front panel and I need to read the index display value...

 

I don't want to read the array value at that index... I want to read the index location that the user selects on the front panel using the up and down arrows...

 

I hope this makes sense... I can't find a property node that will read that value...  

 

Any suggestions?

 

Thanks,

Jack


Use the Property node `IndexVals`

santo_13_0-1720065767958.png

 

Santhosh
Soliton Technologies

New to the forum? Please read community guidelines and how to ask smart questions

Only two ways to appreciate someone who spent their free time to reply/answer your question - give them Kudos or mark their reply as the answer/solution.

Finding it hard to source NI hardware? Try NI Trading Post
Message 3 of 5
(361 Views)
Solution
Accepted by topic author jcannon

@santo_13 wrote:
Use the Property node `IndexVals`

santo_13_0-1720065767958.png

 


Note that the output is an array with one element per dimension, for example for a 2D array it will return the indices of the element shown in the top-left corner.

 


@jcannon wrote:

I have a 1D array indicator on my front panel and I need to read the index display value...


Can you explain the use case for that? Just curious. It is more typical to write to this property. It seems somewhat convoluted to e.g. have the user define an array subset by using the index display or scrollbar of an array.

 

 

 

0 Kudos
Message 4 of 5
(312 Views)

Thank you!

 

The array records a peak leg force during a short (3-5 sec) muscle contraction... All the peak value from each contraction are stored in the array... On the front panel is the array indicator so you can see each peak force value come through in real time...

 

The vi also calculates the coefficient of variation between a user-selected number of consecutive peak force values... By reading the index value, the calculated C of V can be performed using the peak force shown in the indicator (e.g. the C of V of the next 4 peak values starting at index 0  so using the most recent 4 values) or the next 5 peak values starting at index 2 ( starting 3 peak values ago)... Not sure if that makes sense?...

 

    

0 Kudos
Message 5 of 5
(289 Views)