-
Notifications
You must be signed in to change notification settings - Fork 4
Refactor Trigger operator to more clearly reflect SpikeGLX API #9
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
Merged
Merged
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
9a726f4
Rename and refactor trigger operator
glopesdev 3d37373
Rename operator in documentation
glopesdev 81ee33c
Group command server properties
glopesdev fc4aab9
Allow TriggerGT to operate with no input sequences
glopesdev 8c252c3
Reorder attribute declarations
glopesdev File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| --- | ||
| uid: Bonsai.SpikeGLX.TriggerGT | ||
| --- | ||
|
|
||
| > [!WARNING] | ||
| > [`TriggerGT`](xref:Bonsai.SpikeGLX.TriggerGT) works only with SpikeGLX runs configured to use **remote controlled start and stop** triggering. | ||
| [!include[TriggerGT](~/articles/spikeglx-triggerGT.md)] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| --- | ||
| uid: spikeglx-trigger | ||
| title: TriggerGT | ||
| --- | ||
|
|
||
| For example, the below workflow starts a new gate immediately, and then toggles the trigger every five seconds. This results in SpikeGLX saving five-second periods of the run every ten seconds. | ||
|
|
||
| :::workflow | ||
|  | ||
| ::: | ||
|
|
||
| <!--Reference Style Links --> | ||
| [`TriggerGT`]: xref:Bonsai.SpikeGLX.TriggerGT | ||
This file was deleted.
Oops, something went wrong.
glopesdev marked this conversation as resolved.
Show resolved
Hide resolved
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,61 @@ | ||
| <?xml version="1.0" encoding="utf-8"?> | ||
| <WorkflowBuilder Version="2.9.0" | ||
| xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
| xmlns:glx="clr-namespace:Bonsai.SpikeGLX;assembly=Bonsai.SpikeGLX" | ||
| xmlns:rx="clr-namespace:Bonsai.Reactive;assembly=Bonsai.Core" | ||
| xmlns="https://bonsai-rx.org/2018/workflow"> | ||
| <Workflow> | ||
| <Nodes> | ||
| <Expression xsi:type="Annotation"> | ||
| <Name>Set Gate</Name> | ||
| <Text><![CDATA[]]></Text> | ||
| </Expression> | ||
| <Expression xsi:type="Combinator"> | ||
| <Combinator xsi:type="glx:TriggerGT"> | ||
| <glx:Host>localhost</glx:Host> | ||
| <glx:Port>4142</glx:Port> | ||
| <glx:Gate>SetHigh</glx:Gate> | ||
| <glx:Trigger>SetLow</glx:Trigger> | ||
| </Combinator> | ||
| </Expression> | ||
| <Expression xsi:type="Annotation"> | ||
| <Name>Toggle Trigger</Name> | ||
| <Text><![CDATA[]]></Text> | ||
| </Expression> | ||
| <Expression xsi:type="Combinator"> | ||
| <Combinator xsi:type="rx:Timer"> | ||
| <rx:DueTime>PT5S</rx:DueTime> | ||
| <rx:Period>PT10S</rx:Period> | ||
| </Combinator> | ||
| </Expression> | ||
| <Expression xsi:type="Combinator"> | ||
| <Combinator xsi:type="glx:TriggerGT"> | ||
| <glx:Host>localhost</glx:Host> | ||
| <glx:Port>4142</glx:Port> | ||
| <glx:Gate>NoChange</glx:Gate> | ||
| <glx:Trigger>SetHigh</glx:Trigger> | ||
| </Combinator> | ||
| </Expression> | ||
| <Expression xsi:type="Combinator"> | ||
| <Combinator xsi:type="rx:Delay"> | ||
| <rx:DueTime>PT5S</rx:DueTime> | ||
| </Combinator> | ||
| </Expression> | ||
| <Expression xsi:type="Combinator"> | ||
| <Combinator xsi:type="glx:TriggerGT"> | ||
| <glx:Host>localhost</glx:Host> | ||
| <glx:Port>4142</glx:Port> | ||
| <glx:Gate>NoChange</glx:Gate> | ||
| <glx:Trigger>SetLow</glx:Trigger> | ||
| </Combinator> | ||
| </Expression> | ||
| </Nodes> | ||
| <Edges> | ||
| <Edge From="0" To="1" Label="Source1" /> | ||
| <Edge From="2" To="3" Label="Source1" /> | ||
| <Edge From="3" To="4" Label="Source1" /> | ||
| <Edge From="4" To="5" Label="Source1" /> | ||
| <Edge From="5" To="6" Label="Source1" /> | ||
| </Edges> | ||
| </Workflow> | ||
| </WorkflowBuilder> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.