02-10-2022 10:09 PM - edited 02-10-2022 10:20 PM
I only want a carton that can hold 12 eggs. I don't need an infinite amount of egg. If you want that, maybe it's a good solution for you. But that's not what I'm seeking
02-10-2022 10:12 PM - edited 02-10-2022 10:20 PM
@User002 wrote:This is my first week with labVIEW, so I'm a little confused
This is not a LabVIEW problem.
LabVIEW is a very powerful programming language and a good programmer can do anything with it.
You can initialize an array with a given number of elements and replace them one by one or you can auto index at the output tunnel of a for loop to create that array. Either way, the compiler will know the final size and allocate accordingly. You don't even need to worry about that.
Really fixed size arrays are important in special cases (FPGA!) Where LabVIEW supports that fully.
02-10-2022 10:14 PM - edited 02-10-2022 10:19 PM
That is not the problem I was asking about. If you forget what I was asking already, you can reread the original post. If you can't or don't want to answer, that's fine. I'm not here to argue about what you'd rather do. I'm just here to see what I can do using my sets of constraints. I prefer less replies if you can't contribute to the conversation
02-11-2022 12:50 AM
Hi chuck,
@User002 wrote:
If you forget what I was asking already, you can reread the original post.
I want to build an array of a certain size by loops stopping when the array is full.
array = []
repeat
append element to array
until arraysize=12
Some pseudocode.
Keep in mind: building an array using BuildArray and a shiftregister is less efficient then what Altenbach suggested initializing an array and replacing one element after the other), especially when array sizes grow larger!
(When you want to improve your LabVIEW skills you also should take care of such sugeestions…)
02-11-2022 12:55 AM
Can this method filter out data I don't want in the array though?
02-11-2022 01:10 AM
02-11-2022 09:18 AM
Wouldn't that be using Boolan logic?
02-11-2022 09:24 AM - edited 02-11-2022 09:33 AM
Hi Chuck,
@User002 wrote:
Wouldn't that be using Boolan logic?
How else do you want to implement a decision in software when you don't want to use a comparison function and a case structure?
You want to collect data conditionally, but you don't want to implement that condition???
Why don't you use boolean wires???
02-11-2022 09:32 AM
Because that's not what I'm asking. If you can't answer my question as I asked, you don't have to respond. I'm taking altenbach's method instead
02-11-2022 09:37 AM