LabVIEW Idea Exchange

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

Polymorphic controls and indicators - productivity improvement

I can't find this idea posted so...

 

Imagine a simple (oversimplified for this example) subVI which deleted the last element of an array (could be strings, U8s, doubles etc).

 

Currently you have to create a polymorphic VI incorporating subVIs with the same code (possibly) and connector pane for each data type. This seems unnecessary because all the functions required in the subVI in this example are already polymorphic.(array size and split array maybe).

 

If there were a control and indicator type which was 'I don't care what the type is, I'm going to pass this data to something which can handle it' then it would save a lot of time in building all the different subVIs needed for polymorphic subVIs.

 

I'm sure this must be possible - the 'Array Size' function doesn't need to know what the type in the array is - it could be an array of clusters of anything.

 

So either I'd like a connector similar to the input of 'Array Size'  which doesn't care what the array type is or better still, a control which is just a hole through which the data is connected to an internal function.

 

I used 'array size' as an example but there are lots of others. I'm not hung up on it being arrays.

 

 

2 Comments
crossrulz
Knight of NI

What you are after is something called "generics". Here's the original idea:Provide a better way to implement a polymorphic VI.



There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
JordanG
NI Employee (retired)