LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

create array function working with any data type

Solved!
Go to solution

@altenbach wrote:

@timeDelay wrote:

Like this it would be possible for example to create a function that returns the 1st array element, no matter what type it is.


This function is called "index array", but unfortunately you get the first element for 1D, first row for 2D first plane for 3D. etc. Since you seem to want only the first scalar elements (assuming memory order), the code will depend on the number of dimensions and you would probably need the type specialization structure and LabVIEW 2017+.

 

What is the practical use of that function? Why do you need it and why isn't it sufficient to just use index array with a zero wired to all indices?


I think that was just an example for clarification.  

aputman
------------------
Heads up! NI has moved LabVIEW to a mandatory SaaS subscription policy, along with a big price increase. Make your voice heard.
0 Kudos
Message 11 of 11
(235 Views)