Hi, i make VISA labview program to send data MCU to PC.
The MCU serial send code is below.
baud rate = 115200.
{
uint8_t upper= 0xBE;
uint8_t lower= 0xD7;
uint8_t buff=0;
uint32_t val[4];
val[0]=value_adc[0];
val[1]=value_adc[1];
val[2]=value_adc[2];
val[3]=value_adc[3];
HAL_UART_Transmit(&huart1, &upper, 1, HAL_MAX_DELAY);
HAL_UART_Transmit(&huart1, &lower, 1, HAL_MAX_DELAY);
buff=val[0]>>8;
HAL_UART_Transmit(&huart1, &buff, 1, HAL_MAX_DELAY);
buff=val[0];
HAL_UART_Transmit(&huart1, &buff, 1, HAL_MAX_DELAY);
buff=val[1]>>8;
HAL_UART_Transmit(&huart1, &buff, 1, HAL_MAX_DELAY);
buff=val[1];
HAL_UART_Transmit(&huart1, &buff, 1, HAL_MAX_DELAY);
buff=val[2]>>8;
HAL_UART_Transmit(&huart1, &buff, 1, HAL_MAX_DELAY);
buff=val[2];
HAL_UART_Transmit(&huart1, &buff, 1, HAL_MAX_DELAY);
buff=val[3]>>8;
HAL_UART_Transmit(&huart1, &buff, 1, HAL_MAX_DELAY);
buff=val[3];
HAL_UART_Transmit(&huart1, &buff, 1, HAL_MAX_DELAY);
}
This routine is send every 1ms.
My Labview program is attached.
I running the program on my desktop PC, there is no problem.
But running on laptop PC, the data is delayed.
Data is accumulated somewhere continuously.
When i stop send data at MCU, the labview output continuously.( I thinks it is accumulated Data)
The Labview program is same version.
Why this error is occur?
I check com port, but it is not problem. And another serial com program is well operation. ex) arduino serial monitor.