06-11-2015 04:40 AM
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
Solved! Go to Solution.
06-11-2015
04:50 AM
- last edited on
08-19-2024
03:05 PM
by
Content Cleaner
"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)
06-11-2015 05:44 AM
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.
06-11-2015 11:22 AM - edited 06-11-2015 11:23 AM
Hi,
Please, before treating people as newbies, try to understand the question..
That what I want to do; Thanks
06-11-2015 11:33 AM
And Index Array is not doing that for you?
06-11-2015 11:34 AM - edited 06-11-2015 11:34 AM
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
06-11-2015 01:47 PM
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
06-11-2015 01:54 PM
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.
06-11-2015 02:46 PM
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.
06-11-2015 02:52 PM
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