Skip to content

Commit

Permalink
Made the threshold configurable.
Browse files Browse the repository at this point in the history
  • Loading branch information
IAmCoder committed Jan 6, 2015
1 parent b46abb6 commit 8652166
Show file tree
Hide file tree
Showing 8 changed files with 177 additions and 129 deletions.
181 changes: 91 additions & 90 deletions Installer/Lucid Scribe OpenEEG.vdproj
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -13,6 +13,12 @@
"SccProvider" = "8:" "SccProvider" = "8:"
"Hierarchy" "Hierarchy"
{ {
"Entry"
{
"MsmKey" = "8:_259000EB87ED4375510270415E10E11A"
"OwnerKey" = "8:_C55B1C30F9804D249DF1E072DCF8CCAD"
"MsmSig" = "8:_UNDEFINED"
}
"Entry" "Entry"
{ {
"MsmKey" = "8:_25FED00C02F3441AAF0AF20E4C28BBBA" "MsmKey" = "8:_25FED00C02F3441AAF0AF20E4C28BBBA"
Expand Down Expand Up @@ -51,12 +57,6 @@
} }
"Entry" "Entry"
{ {
"MsmKey" = "8:_627789EC78EE4D5C06AA0DB3E04F7B58"
"OwnerKey" = "8:_C55B1C30F9804D249DF1E072DCF8CCAD"
"MsmSig" = "8:_UNDEFINED"
}
"Entry"
{
"MsmKey" = "8:_6DD7414E52FC4370864DB237CB17AEF8" "MsmKey" = "8:_6DD7414E52FC4370864DB237CB17AEF8"
"OwnerKey" = "8:_UNDEFINED" "OwnerKey" = "8:_UNDEFINED"
"MsmSig" = "8:_UNDEFINED" "MsmSig" = "8:_UNDEFINED"
Expand Down Expand Up @@ -123,44 +123,44 @@
} }
"Entry" "Entry"
{ {
"MsmKey" = "8:_B527B4E53279A5D48D5156C8D54C86E2" "MsmKey" = "8:_C18840D6628D4B498C1C7EA768ECFDB9"
"OwnerKey" = "8:_C55B1C30F9804D249DF1E072DCF8CCAD" "OwnerKey" = "8:_UNDEFINED"
"MsmSig" = "8:_UNDEFINED" "MsmSig" = "8:_UNDEFINED"
} }
"Entry" "Entry"
{ {
"MsmKey" = "8:_C18840D6628D4B498C1C7EA768ECFDB9" "MsmKey" = "8:_C55B1C30F9804D249DF1E072DCF8CCAD"
"OwnerKey" = "8:_UNDEFINED" "OwnerKey" = "8:_UNDEFINED"
"MsmSig" = "8:_UNDEFINED" "MsmSig" = "8:_UNDEFINED"
} }
"Entry" "Entry"
{ {
"MsmKey" = "8:_C55B1C30F9804D249DF1E072DCF8CCAD" "MsmKey" = "8:_D561255389C842478CB86643369FC415"
"OwnerKey" = "8:_UNDEFINED" "OwnerKey" = "8:_UNDEFINED"
"MsmSig" = "8:_UNDEFINED" "MsmSig" = "8:_UNDEFINED"
} }
"Entry" "Entry"
{ {
"MsmKey" = "8:_C60045C60F7E6A1ECB89F4F9C68FBC67" "MsmKey" = "8:_D6E2201A799DBAE1170442AF66254887"
"OwnerKey" = "8:_C55B1C30F9804D249DF1E072DCF8CCAD" "OwnerKey" = "8:_C55B1C30F9804D249DF1E072DCF8CCAD"
"MsmSig" = "8:_UNDEFINED" "MsmSig" = "8:_UNDEFINED"
} }
"Entry" "Entry"
{ {
"MsmKey" = "8:_D561255389C842478CB86643369FC415" "MsmKey" = "8:_DB5EDEF8D7884AC1BD93265A814D5B33"
"OwnerKey" = "8:_UNDEFINED" "OwnerKey" = "8:_UNDEFINED"
"MsmSig" = "8:_UNDEFINED" "MsmSig" = "8:_UNDEFINED"
} }
"Entry" "Entry"
{ {
"MsmKey" = "8:_DB5EDEF8D7884AC1BD93265A814D5B33" "MsmKey" = "8:_F0FC95BBE2F54050AFF3BA55150CF092"
"OwnerKey" = "8:_UNDEFINED" "OwnerKey" = "8:_UNDEFINED"
"MsmSig" = "8:_UNDEFINED" "MsmSig" = "8:_UNDEFINED"
} }
"Entry" "Entry"
{ {
"MsmKey" = "8:_F0FC95BBE2F54050AFF3BA55150CF092" "MsmKey" = "8:_F776461B6BE291336337D82E87A7FE5E"
"OwnerKey" = "8:_UNDEFINED" "OwnerKey" = "8:_C55B1C30F9804D249DF1E072DCF8CCAD"
"MsmSig" = "8:_UNDEFINED" "MsmSig" = "8:_UNDEFINED"
} }
"Entry" "Entry"
Expand Down Expand Up @@ -196,19 +196,19 @@
"Entry" "Entry"
{ {
"MsmKey" = "8:_UNDEFINED" "MsmKey" = "8:_UNDEFINED"
"OwnerKey" = "8:_C60045C60F7E6A1ECB89F4F9C68FBC67" "OwnerKey" = "8:_D6E2201A799DBAE1170442AF66254887"
"MsmSig" = "8:_UNDEFINED" "MsmSig" = "8:_UNDEFINED"
} }
"Entry" "Entry"
{ {
"MsmKey" = "8:_UNDEFINED" "MsmKey" = "8:_UNDEFINED"
"OwnerKey" = "8:_627789EC78EE4D5C06AA0DB3E04F7B58" "OwnerKey" = "8:_F776461B6BE291336337D82E87A7FE5E"
"MsmSig" = "8:_UNDEFINED" "MsmSig" = "8:_UNDEFINED"
} }
"Entry" "Entry"
{ {
"MsmKey" = "8:_UNDEFINED" "MsmKey" = "8:_UNDEFINED"
"OwnerKey" = "8:_B527B4E53279A5D48D5156C8D54C86E2" "OwnerKey" = "8:_259000EB87ED4375510270415E10E11A"
"MsmSig" = "8:_UNDEFINED" "MsmSig" = "8:_UNDEFINED"
} }
} }
Expand Down Expand Up @@ -308,14 +308,45 @@
{ {
"Name" = "8:.NET Framework" "Name" = "8:.NET Framework"
"Message" = "8:[VSDNETMSG]" "Message" = "8:[VSDNETMSG]"
"Version" = "8:3.5.30729" "FrameworkVersion" = "8:3.5.30729"
"AllowLaterVersions" = "11:FALSE" "AllowLaterVersions" = "11:FALSE"
"InstallUrl" = "8:http://go.microsoft.com/fwlink/?LinkId=76617" "InstallUrl" = "8:http://go.microsoft.com/fwlink/?LinkId=76617"
} }
} }
} }
"File" "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" "{9F6F8455-1EF1-4B85-886A-4223BCC8E7F7}:_25FED00C02F3441AAF0AF20E4C28BBBA"
{ {
"AssemblyRegister" = "3:1" "AssemblyRegister" = "3:1"
Expand Down Expand Up @@ -447,37 +478,6 @@
"IsDependency" = "11:FALSE" "IsDependency" = "11:FALSE"
"IsolateTo" = "8:" "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" "{1FB2D0AE-D3B9-43D4-B9DD-F88EC61E35DE}:_6DD7414E52FC4370864DB237CB17AEF8"
{ {
"SourcePath" = "8:..\\OpenEEG\\PluginHandler.cs" "SourcePath" = "8:..\\OpenEEG\\PluginHandler.cs"
Expand Down Expand Up @@ -727,27 +727,16 @@
"SharedLegacy" = "11:FALSE" "SharedLegacy" = "11:FALSE"
"PackageAs" = "3:1" "PackageAs" = "3:1"
"Register" = "3:1" "Register" = "3:1"
"Exclude" = "11:FALSE" "Exclude" = "11:TRUE"
"IsDependency" = "11:FALSE" "IsDependency" = "11:FALSE"
"IsolateTo" = "8:" "IsolateTo" = "8:"
} }
"{9F6F8455-1EF1-4B85-886A-4223BCC8E7F7}:_B527B4E53279A5D48D5156C8D54C86E2" "{1FB2D0AE-D3B9-43D4-B9DD-F88EC61E35DE}:_C18840D6628D4B498C1C7EA768ECFDB9"
{ {
"AssemblyRegister" = "3:1" "SourcePath" = "8:..\\OpenEEG\\PortForm.cs"
"AssemblyIsInGAC" = "11:FALSE" "TargetName" = "8:PortForm.cs"
"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:"
"Tag" = "8:" "Tag" = "8:"
"Folder" = "8:_491A001224CF4D699EA475B2FB5F2890" "Folder" = "8:_8D5E507046784A479529F5FD35A2FF42"
"Condition" = "8:" "Condition" = "8:"
"Transitive" = "11:FALSE" "Transitive" = "11:FALSE"
"Vital" = "11:TRUE" "Vital" = "11:TRUE"
Expand All @@ -759,15 +748,15 @@
"PackageAs" = "3:1" "PackageAs" = "3:1"
"Register" = "3:1" "Register" = "3:1"
"Exclude" = "11:FALSE" "Exclude" = "11:FALSE"
"IsDependency" = "11:TRUE" "IsDependency" = "11:FALSE"
"IsolateTo" = "8:" "IsolateTo" = "8:"
} }
"{1FB2D0AE-D3B9-43D4-B9DD-F88EC61E35DE}:_C18840D6628D4B498C1C7EA768ECFDB9" "{1FB2D0AE-D3B9-43D4-B9DD-F88EC61E35DE}:_D561255389C842478CB86643369FC415"
{ {
"SourcePath" = "8:..\\OpenEEG\\PortForm.cs" "SourcePath" = "8:..\\OpenEEG\\Plugins\\OpenEEG Ch5.lsd"
"TargetName" = "8:PortForm.cs" "TargetName" = "8:OpenEEG Ch5.lsd"
"Tag" = "8:" "Tag" = "8:"
"Folder" = "8:_8D5E507046784A479529F5FD35A2FF42" "Folder" = "8:_A367054D1B9A4B6A80E0431FF4130A8F"
"Condition" = "8:" "Condition" = "8:"
"Transitive" = "11:FALSE" "Transitive" = "11:FALSE"
"Vital" = "11:TRUE" "Vital" = "11:TRUE"
Expand All @@ -782,14 +771,14 @@
"IsDependency" = "11:FALSE" "IsDependency" = "11:FALSE"
"IsolateTo" = "8:" "IsolateTo" = "8:"
} }
"{9F6F8455-1EF1-4B85-886A-4223BCC8E7F7}:_C60045C60F7E6A1ECB89F4F9C68FBC67" "{9F6F8455-1EF1-4B85-886A-4223BCC8E7F7}:_D6E2201A799DBAE1170442AF66254887"
{ {
"AssemblyRegister" = "3:1" "AssemblyRegister" = "3:1"
"AssemblyIsInGAC" = "11:FALSE" "AssemblyIsInGAC" = "11:FALSE"
"AssemblyAsmDisplayName" = "8:lucidcode.LucidScribe.Interface.Illuminated, Version=1.0.4.0, Culture=neutral, processorArchitecture=MSIL" "AssemblyAsmDisplayName" = "8:lucidcode.LucidScribe.Interface.Illuminated, Version=1.0.4.0, Culture=neutral, processorArchitecture=MSIL"
"ScatterAssemblies" "ScatterAssemblies"
{ {
"_C60045C60F7E6A1ECB89F4F9C68FBC67" "_D6E2201A799DBAE1170442AF66254887"
{ {
"Name" = "8:lucidcode.LucidScribe.Interface.Illuminated.dll" "Name" = "8:lucidcode.LucidScribe.Interface.Illuminated.dll"
"Attributes" = "3:512" "Attributes" = "3:512"
Expand All @@ -813,12 +802,12 @@
"IsDependency" = "11:TRUE" "IsDependency" = "11:TRUE"
"IsolateTo" = "8:" "IsolateTo" = "8:"
} }
"{1FB2D0AE-D3B9-43D4-B9DD-F88EC61E35DE}:_D561255389C842478CB86643369FC415" "{1FB2D0AE-D3B9-43D4-B9DD-F88EC61E35DE}:_DB5EDEF8D7884AC1BD93265A814D5B33"
{ {
"SourcePath" = "8:..\\OpenEEG\\Plugins\\OpenEEG Ch5.lsd" "SourcePath" = "8:Lucid Scribe.ico"
"TargetName" = "8:OpenEEG Ch5.lsd" "TargetName" = "8:Lucid Scribe.ico"
"Tag" = "8:" "Tag" = "8:"
"Folder" = "8:_A367054D1B9A4B6A80E0431FF4130A8F" "Folder" = "8:_491A001224CF4D699EA475B2FB5F2890"
"Condition" = "8:" "Condition" = "8:"
"Transitive" = "11:FALSE" "Transitive" = "11:FALSE"
"Vital" = "11:TRUE" "Vital" = "11:TRUE"
Expand All @@ -833,12 +822,12 @@
"IsDependency" = "11:FALSE" "IsDependency" = "11:FALSE"
"IsolateTo" = "8:" "IsolateTo" = "8:"
} }
"{1FB2D0AE-D3B9-43D4-B9DD-F88EC61E35DE}:_DB5EDEF8D7884AC1BD93265A814D5B33" "{1FB2D0AE-D3B9-43D4-B9DD-F88EC61E35DE}:_F0FC95BBE2F54050AFF3BA55150CF092"
{ {
"SourcePath" = "8:Lucid Scribe.ico" "SourcePath" = "8:..\\OpenEEG\\PortForm.resx"
"TargetName" = "8:Lucid Scribe.ico" "TargetName" = "8:PortForm.resx"
"Tag" = "8:" "Tag" = "8:"
"Folder" = "8:_491A001224CF4D699EA475B2FB5F2890" "Folder" = "8:_8D5E507046784A479529F5FD35A2FF42"
"Condition" = "8:" "Condition" = "8:"
"Transitive" = "11:FALSE" "Transitive" = "11:FALSE"
"Vital" = "11:TRUE" "Vital" = "11:TRUE"
Expand All @@ -853,12 +842,23 @@
"IsDependency" = "11:FALSE" "IsDependency" = "11:FALSE"
"IsolateTo" = "8:" "IsolateTo" = "8:"
} }
"{1FB2D0AE-D3B9-43D4-B9DD-F88EC61E35DE}:_F0FC95BBE2F54050AFF3BA55150CF092" "{9F6F8455-1EF1-4B85-886A-4223BCC8E7F7}:_F776461B6BE291336337D82E87A7FE5E"
{ {
"SourcePath" = "8:..\\OpenEEG\\PortForm.resx" "AssemblyRegister" = "3:1"
"TargetName" = "8:PortForm.resx" "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:" "Tag" = "8:"
"Folder" = "8:_8D5E507046784A479529F5FD35A2FF42" "Folder" = "8:_491A001224CF4D699EA475B2FB5F2890"
"Condition" = "8:" "Condition" = "8:"
"Transitive" = "11:FALSE" "Transitive" = "11:FALSE"
"Vital" = "11:TRUE" "Vital" = "11:TRUE"
Expand All @@ -869,8 +869,8 @@
"SharedLegacy" = "11:FALSE" "SharedLegacy" = "11:FALSE"
"PackageAs" = "3:1" "PackageAs" = "3:1"
"Register" = "3:1" "Register" = "3:1"
"Exclude" = "11:FALSE" "Exclude" = "11:TRUE"
"IsDependency" = "11:FALSE" "IsDependency" = "11:TRUE"
"IsolateTo" = "8:" "IsolateTo" = "8:"
} }
} }
Expand Down Expand Up @@ -1039,14 +1039,15 @@
{ {
"Name" = "8:Microsoft Visual Studio" "Name" = "8:Microsoft Visual Studio"
"ProductName" = "8:Lucid Scribe OpenEEG" "ProductName" = "8:Lucid Scribe OpenEEG"
"ProductCode" = "8:{C106BBB4-B076-4B61-A7AB-B3E6C3B4C733}" "ProductCode" = "8:{B228F3B0-C473-4511-8977-5A9D827071E9}"
"PackageCode" = "8:{B1FFAA63-8ADB-4AE3-BE93-46635964E423}" "PackageCode" = "8:{A196154F-0A6B-448D-ADE9-C5748E613664}"
"UpgradeCode" = "8:{D21B48DC-E942-48EA-9916-C569C46778E4}" "UpgradeCode" = "8:{D21B48DC-E942-48EA-9916-C569C46778E4}"
"AspNetVersion" = "8:4.0.30319.0"
"RestartWWWService" = "11:FALSE" "RestartWWWService" = "11:FALSE"
"RemovePreviousVersions" = "11:TRUE" "RemovePreviousVersions" = "11:TRUE"
"DetectNewerInstalledVersion" = "11:TRUE" "DetectNewerInstalledVersion" = "11:TRUE"
"InstallAllUsers" = "11:TRUE" "InstallAllUsers" = "11:TRUE"
"ProductVersion" = "8:1.0.0" "ProductVersion" = "8:1.0.1"
"Manufacturer" = "8:lucidcode" "Manufacturer" = "8:lucidcode"
"ARPHELPTELEPHONE" = "8:" "ARPHELPTELEPHONE" = "8:"
"ARPHELPLINK" = "8:http://www.lucid-code.com/Support" "ARPHELPLINK" = "8:http://www.lucid-code.com/Support"
Expand Down
4 changes: 2 additions & 2 deletions Lucid Scribe - OpenEEG.sln
Original file line number Original file line Diff line number Diff line change
@@ -1,6 +1,6 @@


Microsoft Visual Studio Solution File, Format Version 10.00 Microsoft Visual Studio Solution File, Format Version 11.00
# Visual Studio 2008 # Visual Studio 2010
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "OpenEEG", "OpenEEG\OpenEEG.csproj", "{B7116A52-33CE-44EF-B1EB-9D327B734BBB}" Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "OpenEEG", "OpenEEG\OpenEEG.csproj", "{B7116A52-33CE-44EF-B1EB-9D327B734BBB}"
EndProject EndProject
Project("{54435603-DBB4-11D2-8724-00A0C9A8B90C}") = "LucidScribe.OpenEEG", "Installer\Lucid Scribe OpenEEG.vdproj", "{EA1D9E78-7A71-45BF-83F8-10D66E5AC9CA}" Project("{54435603-DBB4-11D2-8724-00A0C9A8B90C}") = "LucidScribe.OpenEEG", "Installer\Lucid Scribe OpenEEG.vdproj", "{EA1D9E78-7A71-45BF-83F8-10D66E5AC9CA}"
Expand Down
Binary file modified Lucid Scribe - OpenEEG.suo
Binary file not shown.
4 changes: 3 additions & 1 deletion OpenEEG/PluginHandler.cs
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ public static class Device
static int lastByte = -1; static int lastByte = -1;
static int channels = 2; static int channels = 2;
public static string Algorithm = "REM Detection"; public static string Algorithm = "REM Detection";
public static int Threshold = 600;
public static int BlinkInterval = 28; public static int BlinkInterval = 28;


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


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

0 comments on commit 8652166

Please sign in to comment.