Benchtop Measurement and Test
Distributed Measurement and Control
High-Performance Test
Systems Engineering Software
Perspectives showcases how NI sees what’s next in the world of test and technology.
You can request repair, RMA, schedule calibration, or get technical support. A valid service agreement may be required.
Provides support for NI data acquisition and signal conditioning devices.
Provides support for Ethernet, GPIB, serial, USB, and other types of instruments.
Provides support for NI GPIB controllers and NI embedded controllers with GPIB ports.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
05-03-2018 07:27 AM - 编辑日期 05-03-2018 07:32 AM
我从串口读出了一串字符,根据协议转换成数据不正确,请串口通讯的高手看看问题出在哪,谢谢!
以下为协议,也可参考附件。
串口数据包格式 数据包由1 B包类型ID字节、N(N≤8)B数据+1 B校验和构成。包的最大长度为10 B(包含包类型ID和校验和),数据的最大长度为8 B。数据由数据头和N-1个数据构成。数据包格式。 包类型ID的最高位Bit7为0,数据和校验和的最高位Bit7为1。所有包的数据头依次包含数据字节的最高位,如:数据头的Bit0为数据1的Bit7,数据头的Bit1为数据2的Bit7。
VI
修改时间 05-07-2018 10:48 AM
当 ID 是 5, 包长度为9, 不是 10 !
修改时间 05-10-2018 07:43 PM
保实际是10个字节,可能不足时补了一个0x80.
What do you need our team of experts to assist you with?
Thanks!
We'll be in touch soon!