Problem witch library

Hello guys, im sorry for my english, because im latin

I have a project for mi carreer and i'm using the Arduino E Health Sensor Plataform; but i have a problem with the Ehealth.h library

I want to send 4 values to my windows application (WPF C#; (1 value from the glucometer and 3 values from the pulxio) but i can't send to my window app

I used Switch cases, serial available etc but nothing...

my code...

#include <eHealth.h>

int incomingByte = 0;   // for incoming serial data
int val2=0;
String val3;
void setup() {
eHealth.readGlucometer();
Serial.begin(115200);}

void loop() {
 uint8_t val=eHealth.glucoseDataVector[0].glucose;
 val2=int(val);
 val3=String(val2);
        // send data only when you receive data:
        if (Serial.available() > 0) {
                // read the incoming byte:
                incomingByte = Serial.read();
if(incomingByte=='1'){
                // say what you got:
                Serial.print("I received: ");
                Serial.println(val3);
}
else if(incomingByte=='2'){
   // say what you got:
                Serial.print("I received: ");
                Serial.println(val3);
}

        }
}

and my windows code...

using System;
using System.Linq;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using Microsoft.Kinect;
using Microsoft.Kinect.Toolkit;
using Microsoft.Kinect.Toolkit.Controls;
using System.IO.Ports;
using System.Threading;

private void KinectTileButton_Click_1(object sender, RoutedEventArgs e)
        {
            myport.BaudRate = 9600;

            if (!myport.IsOpen)
            {
                myport.DataReceived += myport_DataReceived;
                myport.PortName = "COM11";
                myport.Parity = Parity.None;
                myport.DataBits = 8;
                myport.StopBits = StopBits.One;
                myport.Open();
                myport.WriteLine("1");

            }
            else
            {
                myport.DataReceived += myport_DataReceived;
                myport.Parity = Parity.None;
                myport.DataBits = 8;
                myport.StopBits = StopBits.One;
                myport.WriteLine("1");
                txt_sys.Text = "";//puse esto para que me manttenga un solo valor

            }

        }
        private void myport_DataReceived(object sender, SerialDataReceivedEventArgs e)
        {
            datetime = DateTime.Now;
            string time = datetime.Hour + ":" + datetime.Minute + ":" + datetime.Second;
            tensiometro = myport.ReadLine();
            Dispatcher.BeginInvoke(new ThreadStart(() => txt_sys.AppendText(time + "\t" + tensiometro)));
        }

        private void KinectTileButton_Click_2(object sender, RoutedEventArgs e)
        {
             myport.BaudRate = 9600;

            if (!myport.IsOpen)
            {
                myport.DataReceived += myport_DataReceived2;
                myport.PortName = "COM11";
                myport.Parity = Parity.None;
                myport.DataBits = 8;
                myport.StopBits = StopBits.One;
                myport.Open();
                myport.WriteLine("2");

            }
            else
            {
                myport.DataReceived += myport_DataReceived2;
                myport.Parity = Parity.None;
                myport.DataBits = 8;
                myport.StopBits = StopBits.One;
                myport.WriteLine("2");
                txt_dias.Text = "";//puse esto para que me manttenga un solo valor

            }

        }
        private void myport_DataReceived2(object sender, SerialDataReceivedEventArgs e)
        {
            datetime = DateTime.Now;
            string time = datetime.Hour + ":" + datetime.Minute + ":" + datetime.Second;
            tensiometro = myport.ReadLine();
            Dispatcher.BeginInvoke(new ThreadStart(() => txt_dias.AppendText(time + "\t" + tensiometro)));
        }

        private void KinectTileButton_Click_3(object sender, RoutedEventArgs e)
        {
            myport.BaudRate = 9600;

            if (!myport.IsOpen)
            {
                myport.DataReceived += myport_DataReceived3;
                myport.PortName = "COM11";
                myport.Parity = Parity.None;
                myport.DataBits = 8;
                myport.StopBits = StopBits.One;
                myport.Open();
                myport.WriteLine("3");

            }
            else
            {
                myport.DataReceived += myport_DataReceived3;
                myport.Parity = Parity.None;
                myport.DataBits = 8;
                myport.StopBits = StopBits.One;
                myport.WriteLine("3");
                txt_pulso.Text = "";//puse esto para que me manttenga un solo valor

            }
        }
        private void myport_DataReceived3(object sender, SerialDataReceivedEventArgs e)
        {
            datetime = DateTime.Now;
            string time = datetime.Hour + ":" + datetime.Minute + ":" + datetime.Second;
            tensiometro = myport.ReadLine();
            Dispatcher.BeginInvoke(new ThreadStart(() => txt_pulso.AppendText(time + "\t" + tensiometro)));
        }

please helpme...

eHealth.readGlucometer();

I'm not familiar with this library, and you didn't bother posting a link, but it really seems like this function call should return a value. Discarding it doesn't feel right.

 uint8_t val=eHealth.glucoseDataVector[0].glucose;
 val2=int(val);
 val3=String(val2);

This is just plain stupid. You can send values of just about any type to the serial port. There is no reason to cast to an int and then wrap that in a String. Variables that have suffixes look like they should all be the same type, NOT three different, completely unrelated, types.

        if (Serial.available() > 0) {
                // read the incoming byte:
                incomingByte = Serial.read();
if(incomingByte=='1'){

Why would you bother reading from the hardware if the PC doesn't want that kind of information?

Where are you SENDING anything to the serial port from the Arduino?

Opening the serial port in the PC application resets the Arduino. Expecting to read a response that it never sends is silly. Expecting to read it immediately after you reset the Arduino is silly.

You MUST open the serial port ONCE! in the PC application.

Having defined a delegate to read the serial data in the PC application, it then looks silly to try to read serial data in the UI thread.

Make sure the baud rate is the same on the arduino & pc or they can't communicate properly.