Lose bytes in serial communication when sent string is inserted under hexadecimal display



主要软件: LabVIEW Development Systems>>LabVIEW Full Development System
主要软件版本: 2012
主要软件修正版本: N/A
次要软件: N/A

问题:

When using [Basic Serial Write and Read.vi] from NI Example Finder to send string, which is Hex displayed (0x 0001 100B 0C0A AB30). And the receiver can only display incomplete string in Hex (0x 0001 100B 0C0A), while the output of Bytes at Ports are 8 bytes which is right.



解答:
Because the termination char is enabled by default at the configuration step, and termination char includes 0xA. So the string presented in Problem section will be recognized as containing termination, and the last two bytes are not displayed.
Just disable the termination char or change the value will help resolve this problem.



相关链接:

附件:





报告日期: 03/31/2013
最近更新: 04/01/2013
文档编号: 67UK4L4Y