NI LabVIEW,CVI,数据采集等产品讨论区

取消
显示结果 
搜索替代 
您的意思是: 

如何发送16进制串口命令控制继电器板

已解决!
转到解答

需要发送AA BB 01 01 01这样一串16进制命令控制串口继电器板,用串口调试助手就可以 但visa控件发送的都是字符串格式 请问如何解决 谢谢指教

0 项奖励
1 条消息(共 4 条)
4,176 次查看
解答
已被主题作者 入阵兰陵 接受

VISA也可以方便地发送Byte Array格式的数据,请参考这个程序。

23226i3A838EF4A3BAE356

0 项奖励
2 条消息(共 4 条)
4,173 次查看

好的 谢谢指教 我试试行不

0 项奖励
3 条消息(共 4 条)
4,151 次查看

 


@入阵兰陵 wrote:

需要发送AA BB 01 01 01这样一串16进制命令控制串口继电器板,用串口调试助手就可以 但visa控件发送的都是字符串格式 请问如何解决 谢谢指教


 

Use String Control/ Constant directly.

 

23256i33C6A62DC68AD8AD

 

Add String Control/ Constant to Front Panel/ Block Diagram, Right-Click the control/ constant and select Hex Display.

With that, you may enter the hexadecimal command(s) directly into the string control/ constant without having to do the conversion.

Ian F
Since LabVIEW 5.1... 7.1.1... 2009, 2010, 2014
依恩与LabVIEW
LVVILIB.blogspot.com
4 条消息(共 4 条)
4,146 次查看