06-07-2015 12:56 PM
I have given array input(which is string) to 'index array' and converted to number..after that I performed some task..Once the conditions are over I need corresponding array to be stored in single column one by one so that I can find max value..but my problem is that I'm getting array only in a single cell(not storing one by one but changing within a cell) so I couldn't find max value.what should I do?
06-07-2015 01:03 PM
06-07-2015 01:44 PM
Ya used shift register but facing same prob..values are changing but getting same value throughout the column
06-07-2015 01:50 PM
06-07-2015 02:50 PM - edited 06-07-2015 02:52 PM
@vinomurthy wrote:
Ya used shift register but facing same prob..values are changing but getting same value throughout the column
Your code is completely pointless. You really need to start with a few programming tutorials!
None of your inputs to the loops are autoindexing, they are just plain scalars (a boolean and two DBLs) and even if you spin the loop 1140 times there will be nothing new except for the growing array inder some conditions. In addition, your indicator is in the TRUE case, thus it will not get updated if the boolean input is FALSE and you'll never see anything interesting. The array in the shift register is not wired across in the FALSE case, thus it get zeroed out whenever FALSE occurs. It is pointless to update the array indicator in the TRUE case, that indicator belongs after the loop wired to the right shift register. Don't set the index of your array diagram constant to 1, because now we cannot see if it is really empty.
What is the purpose of the outer stacked sequence structure? Nobody in ther right mind uses these anymore (except for very special occasions). The outcome of your FOR loop can be predicted from first principles and the result generated without using any loop at all!
Pictures are useless for debugging, because many things are hidden. Attach the actual VI instead!