Hello,
i am using SCI to transfer data. I have issue in sending data of Float type. i have attached the scree shot of this issue in the word file.
8360.New Microsoft Word Document.docx
please help me regarding this issue.
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Hello,
i am using SCI to transfer data. I have issue in sending data of Float type. i have attached the scree shot of this issue in the word file.
8360.New Microsoft Word Document.docx
please help me regarding this issue.
Hi,
The issue that you've marked corresponds to sprintf function. Have you used the SCI_sendCharArray function to send the data? That is expected to work seamlessly for sending float data.
Can you place a breakpoint after execution of sprintf function and see the values stored in buffer2 to get a better clarity?
Thanks,
Aditya
The issue not about how to send data through serial. we wish to solve how to convert float data to string. please help us regarding that.
You can send 4 bytes of data to effectively send the float number. Otherwise, you can also convert the float number to uint / int and send the data using the serial comms.