Send strings via computer to the Arduino

Hello people,
I need a little help because I don´t know how to do it.
I want to send via computer strings to the Arduino.

For example I send to the Arduino string: "Analyse".....so if inputString = "Analyse" ........the Arduino prepare itself to remember next number that will come for example "1000" and save it to the value for example "a".

I am using this code that is stated on this web site: http://arduino.cc/en/Tutorial/SerialEvent, but I don´t know how to save the next string to value "a".

Thank you for your help.

The demos here and here should help.

I suggest you don't use serialEvent() and just use if (Serial.available() ...) as needed.

There is no value to the Arduino to send the word "Analayze" if the letter "A" conveys the same information. Less data will need to be sent and it will be easier to interpret it.

...R

I got it :slight_smile:
Everything works.
Thank you very much. Bye