开发者

Serial port get memory command

开发者 https://www.devze.com 2022-12-08 08:40 出处:网络
Could 开发者_运维问答anyone tell me how to format the serialport.write method in c# for the following get memory command of a digital multimeter?

Could 开发者_运维问答anyone tell me how to format the serialport.write method in c# for the following get memory command of a digital multimeter?

DLE STX Command arg1 arg2 arg3 DLE ETX

10h 02h 4Eh 00h 00h 00h 10h 03h

Many thanks


Try creating a byte array, and writing this to the port.

byte[] data = new byte[] {0x10, 0x02, 0x4E, 0x0, 0x0, 0x0, 0x10, 0x03};

port.Write(data, 0, data.Length);
0

精彩评论

暂无评论...
验证码 换一张
取 消