LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Array as counters??

The objective is to get the columns of data

 

data from column 0 = in one array

data from column 1 - in another array 

.................until column n = in n array....

 

 Right now i do not have a better way , other than an array subset. But I would not know what my value of n would be as it's a GUI. The user has to specify a value. It could be any value.

 

Any feedbacks are welcome..

 

 

0 Kudos
Message 11 of 18
(959 Views)

You want to create a separate 1D array for each column in your 2D array?

May I ask what the purpose of that would be? 

Cory K
0 Kudos
Message 12 of 18
(954 Views)
A  ' for loop' will only return my last value. If my user specify 8 elements in my array, then i'll only get the value at column 8. I suspect the way I constructed my 'for loop' might be wrong. That's why asking for help here...
0 Kudos
Message 13 of 18
(949 Views)

Cory K wrote:

You want to create a separate 1D array for each column in your 2D array?

May I ask what the purpose of that would be? 


Yes please answer that Q.

 

I am sensing you are trying to misuse array indicators and that is why we aren't "getting it".

 

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 14 of 18
(947 Views)

To compare the values with another array . That other array is doing fine. So i didn't include that as part of my question here.

 

0 Kudos
Message 15 of 18
(944 Views)

Guitar wrote:

To compare the values with another array . That other array is doing fine. So i didn't include that as part of my question here.

 


So do you actually need to display the data? Or do you just need to keep track of it for comparison later?
LabVIEW can keep that data in memory for use later without having to display it on the front panel 

 

Cory K
0 Kudos
Message 16 of 18
(939 Views)

''So do you actually need to display the data? Or do you just need to keep track of it for comparison later?
LabVIEW can keep that data in memory for use later without having to display it on the front panel''

 

 

Hi. You guys finally got my point. Thanks!! I knew i missed out something. How do Labview keep data in memory? This would be a much better option than displaying all the data. Any link or step by step tips on how to do that??

 

 

0 Kudos
Message 17 of 18
(922 Views)

LabVIEW actually kept data in wire.

Therefore, if you wish to later use data in loop, you can keep it with "shift register".

But if you wish to use it in another loop, the simplest way is to display it, and using "local variable" to send data from display to another loop.

If you don't understand the term in quote, try searching it in ni.com.

0 Kudos
Message 18 of 18
(878 Views)