LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

read an array from the bottom to the top

Solved!
Go to solution

Hi Hellunteur,

 

"i" is the loop count. It counts from 0 to N-1. You cannot change that behaviour. You should go through the LabVIEW basics course offered by NI on their website...

 

You still don't say what you really want to do. You only ask obvious basic questions...

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 11 of 15
(699 Views)

Yes i'am sorry. What i wanna do is to go from the last case of my array to te first one (the bottom right case to the top left) In order to do that i made two for loops with the array sieze in X and Y for N. But these loops start from 0 to X and woud like to make them start from X to 0. In order to do that i have to decrease the count ad not increase it but this is the problem i am not able to o it. What you propose is the good solution to decrese the count but i'd like to put this value in the array loops to read the array. I don't know if i am clear enought but thanks annyways

0 Kudos
Message 12 of 15
(695 Views)

Hi Hellunteur,

 

so you are able to calculate an index for your array elements, but you're not able to use IndexArray to get that element from the array???

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 13 of 15
(693 Views)

okey well i'am not clear enought my fault. Yes i know how to use Index array but it's not my point. Iwant to scan my array in order to make somme immage processing on certain pixels who verify certains condition. So i need to scan it, all the values to apply my algorythm but for this precise case i need to do it backwards. So according to you is it possible or not ?

 

This is what i am currently doing and want to do almost the same but backwards

 

0 Kudos
Message 14 of 15
(690 Views)

Hi Hellunteur,

 

yes, it's possible.

 

You already calculate the index of your elements. You already use IndexArray. So where is your problem to adapt the calculation to what has been told before?

It's just a simple change in the calculation...

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 15 of 15
(685 Views)