File tree 2 files changed +4
-2
lines changed
2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -65,6 +65,7 @@ if(MSVC)
65
65
target_compile_options (${PLUGIN_NAME} PRIVATE /sdl- /W0)
66
66
67
67
install (TARGETS ${PLUGIN_NAME} RUNTIME DESTINATION ${GUI_BIN_DIR} /plugins CONFIGURATIONS ${CMAKE_CONFIGURATION_TYPES} )
68
+ install (FILES $<TARGET_PDB_FILE:${PLUGIN_NAME} > DESTINATION ${GUI_BIN_DIR} /plugins OPTIONAL )
68
69
69
70
set (CMAKE_PREFIX_PATH ${CMAKE_CURRENT_SOURCE_DIR} /../libs)
70
71
elseif (LINUX)
Original file line number Diff line number Diff line change @@ -138,6 +138,7 @@ void Neuropixels_1::addFrame(oni_frame_t* frame)
138
138
139
139
for (int i = 0 ; i < framesPerSuperFrame; i++)
140
140
{
141
+ int newDataOffset = dataOffset + i * 36 ; // 36 = 32 ADCs + type + 2 counters
141
142
if (i == 0 ) // LFP data
142
143
{
143
144
int superCountOffset = superFrameCount % superFramesPerUltraFrame;
@@ -152,7 +153,7 @@ void Neuropixels_1::addFrame(oni_frame_t* frame)
152
153
153
154
int chanIndex = adcToChannel[adc] + superCountOffset * 2 ; // map the ADC to muxed channel
154
155
lfpSamples[(chanIndex * numUltraFrames) + ultraFrameCount ] =
155
- float (*(dataPtr + adcToFrameIndex[adc] + dataOffset ) >> 5 ) * 0 . 195f ;
156
+ float (*(dataPtr + adcToFrameIndex[adc] + newDataOffset ) >> 5 );
156
157
157
158
}
158
159
}
@@ -163,7 +164,7 @@ void Neuropixels_1::addFrame(oni_frame_t* frame)
163
164
{
164
165
int chanIndex = adcToChannel[adc] + chanOffset; // map the ADC to muxed channel.
165
166
apSamples[(chanIndex * superFramesPerUltraFrame * numUltraFrames) + superFrameCount] =
166
- float (*(dataPtr + adcToFrameIndex[adc] + dataOffset ) >> 5 ) * 0 . 195f ;
167
+ float (*(dataPtr + adcToFrameIndex[adc] + newDataOffset ) >> 5 );
167
168
}
168
169
}
169
170
}
You can’t perform that action at this time.
0 commit comments