How to receive Serial data (string) and convert it's corresponding ASCII value

Hi all,
I'm using a flow controller from AALBORG and using Labview to set the set point and read its corresponding value. Now, i want to send the received data (Mass Flow) to my Arduino MEGA. The mass flow is a string and it needs to be converted to a corresponding integer value. I seem to have hit a wall with respect to this and i greatly appreciate any help.
I have attached the sketch and the Labview code.
Looking forward for any help.
Thanks in advance
karthik

test.ino (306 Bytes)

For short programs please include the code in your Post so we don't have to download it. It makes it much easier to help you.

See How to get the best out of the Forum

Please post an example of a message that is being sent to the Mega.

Have a look at the examples in Serial Input Basics - simple reliable non-blocking ways to receive data. There is also a parse example to illustrate how to extract numbers from the received text.

...R

This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.