Hi,
I am printing 8 ADC values out to Putty and save the log file as "*.csv".
But when I checked the printed values, there are no taps between them even though I added '\t'.
for example, if the values were "1, 2 3, 4, 5, 6, 7, 8", the saved value in CSV file is "12345678".
I am using FreeRTOS and the code is attached below.
I also tried to print all the values together with one variable.
void uart_task(void)
{
char TEMP[32];
TickType_t xLastWakeTime;
uart_config.srcclk = DEMO_UART_CLK_FREQ;
uart_config.base = DEMO_UART;
UART_RTOS_Init(&handle, &t_handle, &uart_config);
for(;;)
{
xLastWakeTime = xTaskGetTickCount();
for (int i = 0; i < NOS; i++ )
{
sprintf(TEMP, "%d",OFFSET[i]-ADC_VALs[i]);
UART_RTOS_Send(&handle, (uint8_t *)TEMP, strlen(TEMP))
}
UART_RTOS_Send(&handle, "\r\n", strlen("\r\n"));
vTaskDelayUntil(&xLastWakeTime, 20);
}
UART_RTOS_Deinit(&handle);
vTaskSuspend(NULL);
}
Thanks,