11-10-2010 10:19 AM
OK, here's a quick draft how to calculate the max encountered so far.
Maybe it can give you some ideas. Just run it and see....
11-11-2010 09:47 AM
Wow!!! That helped! But I have two small problems. It is calculating the %amplitude while going up, that is from 0 to 10, 10->50, etc. But when I try to go reverse, it's not working. What could be the problem? Also, it's taking some time to remain constant at one value. That might not be a big problem, though!
Thank you so much!
11-11-2010 01:16 PM
I don't understand what you mean by "go reverse".
11-11-2010 01:32 PM
OK, I think I know what you mean. If the amplitdue is declining, the max will never go down. because it is at the max of all values since program start.
Here's a quick draft on how you would take the max of the last 10 measurements. Is that what you want?
11-12-2010 08:02 PM
It is absolutely what I want! Thank you so much! I was racking my brains for this one since september! Thanks a lot!
11-12-2010 08:05 PM
Oh, by the way, how do you get to use a numeric indicator as a control? Someone here said it is possible, is there a way it could be done? I'm just curious....
11-12-2010 08:23 PM
@A BME wrote:
Oh, by the way, how do you get to use a numeric indicator as a control? Someone here said it is possible, is there a way it could be done? I'm just curious....
You can't. Indicators can only display data. They can't be acted on like a control.
If you want to read data from an indicator, then make a local variable of it and set it to Read mode.
11-12-2010 08:40 PM
That helped!! The whole thread started with that question and I ended up getting the solution to my problem. Thank you! 🙂