Permalink
Browse files

Made the threshold configurable.

  • Loading branch information...
IAmCoder committed Jan 6, 2015
1 parent b46abb6 commit 8652166e9991b1ebc71709492f07660922d48c07
@@ -13,6 +13,12 @@
"SccProvider" = "8:"
"Hierarchy"
{
"Entry"
{
"MsmKey" = "8:_259000EB87ED4375510270415E10E11A"
"OwnerKey" = "8:_C55B1C30F9804D249DF1E072DCF8CCAD"
"MsmSig" = "8:_UNDEFINED"
}
"Entry"
{
"MsmKey" = "8:_25FED00C02F3441AAF0AF20E4C28BBBA"
@@ -51,12 +57,6 @@
}
"Entry"
{
"MsmKey" = "8:_627789EC78EE4D5C06AA0DB3E04F7B58"
"OwnerKey" = "8:_C55B1C30F9804D249DF1E072DCF8CCAD"
"MsmSig" = "8:_UNDEFINED"
}
"Entry"
{
"MsmKey" = "8:_6DD7414E52FC4370864DB237CB17AEF8"
"OwnerKey" = "8:_UNDEFINED"
"MsmSig" = "8:_UNDEFINED"
@@ -123,44 +123,44 @@
}
"Entry"
{
"MsmKey" = "8:_B527B4E53279A5D48D5156C8D54C86E2"
"OwnerKey" = "8:_C55B1C30F9804D249DF1E072DCF8CCAD"
"MsmKey" = "8:_C18840D6628D4B498C1C7EA768ECFDB9"
"OwnerKey" = "8:_UNDEFINED"
"MsmSig" = "8:_UNDEFINED"
}
"Entry"
{
"MsmKey" = "8:_C18840D6628D4B498C1C7EA768ECFDB9"
"MsmKey" = "8:_C55B1C30F9804D249DF1E072DCF8CCAD"
"OwnerKey" = "8:_UNDEFINED"
"MsmSig" = "8:_UNDEFINED"
}
"Entry"
{
"MsmKey" = "8:_C55B1C30F9804D249DF1E072DCF8CCAD"
"MsmKey" = "8:_D561255389C842478CB86643369FC415"
"OwnerKey" = "8:_UNDEFINED"
"MsmSig" = "8:_UNDEFINED"
}
"Entry"
{
"MsmKey" = "8:_C60045C60F7E6A1ECB89F4F9C68FBC67"
"MsmKey" = "8:_D6E2201A799DBAE1170442AF66254887"
"OwnerKey" = "8:_C55B1C30F9804D249DF1E072DCF8CCAD"
"MsmSig" = "8:_UNDEFINED"
}
"Entry"
{
"MsmKey" = "8:_D561255389C842478CB86643369FC415"
"MsmKey" = "8:_DB5EDEF8D7884AC1BD93265A814D5B33"
"OwnerKey" = "8:_UNDEFINED"
"MsmSig" = "8:_UNDEFINED"
}
"Entry"
{
"MsmKey" = "8:_DB5EDEF8D7884AC1BD93265A814D5B33"
"MsmKey" = "8:_F0FC95BBE2F54050AFF3BA55150CF092"
"OwnerKey" = "8:_UNDEFINED"
"MsmSig" = "8:_UNDEFINED"
}
"Entry"
{
"MsmKey" = "8:_F0FC95BBE2F54050AFF3BA55150CF092"
"OwnerKey" = "8:_UNDEFINED"
"MsmKey" = "8:_F776461B6BE291336337D82E87A7FE5E"
"OwnerKey" = "8:_C55B1C30F9804D249DF1E072DCF8CCAD"
"MsmSig" = "8:_UNDEFINED"
}
"Entry"
@@ -196,19 +196,19 @@
"Entry"
{
"MsmKey" = "8:_UNDEFINED"
"OwnerKey" = "8:_C60045C60F7E6A1ECB89F4F9C68FBC67"
"OwnerKey" = "8:_D6E2201A799DBAE1170442AF66254887"
"MsmSig" = "8:_UNDEFINED"
}
"Entry"
{
"MsmKey" = "8:_UNDEFINED"
"OwnerKey" = "8:_627789EC78EE4D5C06AA0DB3E04F7B58"
"OwnerKey" = "8:_F776461B6BE291336337D82E87A7FE5E"
"MsmSig" = "8:_UNDEFINED"
}
"Entry"
{
"MsmKey" = "8:_UNDEFINED"
"OwnerKey" = "8:_B527B4E53279A5D48D5156C8D54C86E2"
"OwnerKey" = "8:_259000EB87ED4375510270415E10E11A"
"MsmSig" = "8:_UNDEFINED"
}
}
@@ -308,14 +308,45 @@
{
"Name" = "8:.NET Framework"
"Message" = "8:[VSDNETMSG]"
"Version" = "8:3.5.30729"
"FrameworkVersion" = "8:3.5.30729"
"AllowLaterVersions" = "11:FALSE"
"InstallUrl" = "8:http://go.microsoft.com/fwlink/?LinkId=76617"
}
}
}
"File"
{
"{9F6F8455-1EF1-4B85-886A-4223BCC8E7F7}:_259000EB87ED4375510270415E10E11A"
{
"AssemblyRegister" = "3:1"
"AssemblyIsInGAC" = "11:FALSE"
"AssemblyAsmDisplayName" = "8:lucidcode.Controls, Version=1.0.0.1, Culture=neutral, processorArchitecture=MSIL"
"ScatterAssemblies"
{
"_259000EB87ED4375510270415E10E11A"
{
"Name" = "8:lucidcode.Controls.dll"
"Attributes" = "3:512"
}
}
"SourcePath" = "8:lucidcode.Controls.dll"
"TargetName" = "8:"
"Tag" = "8:"
"Folder" = "8:_491A001224CF4D699EA475B2FB5F2890"
"Condition" = "8:"
"Transitive" = "11:FALSE"
"Vital" = "11:TRUE"
"ReadOnly" = "11:FALSE"
"Hidden" = "11:FALSE"
"System" = "11:FALSE"
"Permanent" = "11:FALSE"
"SharedLegacy" = "11:FALSE"
"PackageAs" = "3:1"
"Register" = "3:1"
"Exclude" = "11:FALSE"
"IsDependency" = "11:TRUE"
"IsolateTo" = "8:"
}
"{9F6F8455-1EF1-4B85-886A-4223BCC8E7F7}:_25FED00C02F3441AAF0AF20E4C28BBBA"
{
"AssemblyRegister" = "3:1"
@@ -447,37 +478,6 @@
"IsDependency" = "11:FALSE"
"IsolateTo" = "8:"
}
"{9F6F8455-1EF1-4B85-886A-4223BCC8E7F7}:_627789EC78EE4D5C06AA0DB3E04F7B58"
{
"AssemblyRegister" = "3:1"
"AssemblyIsInGAC" = "11:FALSE"
"AssemblyAsmDisplayName" = "8:lucidcode.LucidScribe.Interface, Version=1.0.2.0, Culture=neutral, processorArchitecture=MSIL"
"ScatterAssemblies"
{
"_627789EC78EE4D5C06AA0DB3E04F7B58"
{
"Name" = "8:lucidcode.LucidScribe.Interface.dll"
"Attributes" = "3:512"
}
}
"SourcePath" = "8:lucidcode.LucidScribe.Interface.dll"
"TargetName" = "8:"
"Tag" = "8:"
"Folder" = "8:_491A001224CF4D699EA475B2FB5F2890"
"Condition" = "8:"
"Transitive" = "11:FALSE"
"Vital" = "11:TRUE"
"ReadOnly" = "11:FALSE"
"Hidden" = "11:FALSE"
"System" = "11:FALSE"
"Permanent" = "11:FALSE"
"SharedLegacy" = "11:FALSE"
"PackageAs" = "3:1"
"Register" = "3:1"
"Exclude" = "11:TRUE"
"IsDependency" = "11:TRUE"
"IsolateTo" = "8:"
}
"{1FB2D0AE-D3B9-43D4-B9DD-F88EC61E35DE}:_6DD7414E52FC4370864DB237CB17AEF8"
{
"SourcePath" = "8:..\\OpenEEG\\PluginHandler.cs"
@@ -727,27 +727,16 @@
"SharedLegacy" = "11:FALSE"
"PackageAs" = "3:1"
"Register" = "3:1"
"Exclude" = "11:FALSE"
"Exclude" = "11:TRUE"
"IsDependency" = "11:FALSE"
"IsolateTo" = "8:"
}
"{9F6F8455-1EF1-4B85-886A-4223BCC8E7F7}:_B527B4E53279A5D48D5156C8D54C86E2"
"{1FB2D0AE-D3B9-43D4-B9DD-F88EC61E35DE}:_C18840D6628D4B498C1C7EA768ECFDB9"
{
"AssemblyRegister" = "3:1"
"AssemblyIsInGAC" = "11:FALSE"
"AssemblyAsmDisplayName" = "8:lucidcode.Controls, Version=1.0.0.1, Culture=neutral, processorArchitecture=MSIL"
"ScatterAssemblies"
{
"_B527B4E53279A5D48D5156C8D54C86E2"
{
"Name" = "8:lucidcode.Controls.dll"
"Attributes" = "3:512"
}
}
"SourcePath" = "8:lucidcode.Controls.dll"
"TargetName" = "8:"
"SourcePath" = "8:..\\OpenEEG\\PortForm.cs"
"TargetName" = "8:PortForm.cs"
"Tag" = "8:"
"Folder" = "8:_491A001224CF4D699EA475B2FB5F2890"
"Folder" = "8:_8D5E507046784A479529F5FD35A2FF42"
"Condition" = "8:"
"Transitive" = "11:FALSE"
"Vital" = "11:TRUE"
@@ -759,15 +748,15 @@
"PackageAs" = "3:1"
"Register" = "3:1"
"Exclude" = "11:FALSE"
"IsDependency" = "11:TRUE"
"IsDependency" = "11:FALSE"
"IsolateTo" = "8:"
}
"{1FB2D0AE-D3B9-43D4-B9DD-F88EC61E35DE}:_C18840D6628D4B498C1C7EA768ECFDB9"
"{1FB2D0AE-D3B9-43D4-B9DD-F88EC61E35DE}:_D561255389C842478CB86643369FC415"
{
"SourcePath" = "8:..\\OpenEEG\\PortForm.cs"
"TargetName" = "8:PortForm.cs"
"SourcePath" = "8:..\\OpenEEG\\Plugins\\OpenEEG Ch5.lsd"
"TargetName" = "8:OpenEEG Ch5.lsd"
"Tag" = "8:"
"Folder" = "8:_8D5E507046784A479529F5FD35A2FF42"
"Folder" = "8:_A367054D1B9A4B6A80E0431FF4130A8F"
"Condition" = "8:"
"Transitive" = "11:FALSE"
"Vital" = "11:TRUE"
@@ -782,14 +771,14 @@
"IsDependency" = "11:FALSE"
"IsolateTo" = "8:"
}
"{9F6F8455-1EF1-4B85-886A-4223BCC8E7F7}:_C60045C60F7E6A1ECB89F4F9C68FBC67"
"{9F6F8455-1EF1-4B85-886A-4223BCC8E7F7}:_D6E2201A799DBAE1170442AF66254887"
{
"AssemblyRegister" = "3:1"
"AssemblyIsInGAC" = "11:FALSE"
"AssemblyAsmDisplayName" = "8:lucidcode.LucidScribe.Interface.Illuminated, Version=1.0.4.0, Culture=neutral, processorArchitecture=MSIL"
"ScatterAssemblies"
{
"_C60045C60F7E6A1ECB89F4F9C68FBC67"
"_D6E2201A799DBAE1170442AF66254887"
{
"Name" = "8:lucidcode.LucidScribe.Interface.Illuminated.dll"
"Attributes" = "3:512"
@@ -813,12 +802,12 @@
"IsDependency" = "11:TRUE"
"IsolateTo" = "8:"
}
"{1FB2D0AE-D3B9-43D4-B9DD-F88EC61E35DE}:_D561255389C842478CB86643369FC415"
"{1FB2D0AE-D3B9-43D4-B9DD-F88EC61E35DE}:_DB5EDEF8D7884AC1BD93265A814D5B33"
{
"SourcePath" = "8:..\\OpenEEG\\Plugins\\OpenEEG Ch5.lsd"
"TargetName" = "8:OpenEEG Ch5.lsd"
"SourcePath" = "8:Lucid Scribe.ico"
"TargetName" = "8:Lucid Scribe.ico"
"Tag" = "8:"
"Folder" = "8:_A367054D1B9A4B6A80E0431FF4130A8F"
"Folder" = "8:_491A001224CF4D699EA475B2FB5F2890"
"Condition" = "8:"
"Transitive" = "11:FALSE"
"Vital" = "11:TRUE"
@@ -833,12 +822,12 @@
"IsDependency" = "11:FALSE"
"IsolateTo" = "8:"
}
"{1FB2D0AE-D3B9-43D4-B9DD-F88EC61E35DE}:_DB5EDEF8D7884AC1BD93265A814D5B33"
"{1FB2D0AE-D3B9-43D4-B9DD-F88EC61E35DE}:_F0FC95BBE2F54050AFF3BA55150CF092"
{
"SourcePath" = "8:Lucid Scribe.ico"
"TargetName" = "8:Lucid Scribe.ico"
"SourcePath" = "8:..\\OpenEEG\\PortForm.resx"
"TargetName" = "8:PortForm.resx"
"Tag" = "8:"
"Folder" = "8:_491A001224CF4D699EA475B2FB5F2890"
"Folder" = "8:_8D5E507046784A479529F5FD35A2FF42"
"Condition" = "8:"
"Transitive" = "11:FALSE"
"Vital" = "11:TRUE"
@@ -853,12 +842,23 @@
"IsDependency" = "11:FALSE"
"IsolateTo" = "8:"
}
"{1FB2D0AE-D3B9-43D4-B9DD-F88EC61E35DE}:_F0FC95BBE2F54050AFF3BA55150CF092"
"{9F6F8455-1EF1-4B85-886A-4223BCC8E7F7}:_F776461B6BE291336337D82E87A7FE5E"
{
"SourcePath" = "8:..\\OpenEEG\\PortForm.resx"
"TargetName" = "8:PortForm.resx"
"AssemblyRegister" = "3:1"
"AssemblyIsInGAC" = "11:FALSE"
"AssemblyAsmDisplayName" = "8:lucidcode.LucidScribe.Interface, Version=1.0.2.0, Culture=neutral, processorArchitecture=MSIL"
"ScatterAssemblies"
{
"_F776461B6BE291336337D82E87A7FE5E"
{
"Name" = "8:lucidcode.LucidScribe.Interface.dll"
"Attributes" = "3:512"
}
}
"SourcePath" = "8:lucidcode.LucidScribe.Interface.dll"
"TargetName" = "8:"
"Tag" = "8:"
"Folder" = "8:_8D5E507046784A479529F5FD35A2FF42"
"Folder" = "8:_491A001224CF4D699EA475B2FB5F2890"
"Condition" = "8:"
"Transitive" = "11:FALSE"
"Vital" = "11:TRUE"
@@ -869,8 +869,8 @@
"SharedLegacy" = "11:FALSE"
"PackageAs" = "3:1"
"Register" = "3:1"
"Exclude" = "11:FALSE"
"IsDependency" = "11:FALSE"
"Exclude" = "11:TRUE"
"IsDependency" = "11:TRUE"
"IsolateTo" = "8:"
}
}
@@ -1039,14 +1039,15 @@
{
"Name" = "8:Microsoft Visual Studio"
"ProductName" = "8:Lucid Scribe OpenEEG"
"ProductCode" = "8:{C106BBB4-B076-4B61-A7AB-B3E6C3B4C733}"
"PackageCode" = "8:{B1FFAA63-8ADB-4AE3-BE93-46635964E423}"
"ProductCode" = "8:{B228F3B0-C473-4511-8977-5A9D827071E9}"
"PackageCode" = "8:{A196154F-0A6B-448D-ADE9-C5748E613664}"
"UpgradeCode" = "8:{D21B48DC-E942-48EA-9916-C569C46778E4}"
"AspNetVersion" = "8:4.0.30319.0"
"RestartWWWService" = "11:FALSE"
"RemovePreviousVersions" = "11:TRUE"
"DetectNewerInstalledVersion" = "11:TRUE"
"InstallAllUsers" = "11:TRUE"
"ProductVersion" = "8:1.0.0"
"ProductVersion" = "8:1.0.1"
"Manufacturer" = "8:lucidcode"
"ARPHELPTELEPHONE" = "8:"
"ARPHELPLINK" = "8:http://www.lucid-code.com/Support"
@@ -1,6 +1,6 @@

Microsoft Visual Studio Solution File, Format Version 10.00
# Visual Studio 2008
Microsoft Visual Studio Solution File, Format Version 11.00
# Visual Studio 2010
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "OpenEEG", "OpenEEG\OpenEEG.csproj", "{B7116A52-33CE-44EF-B1EB-9D327B734BBB}"
EndProject
Project("{54435603-DBB4-11D2-8724-00A0C9A8B90C}") = "LucidScribe.OpenEEG", "Installer\Lucid Scribe OpenEEG.vdproj", "{EA1D9E78-7A71-45BF-83F8-10D66E5AC9CA}"
BIN +2 KB (110%) Lucid Scribe - OpenEEG.suo
Binary file not shown.
@@ -25,6 +25,7 @@ public static class Device
static int lastByte = -1;
static int channels = 2;
public static string Algorithm = "REM Detection";
public static int Threshold = 600;
public static int BlinkInterval = 28;

public static EventHandler<EventArgs> OpenEEGChanged;
@@ -44,6 +45,7 @@ public static Boolean Initialize()
channels = formPort.Channels;
Algorithm = formPort.Algorithm;
BlinkInterval = formPort.BlinkInterval / 10;
Threshold = formPort.Threshold;

// Open the COM port
serialPort = new SerialPort(formPort.SelectedPort);
@@ -441,7 +443,7 @@ public override double Value
bool boolDreaming = false;
foreach (Double dblValue in m_arrHistory)
{
if (dblValue > 600)
if (dblValue > Device.Threshold)
{
intAbove += 1;
intBelow = 0;
Oops, something went wrong.

0 comments on commit 8652166

Please sign in to comment.