LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Why LW/CVI 7.0 is not able to open an UIR file created with LW/CVI 5.5.1 ?

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);
   
  }
 
}
  
 
0 Kudos
Message 11 of 12
(785 Views)
And what exactly is the symptom when you do call SetCtrlVal? Does this function return an error? You mentioned something about controls being in order? I'm not sure what that means...

Is it possible for you to attach the program so that I can try to reproduce the problem?

Luis
0 Kudos
Message 12 of 12
(769 Views)