Hi All,
I am using a Red Lion graphite G12 panel to draw a scatter graph, all works well until I run this code every morning to reset the arrays back to zero:
// Reset graph data at 6am
if(System.Time.Day >0 || System.Time.Day <6){
if(System.Time.Hour ==5)
if(System.Time.Minute ==59 && System.Time.Seconds ==59){
Fill(System.Graph.Time_Array[0], 0, 1440);
Fill(System.Graph.Count_Array[0], 0, 1440);
System.Graph.Door_Counter = 0;}}
All the arrays in System.Graph.Count_Array zero correctly and all the arrays in System.Graph.Time_Array zero correctly except for Array [359] which always retains its value.
I have tried zeroing the array using a for loop and I get the same result, if I write a zero to that array on its own it zeros and stays like that until it is written into again.
Has anyone had anything similair?
I am using a Red Lion graphite G12 panel to draw a scatter graph, all works well until I run this code every morning to reset the arrays back to zero:
// Reset graph data at 6am
if(System.Time.Day >0 || System.Time.Day <6){
if(System.Time.Hour ==5)
if(System.Time.Minute ==59 && System.Time.Seconds ==59){
Fill(System.Graph.Time_Array[0], 0, 1440);
Fill(System.Graph.Count_Array[0], 0, 1440);
System.Graph.Door_Counter = 0;}}
All the arrays in System.Graph.Count_Array zero correctly and all the arrays in System.Graph.Time_Array zero correctly except for Array [359] which always retains its value.
I have tried zeroing the array using a for loop and I get the same result, if I write a zero to that array on its own it zeros and stays like that until it is written into again.
Has anyone had anything similair?