Hi, I made a schoolboy error and found the simulation could not be stopped. I was testing a program and got an "Array index out of bounds" error. My mistake but the simulation was stuck in a loop and none of the buttons would work so I had to use task manager to stop it. The program was lo...
Hi Ben, I may be wrong but that seems to be a rolling average from the start, I am looking for the last x mins. I also am looking at having a button where I can change from 5, 10 , 15 mins. I have had a think about how I think it will work so now I need to figure out how to simulate it. Something I ...
Hi Martin, Thanks, I am surprised you say the circular buffer destroys the data, is this normal, in the Wiki GetindexedValue says it leaves the contents and pointers untouched. Or is in because in the example it is reading an array? If that is the case I can loop through the values rather than readi...
Hi Martin, So 1,2,3,4,5 - Average(Sum(GetIndex[0..4]) = 15/5 = 3 Will do what I require and a very neat solution. I may allow to select the option for 5, 10, 15 mins so if I have 0-899 or 0-8 For the last 5 mins would I do 0,1,2,3,4,5,6,7,8 Average(3(GetIndex[6..8]) or Average(3(GetIndex[0..2]) For ...
Hello, I am looking at creating a rolling average macro, in a PLC I would create an array and populate it rolling over to zero and start again. I would then read the data back and if it crosses zero continue reading from the highest element. As FC has a circular buffer I thought I would look into th...
Hi Steve, Thanks for your example, I have managed to get what I want (I think), I am a bit puzzled why I could not get it to work the same and had to modify it. The first issue was that I set the width to 600 (10 mins at 1 second) and it did not start to draw the chart until 10 minutes had expired I...
Hi,
Not exactly a bug but a bit annoying, I set a couple of ranges from 6-8 and 8-10 but on the actual page they are shown from approx 6.4-8.2 and 9.2-10.