Hello All,
Please help me if anyone have nice idea.
I want to replace Array elements based on certain conditions.
As per attached Sample,
I have fixed character Array & Some Random values with Array Size.
Here, I need to check Random char with fixed Array. If char is not matching then I need to replace that index value with “NaN”. Once it is matching for one time then next time I need to display Run time value for that particular index.
已解决! 转到解答。
Dear Yamaeda,
Thanks for your reply.
your attached VI is not mathching with my requirement. If 1st time Index is matching then next time we should not display NaN (eventhough its not mathching for next time). I have to display NaN until that index is not matching.
after Matching I need to display Runtime Value....
Ok, so your program is working as it should? Then what's the question? 🙂
What problem are you trying to solve?
/Y
Yes, you have way too much code for such a simple problem. Also, your random character generator is flawed, because A and Z will only occur at half the probability of the other characters.
Here's a quick draft how it could be done with less code (LV 2012). Modify as needed. I am sure more simplifications are possible....

Dear Altenbach,
Thanks for your nice idea.
I have made minor changes to your code. Because sometimes i need to check Same character 2-3 times from Fixed array.
I think, once all index values are matching then no need to check.
You can just do a "AND array elements" on the boolean array for the outer case structure. No need to convert, sum, compare sizes, etc.