Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions OpenEphys.Onix1.Design/Headstage64Dialog.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions OpenEphys.Onix1.Design/Headstage64Dialog.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ public partial class Headstage64Dialog : Form
internal readonly GenericDeviceDialog Rhd2164Dialog;
internal readonly GenericDeviceDialog Bno055Dialog;
internal readonly GenericDeviceDialog TS4231V1Dialog;
internal readonly GenericDeviceDialog PersistentHeartbeatDialog;
internal readonly Headstage64ElectricalStimulatorSequenceDialog ElectricalStimulatorSequenceDialog;
internal readonly Headstage64OpticalStimulatorSequenceDialog OpticalStimulatorSequenceDialog;

Expand All @@ -30,6 +31,9 @@ public Headstage64Dialog(ConfigureHeadstage64 configureNode)
TS4231V1Dialog = new(new ConfigureTS4231V1(configureNode.TS4231));
TS4231V1Dialog.SetChildFormProperties(this).AddDialogToTab(tabPageTS4231);

PersistentHeartbeatDialog = new(new ConfigurePersistentHeartbeat(configureNode.Heartbeat));
PersistentHeartbeatDialog.SetChildFormProperties(this).AddDialogToTab(tabPageHeartbeat);

ElectricalStimulatorSequenceDialog = new(configureNode.ElectricalStimulator);
ElectricalStimulatorSequenceDialog.SetChildFormProperties(this).AddDialogToTab(tabPageElectricalStimulator);

Expand Down
1 change: 1 addition & 0 deletions OpenEphys.Onix1.Design/Headstage64Editor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ public override bool EditComponent(ITypeDescriptorContext context, object compon
DesignHelper.CopyProperties((ConfigureRhd2164)editorDialog.Rhd2164Dialog.Device, configureNode.Rhd2164, DesignHelper.PropertiesToIgnore);
DesignHelper.CopyProperties((ConfigureBno055)editorDialog.Bno055Dialog.Device, configureNode.Bno055, DesignHelper.PropertiesToIgnore);
DesignHelper.CopyProperties((ConfigureTS4231V1)editorDialog.TS4231V1Dialog.Device, configureNode.TS4231, DesignHelper.PropertiesToIgnore);
DesignHelper.CopyProperties((ConfigurePersistentHeartbeat)editorDialog.PersistentHeartbeatDialog.Device, configureNode.Heartbeat, DesignHelper.PropertiesToIgnore);
configureNode.ElectricalStimulator = editorDialog.ElectricalStimulatorSequenceDialog.ElectricalStimulator;
configureNode.OpticalStimulator = editorDialog.OpticalStimulatorSequenceDialog.OpticalStimulator;

Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ public Headstage64ElectricalStimulatorOptions(ConfigureHeadstage64ElectricalStim
textBoxBurstPulseCount.Text = electricalStimulator.BurstPulseCount.ToString();
textBoxInterBurstInterval.Text = electricalStimulator.InterBurstInterval.ToString();
textBoxTrainBurstCount.Text = electricalStimulator.TrainBurstCount.ToString();
textBoxTrainDelay.Text = electricalStimulator.TriggerDelay.ToString();
}

void BurstPulseCountChanged(object sender, System.EventArgs e)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,11 +83,6 @@ public Headstage64ElectricalStimulatorSequenceDialog(ConfigureHeadstage64Electri
new TextBoxBinding<uint>(
StimulusSequenceOptions.textBoxPulsePeriod,
value => { ElectricalStimulator.InterPulseInterval = value; return ElectricalStimulator.InterPulseInterval; },
uint.Parse) },
{ StimulusSequenceOptions.textBoxTrainDelay,
new TextBoxBinding<uint>(
StimulusSequenceOptions.textBoxTrainDelay,
value => { ElectricalStimulator.TriggerDelay = value; return ElectricalStimulator.TriggerDelay; },
uint.Parse) }
};

Expand Down Expand Up @@ -303,7 +298,7 @@ internal override PointPairList[] CreateStimulusWaveforms()
{
for (int channel = 0; channel < NumberOfChannels; channel++)
{
waveforms[channel] = new PointPairList { new PointPair(0, 0), new PointPair(ElectricalStimulator.TriggerDelay, 0) };
waveforms[channel] = new PointPairList { new PointPair(0, 0), new PointPair(0, 0) };

for (int i = 0; i < ElectricalStimulator.TrainBurstCount; i++)
{
Expand Down
Loading