LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

unbuild an array

Solved!
Go to solution

Hi,
I would like to know how to unbuild an array, a reverse process of "build array" ?
If it's not possible, how to create a VI with a selectable input/output number.
As "build array", in which you can choose number of input/output by sliding "build array" icone.

Thanks

0 Kudos
Message 1 of 12
(4,294 Views)

"Index array" and "Array subset" functions.

I recommend you to do some tutorials in LabVIEW, this is a far too basic question.

 

edit:  you can also use a FOR loop with autoindexing to get elements from an array. All depends on your actual task during coding...

 

 

Here you can find some learning material:

 

https://forums.ni.com/t5/Community-Documents/Unofficial-Forum-Rules-and-Guidelines/ta-p/3536495

("Looking for free training" section)

0 Kudos
Message 2 of 12
(4,285 Views)

Spend 1 minute to look in the Array palette.  Look at the context help for each of the functions.  You will find more than you were looking for.  But this is a very basic thing that you could have figured out just by digging into the palettes.


GCentral
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
0 Kudos
Message 3 of 12
(4,264 Views)

Hi,

 

Please, before treating people as newbies, try to understand the question..

That what I want to do; Thanks

03.png

 

0 Kudos
Message 4 of 12
(4,238 Views)

And Index Array is not doing that for you?

0 Kudos
Message 5 of 12
(4,232 Views)

AFLAMENT wrote:

Please, before treating people as newbies, try to understand the question..


We did understand the question.  Use Index Array and take some tutorials.

3 Hour Introduction
6 Hour Introduction
LabVEW Basics
Self Paced training for students
Self Paced training beginner to advanced, SSP Required
LabVIEW Wiki on Training
Learning NI
Getting Started with NI Products

 


GCentral
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
0 Kudos
Message 6 of 12
(4,230 Views)

Good, I forget that index array give output witout any value on index inputs.

So, what about the second part of my question?

 

..how to create a VI/function with a selectable input/output number.
As "build array", in which you can choose number of input/output by sliding "build array" icone.

(that what is really interest me to know?)

 

Thanks

 

 

 

0 Kudos
Message 7 of 12
(4,187 Views)

AFLAMENT wrote:

As "build array", in which you can choose number of input/output by sliding "build array" icone.

(that what is really interest me to know?)


Index Array does't do that?  I thought I clearly showed that is how it works.


GCentral
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
0 Kudos
Message 8 of 12
(4,180 Views)

If you are asking how to create a subVI that has a variable number of array inputs, you can't because the connector pane can't be modified in run-time (unless maybe with VI scripting?).  You just make your input a 2-D array and index that inside the subVI. 

LabVIEW Pro Dev & Measurement Studio Pro (VS Pro) 2019
0 Kudos
Message 9 of 12
(4,162 Views)

A 2D array needs to be rectangular.  If the 1D input arrays can have different lengths, an array of cluster of array might be better.

 

Lynn

0 Kudos
Message 10 of 12
(4,151 Views)