Hey guys,
This question could be kind of stupid. Assume there is a random number generating 0 to 1 every second and outputing to indicator#1. I would like to have a switch, when I turn on it, it can record the number and the only number generated at that time, and output to indicator#2. The random number keeps running though. I hope both of them to be drawn on a plot and of course the number of indicator#2 is constant.
My proposal work is like this: Assume there is a array which shows up one by one from 7.0, 7.1, 7,2, 7,3.....9.9 to 10 every second. When the number is at 7.5, I will capture this number. Then I can compare the running number and the captured number, and do some actions. Can anyone give me an example? I have been trying hard to think of any ways doing this. Thank you so much.
Regards,
Scottit