ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

convert a Hex string, like "3A4B" to a string of BIN_MSB,BIN-LSB,ASC_MSB,ASC_LSB,BCD_MSB,BCD_LSB,SGN_MSB,SGN_LSB respectively

I'm looking for an easy way to convert a Hex string, like "3A4B" to a string of BIN_MSB,BIN-LSB,ASC_MSB,ASC_LSB,BCD_MSB,BCD_LSB,SGN_MSB,SGN_LSB respectively. Is there any available function I can use in CVI rather than writing some codes myself.

BIN_MSB       //A binary number stored with the most significant byte first          
BIN-LSB       //A binary number stored with the least significant
ASC_MSB,     //  An ASCII number stored with the most significant byte first     
ASC_LSB,     //  An ASCII number stored with the least significant byte first
BCD_MSB,     //  A BCD number stored with the most significant byte first (8421)         
BCD_LSB,     //  A BCD number stored with the least significant byte first (8421)
SGN_MSB,     //  A signed hex number stored with most significant byte first
SGN_LSB     //  A signed hex number stored with the most significant byte first

Thanks!
Jacky
 
 
0 Kudos
Message 1 of 1
(3,427 Views)