How can i ommit the unwanted strings from the buffer..?
Hi i have send the string to a device for example "RG_status" and "RG_RPM" and so and so..
i get readout the response from that device. My problem is..,
I want only the Response from the device, but the buffer contains both the string and response...
How can i extract only the response ..
I am using the ComRd() and ComWrt()
Forexample,
char *ch[2];
int i=1;
ch[1]="RG_Stauts";
ch[2]="RG_RPM"; //Rotation per min of the device
In timer,
ComWrt(comport,ch[i],StringLength(ch[i]));
bytes_read=ComRd(comport,read_data,read_cnt);
CopyString(display,o,read_data,0,bytes_read);
SetCtrlVal(mypanel,PANEL_NUMERIC_1,display);
//-----missing here//
SetCtrlVal(mypanel,PANEL_NUMERIC_2,display);
i++;
I get,
*RS_Status
1
*RS_RPM
1000
In the read_data buffer,
Now i would like to display only the corresponding values of the strings in the panel...
What i am missing..???
Please help me.
Thanx in advance,
venki