operator suspend versus normal end of run

Forum for software developers to discuss BCI2000 software development
Locked
dthomp
Posts: 20
Joined: 09 Dec 2008, 17:13

operator suspend versus normal end of run

Post by dthomp » 11 Jan 2011, 02:14

Hi folks,

Is there an easy way for a module to know if it's being suspended because an operator hit the suspend button rather than because the run has ended normally?

In particular, I'm interested if a Signal Processing module can get this information while working with, say, CursorTask as an application module.

I can probably do something like create a state variable that is set only when the operator button is pressed, and check that, but it seems like there might be an easier path I'm overlooking. I'm interested in your input.

Thank you,

Dave

mellinger
Posts: 1065
Joined: 12 Feb 2003, 11:06

Post by mellinger » 11 Jan 2011, 08:54

Dave,

there is no difference between stopping a SignalProcessing module from the Operator module, and an Application module ending a run. In both cases, the "Running" state is set to zero, and the SignalProcessing module reacts to that.

Best regards,
Juergen

Locked

Who is online

Users browsing this forum: No registered users and 1 guest