Commit a47d543d authored by reza's avatar reza

cc

parent c20edde7
......@@ -72,6 +72,7 @@ namespace I8Devices
public class Settings
{
public bool linked_ear { get; set; }
public bool test_signal { get; set; }
public bool leadoff_mode { get; set; }
......@@ -133,6 +134,7 @@ namespace I8Devices
public Settings()
{
test_signal = false;
linked_ear = false;
leadoff_mode = false;
sampling_rate = 2000;
gain = 24;
......@@ -166,6 +168,7 @@ namespace I8Devices
settingMode_flag = true;
if (debug_mode) Console.WriteLine("DLL: Sampling rate= " + mysetting.sampling_rate);
if (debug_mode) Console.WriteLine("DLL: Test Mode= " + mysetting.test_signal);
if (debug_mode) Console.WriteLine("DLL: linked_ear Mode= " + mysetting.linked_ear);
if (debug_mode) Console.WriteLine("DLL: Lead off= " + mysetting.leadoff_mode);
if (debug_mode) Console.WriteLine("DLL: Gain= " + mysetting.gain);
if (debug_mode) Console.Write("DLL: Channels On/Off=");
......@@ -246,6 +249,7 @@ namespace I8Devices
{
Console.WriteLine("DLL: Sampling rate= " + mysetting.sampling_rate);
Console.WriteLine("DLL: Test Mode= " + mysetting.test_signal);
Console.WriteLine("DLL: linked_ear Mode= " + mysetting.linked_ear);
Console.WriteLine("DLL: Lead off= " + mysetting.leadoff_mode);
Console.WriteLine("DLL: Gain= " + mysetting.gain);
Console.WriteLine("DLL: Extera Gain= " + mysetting.exgain);
......@@ -268,7 +272,7 @@ namespace I8Devices
sendBuffer[7] = Convert.ToByte('C'); // SRB1 connected to all Nchs
sendBuffer[8] = Convert.ToByte(mysetting.gain);
sendBuffer[9] = Convert.ToByte(mysetting.exgain);
sendBuffer[10] = 0x00; //reserved
sendBuffer[10] = mysetting.linked_ear ? Convert.ToByte('I') : Convert.ToByte('n'); // test signal enable/disable
sendBuffer[11] = 0x00; //reserved
sendBuffer[12] = 0x00; //reserved
sendBuffer[13] = 0x00; //reserved
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment