Luis,
Basically I did find source of the problem but I do not know why? I have installed ComCallback function for serial port and this fanction gets called every 100 bytes received in the Rx buffer.
Then I processed buffer and print data on screen by this function:
SetCtrlVal (panelHandle, PANEL_READ_TEXT_BOX, tbox_read_data);
If I void above function no problem. Controls gets in order each time.???
Here is my ComCallback where problem is:
void CVICALLBACK ComCallback(int portNo, int eventMask,void *datax)
{
int In_BuffLength;
;
buffer[0]='\0';
SetComTime (comport, 0);
In_BuffLength = GetInQLen (comport);
ComRd (comport, buffer,In_BuffLength);
/* Copy subset of read_data into tbox string for display.
ComRdTerm does not automatically put null byte after
number of bytes read into read_data string. */
CopyString (tbox_read_data, 0, buffer, 0,In_BuffLength);
SetCtrlVal (panelHandle, PANEL_READ_TEXT_BOX, tbox_read_data);
if(file_specified ==TRUE) //Save string to file if open
{
ret = fputs (tbox_read_data, fpin);
}
}