-
-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
States node #62
Comments
Here's how you would get a gate by combining a States node and an ExpressionFilter from #65:
|
Here's how you would get a periodic event by combining 2 states. This example will send 5 events called "on" (spaced 200ms apart) whenever it is triggered, except not in the first 30 seconds of its life. There's no requirement for a manual trigger, I could just as well have made it be triggered automatically every 10 seconds.
|
A state machine is a fundmental programming pattern, and keeping track of states is a natural part of many biofeedback and BCI apps. Therefore I suggest having a state machine node in core.
Proof that this should be core comes from the fact that the state machine implementation I have developed would make it possible to deprecate the Periodic and Gate nodes.
The text was updated successfully, but these errors were encountered: