Skip to content

Conversation

jonnew
Copy link
Member

@jonnew jonnew commented Oct 10, 2025

  • This is an attempt at automatically using the SERDES GPIO to trigger stimuli on headstage-64 when the delay is 0
  • This solution is imperfect. The big issue with it is that if both stimulator triggers are enabled and receiving input, then the although the hardware will ensure the electrical stimulator takes precedence, the optical stimulator trigger will still issue GPIO toggles. This effectively means the OpticalStimulatorTrigger and trigger electrical stimuli.
  • If the GPO operator was stand alone, then this would not be surprising, but it is in this case.

jonnew added 2 commits October 9, 2025 15:28
- Remove explcity ostim and estim trigger delay registers in favor of
  dynamic delay via trigger register
- Add the ability to turn off indication LED
- Fix register values and frame defintions
- Add persistant heartbeat device to Headstage64 device aggregate
- This is an attempt at automatically using the SERDES GPIO to trigger
  stimuli on headstage-64 when the delay is 0
- This soltuion is imperfect. The big issue with it is that if both
  stimulator triggers are enabled and receiving input, then the although
  the hardware will ensure the electrical stimulator takes precidence,
  the optical stimulator trigger will still issue GPIO toggles. This
  effectively means the OpticalStimulatorTrigger and trigger electrical
  stimuli.
- If the GPO operator was stand alone, then this would not be
  surprising, but it is in this case.
@jonnew jonnew requested a review from bparks13 October 10, 2025 21:12
/// </remarks>
[Description("Specifies whether the electrical stimulator will respect triggers.")]
[Category(DeviceFactory.AcquisitionCategory)]
public bool Enable
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this be Enable or StimEnable? The private field is stimEnable, and the corresponding property in the Optical stimulator is StimEnable

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants