With your attached VI, the shift register/while loop setup is
completely useless as your random/simulated data is generated outside
of the while loop. Therefore it wouldn't matter how many times the
while loop ran, it would always have the same data value going in on
the left. You're not implementing your idea of maintaining the peak
value either, as all you're doing is checking for the max value in the
whole array post-looping. As such, the "history" of your indicator is
no more than one value.

I'm guessing that either you do want to simply find the maximum value
at the end of the data collection and want to clear the indicator each
time the VI is run/you click on a boolean button, or you want to
update the max value indicator in realtime during the data collection
and have the ability to reset it while the VI is still running. Both
are easy to do, just let us know which method you want.

Best regards,
James.

Reply via email to