We are about to switch to a new forum software. Until then we have removed the registration on this forum.
Hi all,
I created this function:
void serialEvent(Serial myserial) {
String result = myserial.readString();
String[] resultArray = split(result, ' ');
saveStrings( "output.txt", resultArray );
print(resultArray);
}
If arduino transmits "1234" I receive that value in console processing, but when I want to write the same string in output.txt file it apeears just "4". Any idea why happens this?
Answers
See Processing forum rules and advices about choosing a category and formatting your code.
I will do this for you this time, but next time, try to apply these advices. Thanks.
There is a duplicated thread at http://forum.processing.org/two/discussion/10656/write-data-from-serial-port-to-a-text-file
Closing this one.