byte[]data1=newbyte[2];objectdata=axMSComm1.Input;data1=(byte[])data;;//char[]data1=data.ToCharArray();//字符串转字符数组shortdata2=(short)data1[0];//字符转数值shortdata3=(short)data1[1];//字符转数值doubledd