Skip to content

Commit

Permalink
Disable parameter editors if canvas is opened while acquisition is ac…
Browse files Browse the repository at this point in the history
…tive
  • Loading branch information
jsiegle committed Nov 7, 2023
1 parent 2b2cbc4 commit e0a8a99
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Source/NeuropixCanvas.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,8 @@ void NeuropixCanvas::resized()

void NeuropixCanvas::startAcquisition()
{
std::cout << "Neuropix Canvas startAcquisition()" << std::endl;

for (auto settingsInterface : settingsInterfaces)
settingsInterface->startAcquisition();
}
Expand Down
6 changes: 6 additions & 0 deletions Source/NeuropixEditor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -814,6 +814,12 @@ Visualizer* NeuropixEditor::createNewCanvas(void)
{
GenericProcessor* processor = (GenericProcessor*) getProcessor();
canvas = new NeuropixCanvas(processor, this, thread);

if (acquisitionIsActive)
{
canvas->startAcquisition();
}

return canvas;
}

Expand Down
2 changes: 2 additions & 0 deletions Source/UI/NeuropixInterface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1148,6 +1148,8 @@ void NeuropixInterface::selectElectrodes(Array<int> electrodes)

void NeuropixInterface::startAcquisition()
{

std::cout << "Neuropix Interface startAcquisition()" << std::endl;

bool enabledState = false;
acquisitionIsActive = true;
Expand Down

0 comments on commit e0a8a99

Please sign in to comment.