Given Foad's response to my earlier answer, I'm going to try to re-state and answer his question here in a second response, rather than extended comments.
Problem: There's an unknown function $F : [0, 500] \to \mathbb R$; we are given samples $y_i = F(t_i)$ of $F$ at times $t_0 = 0, t_1 = b, t_2 = 2b, \ldots, t_i = i\cdot b, \ldots, t_n$, where $n$ is approximately $500/b$. We may assume that non-constancies of $F$ occur at a scale substantially larger than $b$. We'd like to identify points $t_i$ at which $F$ is near-constant, independent of the value $b$.
From the number of samples, you can get a decent estimate of $b$ (namely, $b \approx 500/n$. (It's possible, too, that in your context you're actually given the value of $b$.)
Then compute, for instance,
$$
d_i = \frac{y_{i+1} - y_{i}}{b}
$$
When $d_i$ is small (less than some constant $\epsilon$ that you choose), we can say $F$ is nearly constant; when $d_i$ is large, $F$ is varying. This is pretty crude, but it is, at least, more or less independent of the spacing, $b$.
Another possible choice is "Compute the variance $v_i$ of the numbers $y_{i-k}, \ldots, y_{i+k}$ for some small $k$" (the "window size" is then $2k+1$), but this has the disadvantage that if you double the number of samples (i.e., cut the value $b$ in half), you end up examining a different period of time.
Better by far is to pick a time-span $\Delta t$, and compute $k = \dfrac{\Delta t}{2b}$, and then look at the variance of the samples $y_{i-k}, \ldots, y_{i+k}$. If $b$ doubles, $k$ will be half as large, and you'll end up looking at fewer samples, but they'll correspond to (approximately) the same time interval as your previous ones. Even if you take this latter approach, the results for different $b$ values will not be identical: the sample variance for $20$ samples will be difference than the sample variance for $10$...but my guess is that in your particular problem, this will not be significant.
To summarize:
First, and once and for all, pick a time-interval over which you expect variation to be significant. Let's say that's $\Delta t = 5 ms$.
Estimate $b \approx 500 / n$ (or use $b$ if it's given to you).
Compute $k = \dfrac{b}{2 \Delta t}$.
For each $i > k$,
(i) Let $m_i = \dfrac{ \sum_{j = i-k}^{j = i+k} y_j} {2k+1}$.
(ii) Let $v_i = \frac{1}{2k+1} \sqrt{ \sum_{j = i-k}^{j = i+k} (y_j - m_i)^2}$.
(iii) if $v_i$ is larger than some threshold, report that $F$ is varying at $x_i$; else report that it's approximately constant.