Skip to content

Commit

Permalink
Add support for NP2000 and NP2010 IMRO part numbers
Browse files Browse the repository at this point in the history
  • Loading branch information
jsiegle committed Nov 2, 2024
1 parent 3e7444b commit cbdb195
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 9 deletions.
15 changes: 8 additions & 7 deletions Source/Basestations/OneBox.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -275,16 +275,17 @@ void OneBox::initialize (bool signalChainIsLoading)

errorCode = checkError(Neuropixels::arm (slot), "arm slot " + String(slot));

setSyncAsInput();

if (errorCode != Neuropixels::SUCCESS)
{
LOGC ("Failed to arm OneBox on slot ", slot, ", error code = ", errorCode);
}
LOGC ("Failed to arm OneBox on slot ", slot, ", error code = ", errorCode);
}
else
{
LOGC ("OneBox initialized on slot ", slot);
}
LOGC ("OneBox initialized on slot ", slot);
}

setSyncAsInput();

}

void OneBox::close()
Expand Down Expand Up @@ -422,7 +423,7 @@ void OneBox::startAcquisition()
LOGD ("OneBox software trigger");
checkError (Neuropixels::setSWTrigger (slot), "setSWTrigger slot " + String (slot));
checkError (Neuropixels::arm (slot), "arm slot " + String (slot));
errorCode = Neuropixels::setSWTrigger (slot);
checkError(Neuropixels::setSWTrigger (slot));

if (errorCode != Neuropixels::SUCCESS)
{
Expand Down
4 changes: 2 additions & 2 deletions Source/Formats/IMRO.h
Original file line number Diff line number Diff line change
Expand Up @@ -182,12 +182,12 @@ class IMRO
LOGC ("Neuropixels NHP passive probe detected.");
settings.probeType = ProbeType::NHP1;
}
else if (value == 21 || value == 2003 || value == 2004)
else if (value == 21 || value == 2000 || value == 2003 || value == 2004)
{
LOGC ("Neuropixels 2.0 single shank probe detected.");
settings.probeType = ProbeType::NP2_1;
}
else if (value == 24 || value == 2013 || value == 2014)
else if (value == 24 || value == 2010 || value == 2013 || value == 2014)
{
LOGC ("Neuropixels 2.0 multi-shank probe detected.");
settings.probeType = ProbeType::NP2_4;
Expand Down

0 comments on commit cbdb195

Please sign in to comment.