@@ -3,26 +3,42 @@ uid: hs64_ostim
33title : Headstage 64 Optical Stimulation
44---
55
6- The following excerpt from the Headstage64 [ example workflow] ( xref:hs64_workflow ) demonstrates optical stimulation by
7- triggering a train of pulses following a press of the ◯ key on the breakout board.
6+ The following excerpt from the Headstage64 [ example
7+ workflow] ( xref:hs64_workflow ) demonstrates optical stimulation by triggering a
8+ train of pulses following a press of the ◯ key on the breakout board.
89
910::: workflow
1011![ /workflows/hardware/hs64/ostim.bonsai workflow] ( ../../../workflows/hardware/hs64/ostim.bonsai )
1112:::
1213
1314The < xref:OpenEphys.Onix1.DigitalInput > operator generates a sequence of
14- [ DigitalInputDataFrames] ( xref:OpenEphys.Onix1.DigitalInputDataFrame ) . Although the digital inputs
15- are sampled at 4 Mhz, these data frames are only emitted when the port status changes (i.e., when a
16- pin, button, or switch is toggled). In the Breakout Board example workflow, the ` DigitalInput ` 's
17- ` DeviceName ` property is set to "BreakoutBoard/DigitalInput". This links the ` DigitalInput ` operator
18- to the corresponding configuration operator.
15+ [ DigitalInputDataFrames] ( xref:OpenEphys.Onix1.DigitalInputDataFrame ) . Although
16+ the digital inputs are sampled at 4 Mhz, these data frames are only emitted when
17+ the port status changes (i.e., when a pin, button, or switch is toggled). In the
18+ Headstage 64 example workflow, the ` DigitalInput ` 's ` DeviceName ` property is
19+ set to "BreakoutBoard/DigitalInput". This links the ` DigitalInput ` operator to
20+ the corresponding configuration operator.
1921
20- < xref:OpenEphys.Onix1.BreakoutButtonState > is selected from the ` DigitalInputDataFrame ` . It is an enumerator with values
21- that correspond to bit positions of the breakout board's digital port. When this type is connected to a ` HasFlags `
22- operator, the enumerated values appear in the ` HasFlags ` 's ` Value ` property's dropdown menu. Because ` HasFlags ` 's
23- ` Value ` is set to "Circle", its output is "True" when the selected ` BreakoutButtonState ` bit field contains the
24- "Circle" flag.
22+ < xref:OpenEphys.Onix1.BreakoutButtonState > is selected from the
23+ ` DigitalInputDataFrame ` . It is an enumerator with values that correspond to bit
24+ positions of the breakout board's digital port. When this type is connected to a
25+ ` HasFlags ` operator, the enumerated values appear in the ` HasFlags ` 's ` Value `
26+ property's dropdown menu. Because ` HasFlags ` 's ` Value ` is set to "Circle", its
27+ output is "True" when the selected ` BreakoutButtonState ` bit field contains the
28+ "Circle" flag. The < xref:Bonsai.Reactive.DistinctUntilChanged > operator only
29+ allows passes an item in its input sequence if it's different from the previous
30+ item in the input sequence. The < xref:Bonsai.Reactive.Condition > operator only
31+ passes an item in its input sequence if ` Condition ` 's internal logic is "True".
32+ In this case, ` Condition ` has no internal logic (which can be inspected by
33+ selecting the node and pressing <kbd >Ctrl+Enter</kbd >), so it uses the value of
34+ the Boolean in its input sequence to decide whether or not to pass a value. The
35+ < xref:Bonsai.Expressions.DoubleProperty > operator emits a value determined by
36+ its ` Value ` property whenever it receives an item in its input sequence. This
37+ value is used to determine the delay between triggering the stimulus and
38+ delivery of the stimulus. When ` Double ` 's ` Value ` property is set to zero, there
39+ is no such delay.
2540
26- When the < xref:OpenEphys.Onix1.Headstage64OpticalStimulatorTrigger > operator receives a "True" value in its input
27- sequence, a stimulus waveform is triggered. The waveform can be modified by editing the
28- ` Headstage64OpticalStimulatorTrig ` operator's properties.
41+ When the < xref:OpenEphys.Onix1.Headstage64OpticalStimulatorTrigger > operator
42+ receives a "True" value in its input sequence, a stimulus waveform is triggered.
43+ The waveform can be modified by editing the ` Headstage64OpticalStimulatorTrig `
44+ operator's properties.
0 commit comments