thanks for your assistance.
*
2 = STX
3 = ETX
Com port settings same in both cases 9600,7,Even, 1
MatLAB command:fwrite(obj, [2 48 48 53 52 49 32 32 32 3 49 51 13 10])
works fine because the instrument switches from normal mode to PC REMOTE MODE and you see it on the LCD and can querry the measurement and get it back.
LabWINDOWS commandchar PC_MODE_CMD[14]={2,48,48,53,52,49,32,32,32,3,49,51,13,10};
OpenComConfig (1, "", 9600, 2, 7, 1, 512, 512);
bytes = ComWrt (1, PC_MODE_CMD, 14);
doesn't work because the instrument doesn't even switch into the PC REMOTE MODE!!!!!!!
So i am thinking the function ComWrt is doing something like inserting a Null at the end of the string??? If I had a serial data analyzer that would tell me for sure...
Suggestions??
Thank you.