有关LABVIEW串口通讯数据格式

2019-07-18 11:03发布

本帖最后由 腹了个黑 于 2012-5-21 16:11 编辑

最近刚刚接触labview,需要与一个逆变器的控制器进行数据采集,数据格式如下
Header
(0x55 0xAA ):the header of each packet .
Source Address designate the sender address .
(it is XX00 for AP, or it is 00XX for Inverter/SolarEnvi Monitor)
Destination Address designate the receiver address.
(it is XX00 for AP, or it is 00XX for Inverter/SolarEnvi Monitor)
Control Code there are 4 kinds:
1. Register(0x00)
2. Read(0x01)
3. Write(0x02)
4. Execute(0x03)
Function Code Detail function description
Data length designate the data length.
(If there is not the data column, the data length is 0)
Data0,1,2.. Data column
Checksum Header + Source Address + Destination Address + Control Code +Function Code +
Data length +Data0 + .. +Data (N-1)
还有一部分如图,

问题:假如我想获得 VPV1的数据,应该在串口输入什么样的数据格式呢?请各位做过串口通讯的同学帮助一下谢谢!






360截图20120521155349093.jpg
2.jpg
友情提示: 此问题已得到解决,问题已经关闭,关闭后问题禁止继续编辑,回答。