有关LABVIEW串口通讯数据格式
时间:10-02
整理:3721RD
点击:
最近刚刚接触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的数据,应该在串口输入什么样的数据格式呢?请各位做过串口通讯的同学帮助一下谢谢!
新手上路,看不懂啊?