Hi Mehar,
I have pointed out two problems that maybe can explain the difficulties your are founding in communicationg with your equipment.
First of all, "6th byte" -as you say- is actually Rdbuf
[5]. Remember that a string is always zero-based (first byte is string[0]).
Second, to transfer a byte in a double you cannot use strtod: this function expects a zero-terminated string representation of a number (i.e. "123.45"): if in Rdbuf there is a value that cannot be interpreted as either a number, a sign or a period the function fails returning zero. To obtain what you want you can simply operate this way:
testMeasurement = (double)Rdbuf[5];
Last item, at least the first transmission to the device should still work if modified this way (simpler):
char txbuf[30];
strcpy (txbuf, "ATEST EQUIPMENT\r");
ComWrt (COMport, txbuf, strlen (txbuf));
I hope I have clarified your doubts
Roberto