Example #1
0
 public void StartPulseOX()
 {
     pulse=new OnyxII(_port);
     pulse.OpenConnection();
     listenerThread = new Thread(new ThreadStart(DoListen));
     listenerThread.Start();
 }
Example #2
0
 public static void Main()
 {
     OnyxII po = new OnyxII(true);
     //po.OpenConnection();
     for (int i = 0; i < 10; i++) {
       System.Console.WriteLine("{0}", po.GetHrAndSpo2());
     }
 }
Example #3
0
 public void DoListen()
 {
     try{
     do{
         getInput();
         System.Threading.Thread.Sleep(1000);
     }while(true);
     }catch{
         pulse=new OnyxII(-1);
         pulse.OpenConnection();
         listenerThread = new Thread(new ThreadStart(DoListen));
         listenerThread.Start();
     }
 }
Example #4
0
        public static void Main(string[] args)
        {
            OnyxII po = new OnyxII(18);

            //	Console.Write(po.GetHrAndSpo2() + "\n");

            po.OpenConnection();

            while (true)
            {
                Console.Write(po.GetHrAndSpo2() + "\n");
                System.Threading.Thread.Sleep(1000);

            }
        }
Example #5
0
 public static void Main(string[] args)
 {
     OnyxII obj = new OnyxII(-1);
     obj.OpenConnection();
 }
 public PulseOx(int port)
 {
     _port = port;
       name = "PulseOx";
       po = new OnyxII(_port);
 }