You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: ShimmerEXGConsoleAppExample/ShimmerConsoleAppExample/Program.cs
+10-23Lines changed: 10 additions & 23 deletions
Original file line number
Diff line number
Diff line change
@@ -3,6 +3,7 @@
3
3
usingSystem.Collections.Generic;
4
4
usingSystem.Linq;
5
5
usingSystem.Text;
6
+
usingSystem.Threading;
6
7
usingSystem.Threading.Tasks;
7
8
8
9
namespaceShimmerConsoleAppExample
@@ -37,7 +38,7 @@ public void start()
37
38
byte[]defaultECGReg1=ShimmerBluetooth.SHIMMER3_DEFAULT_TEST_REG1;//also see ShimmerBluetooth.SHIMMER3_DEFAULT_ECG_REG1 && ShimmerBluetooth.SHIMMER3_DEFAULT_EMG_REG1
38
39
byte[]defaultECGReg2=ShimmerBluetooth.SHIMMER3_DEFAULT_TEST_REG2;//also see ShimmerBluetooth.SHIMMER3_DEFAULT_ECG_REG2 && ShimmerBluetooth.SHIMMER3_DEFAULT_EMG_REG2
39
40
//The constructor below allows the user to specify the shimmer configurations which is set upon connection to the device
enabledSensors=((int)ShimmerBluetooth.SensorBitmapShimmer3.SENSOR_EXG1_16BIT|(int)ShimmerBluetooth.SensorBitmapShimmer3.SENSOR_EXG2_16BIT);// this is to enable the two EXG Chips on the Shimmer3 at 16 bit resolution
57
+
System.Console.WriteLine("\n");
58
+
77
59
shimmer.WriteSensors(enabledSensors);
78
60
61
+
System.Console.WriteLine("IN ABOUT 5 SECONDS STREAMING WILL START AFTER THE BEEP");
62
+
Thread.Sleep(5000);
63
+
System.Console.Beep();
64
+
79
65
shimmer.StartStreaming();
80
66
}
81
67
}
@@ -111,7 +97,8 @@ public void HandleEvent(object sender, EventArgs args)
0 commit comments