Skip to content

Commit

Permalink
Minimal changes for 3.67 compile
Browse files Browse the repository at this point in the history
  • Loading branch information
medengineer committed Mar 28, 2024
1 parent baa20dc commit 6791610
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
Binary file removed Resources/NeuropixAPI_x64_3_62_1.dll
Binary file not shown.
6 changes: 4 additions & 2 deletions Source/Basestations/Basestation_v3.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,7 @@ void Basestation_v3::setSyncAsInput()
{
LOGC("Failed to set sync on SMA input on slot: ", slot);
}

/*
errorCode = Neuropixels::setParameter(Neuropixels::NP_PARAM_SYNCMASTER, slot);
if (errorCode != Neuropixels::SUCCESS)
{
Expand All @@ -350,6 +350,7 @@ void Basestation_v3::setSyncAsInput()
{
LOGC("Failed to set slot ", slot, "SMA as sync source!");
}
*/

errorCode = Neuropixels::switchmatrix_set(slot, Neuropixels::SM_Output_StatusBit, Neuropixels::SM_Input_PXISYNC, true);
if (errorCode != Neuropixels::SUCCESS)
Expand Down Expand Up @@ -379,7 +380,7 @@ Array<int> Basestation_v3::getSyncFrequencies()

void Basestation_v3::setSyncAsOutput(int freqIndex)
{

/*
errorCode = Neuropixels::setParameter(Neuropixels::NP_PARAM_SYNCMASTER, slot);
if (errorCode != Neuropixels::SUCCESS)
{
Expand All @@ -403,6 +404,7 @@ void Basestation_v3::setSyncAsOutput(int freqIndex)
LOGC("Failed to set slot ", slot, " sync frequency to ", freq, " Hz!");
return;
}
*/

LOGD("Setting sync as output...");

Expand Down
5 changes: 4 additions & 1 deletion Source/Basestations/OneBox.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -291,6 +291,7 @@ void OneBox::setSyncAsInput()
LOGC("Failed to set sync on SMA input on slot: ", slot);
}

/*
errorCode = Neuropixels::setParameter(Neuropixels::NP_PARAM_SYNCMASTER, slot);
if (errorCode != Neuropixels::SUCCESS)
{
Expand All @@ -303,6 +304,7 @@ void OneBox::setSyncAsInput()
{
LOGC("Failed to set slot ", slot, "SMA as sync source!");
}
*/

errorCode = Neuropixels::switchmatrix_set(slot, Neuropixels::SM_Output_StatusBit, Neuropixels::SM_Input_SMA1, true);
if (errorCode != Neuropixels::SUCCESS)
Expand All @@ -319,7 +321,7 @@ Array<int> OneBox::getSyncFrequencies()

void OneBox::setSyncAsOutput(int freqIndex)
{

/*
errorCode = Neuropixels::setParameter(Neuropixels::NP_PARAM_SYNCMASTER, slot);
if (errorCode != Neuropixels::SUCCESS)
{
Expand All @@ -343,6 +345,7 @@ void OneBox::setSyncAsOutput(int freqIndex)
LOGC("Failed to set slot ", slot, " sync frequency to ", freq, " Hz!");
return;
}
*/

LOGD("Setting sync as output...");

Expand Down

0 comments on commit 6791610

Please sign in to comment.