Currently, it just goes on and on, until you do a Ctrl+Z. I think this is
the same with @mluessi 's example, but I am not sure. I could incorporate a
keyboard polling thing so that it stops when the user presses a certain
key. This I should be able to implement easily (and it could be the next
thing to try).

On Thu, Jun 6, 2013 at 11:10 PM, Alexandre Gramfort <
notifications@github.com> wrote:

> In examples/realtime/compute_rt_moving_average.py:
>
> > +rt_epochs = RtEpochs(client, event_id, tmin, tmax, n_epochs,
> > +                     consume_epochs=False, picks=picks, decim=1,
> > +                     reject=dict(grad=4000e-13, eog=150e-6))
> > +
> > +# start the acquisition
> > +rt_epochs.start()
> > +
> > +# compute evoked responses from the received data and plot them
> > +while True:
> > +    evoked = rt_epochs.average()
> > +    pl.figure(1)
> > +    evoked.plot()
> > +    pl.show()
> > +    time.sleep(0.1)
> > +    # remove the oldest epoch
> > +    rt_epochs.remove_old_epochs(1)
>
> how do you stop the while loop?
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/mne-tools/mne-python/pull/615/files#r4576599>
> .
>