Since the implementation of floats on a PSoC may differ from a float on your PC I would suggest to write them out as a string using sprintf() and read them back in with sscanf(). This will insure a common coding over the interface.
Convert floats to character string and send as a NUL terminated string,
sprintf() (convert into a char buffer) will do that nicely with formatting.
Then use atof() (or its equivalent) on PC side to convert string back to
Attached sprintf (printf) formatting string reference.
printf9.pdf 81.5 K
Thanks for the reply!
Anybody can give an example how to transfer string data?
and what about the first question? Why do not always transmit data from a PC to PSoC or transferred after a long delay?