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

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

How to use the ascii code in my VI

I have a hardware which could't communicate with ascii code , so as I recive the data from the hardware , the data is just a hexadecimal number , but LabVIEW will automatically transform it to a character , now I want to use the original data , how can I solve the problem?
 
Thanks a lot!
 
0 项奖励
1 条消息(共 2 条)
3,509 次查看
Hi, I supposed that you are using VISA Read/ Write functions for communication between your PC and HW.
VISA Read/ Write takes in command/ outputing result in string format. In default condition, String control/ indicator is showing ASCII data. In order to obtain it correspoding hexadecimal values, you may...
 
a. Simply right-click the String control/ indicator, and select "Hex Display" property.
b. Use "String to Byte Array" to convert the received String to Numerical data.
Ian F
Since LabVIEW 5.1... 7.1.1... 2009, 2010, 2014
依恩与LabVIEW
LVVILIB.blogspot.com
2 条消息(共 2 条)
3,491 次查看