各位前輩好
我有一個設備回傳是以HEX資料回傳,但我需要轉換成10進制數值
因此我寫了一個VI來做轉換
Hex[]是以Hex Display
我先將其轉為8bit的二進制,再串起來轉回10進制數值
但因為這個Array資料量非常大,有上萬筆,每次loop call此VI執行的時候,消耗非常多時間
不知道有沒有更簡單的轉換方式
ex:
FFFF B48A = -19318
0000 32CD = 13005
您好,
這邊提供相關Hex轉10進制方法給您參考:
Convert String Hex to Integer Decimal in LabVIEW
https://forums.ni.com/t5/Example-Programs/Convert-String-Hex-to-Integer-Decimal-in-LabVIEW/ta-p/3521...
Hex to decimal
https://forums.ni.com/t5/LabVIEW/Hex-to-decimal/td-p/403480
How to convert hexadecimal array to number
https://forums.ni.com/t5/LabVIEW/How-to-convert-hexadecimal-array-to-number/td-p/3561347
Convert Hexadecimal to Decimal
https://forums.ni.com/t5/Example-Program-Drafts/Convert-Hexadecimal-to-Decimal/ta-p/3505873
convert from hexadecimal to decimal
https://forums.ni.com/t5/LabVIEW/convert-from-hexadecimal-to-decimal/td-p/1966919