'Clear log after 2048 samples have taken place
If LogRow >= 2047 Then

If DataLogging.AutoClearLog.Value = 1 Then

           Call ClearLogProc
           Exit Sub
           
End If
           
           DataLogging.ShowLogFull.Enabled = True
           
           Exit Sub

End If
