LabVIEW Idea Exchange

cancel
Showing results for 
Search instead for 
Did you mean: 
0 Kudos
Amir_Y

Access a sepcific Array Element

Status: Declined

Every array has a property node for "Array Element".

It is referring to a general element in the array (and actually applies to all elements).

 

It could be nice to have this "Array Element" property for a specific element. "Active Element" property can be added for that (similar to "Active Plot" in XY Graph).

 

The usage I was thinking is about is getting the position of an element or setting its background color (after casting its reference to a string class). But there is much more to it than these simple examples.

 

Amir.

 

 

 

 

2 Comments
AristosQueue (NI)
NI Employee (retired)

This request is impossible to ever support without massively increasing the memory and performance requirements of the array control in a way that LV does not find acceptable.

 

There is only a single control for drawing all visible elements of the array. We do not create N separate controls for the N elements of the array, thus there is no separate background color that is definable. Instantiating N separate controls every time a new value for the array is set would be unacceptable in terms of performance and memory. The only parts of a control within an array that vary in appearance are those controlled directly by the element value. This is a concious and deliberate design limitation of the array control.

JordanG
NI Employee (retired)
Status changed to: Declined