02-20-2015 02:22 AM
Hello again,
I'm trying to write a simple VI that uses a FOR loop to calculate a series of data points sequentially and passes them to a 1D array where they will be stored and retrieved later, however I'm having trouble doing this, my VI seems to calculate the values sequentially, but then overwrites each one into the first element in the array rather than the next one
can anyone suggest a simple way to do this? I'm finding the examples next to useless... surely this should be a basic fundamental operation? or am I misunderstanding how arrays are used in labview?
pic of my code attached
02-20-2015 02:28 AM
Hi Sholyoake,
but then overwrites each one into the first element in the array rather than the next one
Because you have programmed it that way: using a BuildArray node with just one input! This creates an array containing just one element…
a simple way to do this?
Move the array indicator outside the loop and use autoindexing to create the array…
I misunderstanding how arrays are used in labview?
Well, you misunderstand basic DATAFLOW…
02-26-2015 05:58 AM
thanks for the reply, sorted it out now 🙂