String sat = String(Serial.readString());
if (sat.substring(3,9) == "IrmsLimit") //If there is "IrmsLimit" in substring sat
IrmsLimit = sat.substring(0,12); // "0.0IrmsLimit" is the substring
IrmsLimit.remove(3,9); // Delete "IrmsLimit"
Serial.print(IrmsLimit); //Write string IrmsLimit (0.0)to serialport
Serial.println("is the Irms Limit");
Although i changed it to following, the result doesnot change, it doesnot send the data.
Changing how you deal with data you have already read does NOTHING with how anything sends any data anywhere.
What is sending the data that you are trying to receive, using readString()?
I have tried to send the data as "0.0IrmsLimit" from VS and wrote this code as feedback to VS again from Arduino.. But I couldnot see the parsed result in VS
Visual Studio does not send and/or receive serial data. It is an application that is used to build applications that might send and/or receive serial data.
If you use VS to build an application using C# as the programming language, it is not all that difficult to have that application read serial data. Not trivial, but not all that hard. If the end result is that you don't care what the Arduino says about the parsing process, because it just works, debug the parsing process using the Serial Monitor application to send/receive data.
PaulS, you made me laugh. Thank you very much for you philosophic answer:)
Sending "0.0IrmsLimit" recieving "0.0is the IrmsLimit"..
By the way, my serial monitor doesnot work. So that i use two more softwares for displaying serialport or i use debugging at VS. As i understand from your answer this code seems like working. Hmm. While i m getting no errors but can not see at serial monitor, it seems interesting.
Robin2’s code has proven to be very reliable so I am sure you will succeed. The next step for you would be to transmit a string from your PC app to your Arduino in the format that he suggests, something like . Ideally your VS program will contain a text window of some kind so that you can echo the string back to the PC as proof of operation. I am pretty sure you could also get a pointer or two on the Visual Studio side of things.
C strings are very flexible and there is a library of methods that allow you to manipulate them in many ways, here is a link to a tutorial.