From 7c0355b36ddc0e92904fed27293585a78d8599bd Mon Sep 17 00:00:00 2001 From: Jakob Voigts <jvoigts@mit.edu> Date: Thu, 16 May 2013 22:42:51 -0400 Subject: [PATCH] fixed scale factor for recordnode works ok with RHD data --- Builds/VisualStudio2012/open-ephys.sln | 4 ++-- Source/Processors/RecordNode.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Builds/VisualStudio2012/open-ephys.sln b/Builds/VisualStudio2012/open-ephys.sln index 3116206f2..7b3521089 100644 --- a/Builds/VisualStudio2012/open-ephys.sln +++ b/Builds/VisualStudio2012/open-ephys.sln @@ -1,6 +1,6 @@ -Microsoft Visual Studio Solution File, Format Version 11.00 +Microsoft Visual Studio Solution File, Format Version 12.00 # Visual Studio 2012 -Project("{5A05F353-1D63-394C-DFB0-981BB2309002}") = "open-ephys", "open-ephys.vcxproj", "{9C924D66-7DEC-1AEF-B375-DB8666BFB909}" +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "open-ephys", "open-ephys.vcxproj", "{9C924D66-7DEC-1AEF-B375-DB8666BFB909}" EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution diff --git a/Source/Processors/RecordNode.cpp b/Source/Processors/RecordNode.cpp index 0e79b4d28..69aa7c771 100755 --- a/Source/Processors/RecordNode.cpp +++ b/Source/Processors/RecordNode.cpp @@ -516,7 +516,7 @@ void RecordNode::writeContinuousBuffer(float* data, int nSamples, int channel) // range; actually need to take into account the gain of each channel for (int n = 0; n < nSamples; n++) { - *(continuousDataFloatBuffer+n) = *(data+n) / scaleFactor; // 10000.0f; + *(continuousDataFloatBuffer+n) = *(data+n) / 10000.0f; // / scaleFactor; } // find file and write samples to disk -- GitLab