I'm measure values through the ADC in my Aurix TC397 board. What would be the best way to send these values to my computer maybe in .csv format?
My guess was the UART interface but I see that it takes only strings as input not floats. So I would individually need to convert every float to a string to send it through UART. is there some other alternative?
If you use UART to send string instead of float, you can 1) use a C function on PC to do text process, or 2) use Excel to convert the string list into float data type.
You can also store the data into Flash and read flash memory using Memtools, and convert the Hex data into Float using C language.
1.32 5.22 6.77 2.33
Thank you for the reply. The ADC reads the voltage values through a channel, these values have to be transmitted to my PC for analysis. I need a huge number of such voltage values, so as they are being read through the ADC, I wish to move them to my PC without storing too many values on the board.
One possibly is reading the values. Convert them to string and sent them through UART
If you use string though UART communication port, then you can store them into .txt file, and write a C program to convert them into float array.(You can also use Python to do so)