07-03-2024 09:41 PM
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
Solved! Go to Solution.
07-03-2024 10:52 PM
You mean like this?
Thanks
Kumaresan
07-03-2024 11:03 PM
@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`
07-04-2024 12:22 PM
@santo_13 wrote:
Use the Property node `IndexVals`
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.
07-04-2024 08:19 PM
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?...