Hi all,
First of all, I'm a novice of LabVIEW, and my question might look subtle to a lot of you. So, I apologize ahead if that is the case.
I'm trying to implement a very simple algorithm in which
1) a while loop keeps pulling a series of random numbers,
2) and when a user clicks a button, it starts collecting the series of numbers from the moment of clicking and takes average of them, and store it as a global variable.
3) and when a user clicks the same button (doesn't have to be the same) again, it goes back and keeps pulling the random number, but this time, the output will be divided by the global variable.
Basically, I'm trying to normalize a series of data by selectively choosing my baseline in the strealine of the same data. I tried to combine a few structures (of course including a while loop) such as case, condition, event... but not at all working.
If you have any idea or advice, I'd really appreciate it.
Thanks!