zxy1208 发表于 2006-5-17 18:45:36

串口数据格式转换的问题,多谢

从下位机接收到形如"80 03 02 01 A3"(HEX,80为桢头,A3为桢尾)的数据(String),在LV 里要提取数据并重新排列为010203,并转成十进制的数字(66051),怎么办?多谢指教

cpubbs 发表于 2006-5-17 21:03:03

取出来之后,再用concatenate string,因为它输入有几个,反过来连就可以了!

edongxu 发表于 2006-5-18 02:28:39

<img src="attachments/dvbbs/2006-5/20065171828850841.gif" border="0" onload="if(this.width>screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.alt=\'Click here to open new window\nCTRL+Mouse wheel to zoom in/out\';}" onmouseover="if(this.width>screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.style.cursor=\'hand\'; this.alt=\'Click here to open new window\nCTRL+Mouse wheel to zoom in/out\';}" onclick="if(!this.resized) {return true;} else {window.open(\'attachments/dvbbs/2006-5/20065171828850841.gif\');}" onmousewheel="return imgzoom(this);" alt="" />
自己看着办吧

cheng47 发表于 2006-6-12 19:21:06

<P>用数组函数,还有格式转换节点来处理</P>
页: [1]
查看完整版本: 串口数据格式转换的问题,多谢