LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Can CVI convert from integer to BCD?

What is the best way to convert from an integer to a BCD value through CVI 6.0?
0 Kudos
Message 1 of 2
(3,180 Views)
CVI doesn't provide any functions for Binary Code Decimal (BCD) formatted numbers since it isn't part of the ANSI-C spec and isn't related to any of our libraries. You would have to do the conversions yourself, or find a C library somewhere that could do the conversion for you.

Here is a site that had an example of a BCD to double conversion function: http://dos.snippets.org/snip_lister.php?fname=BCDD.C

Best Regards,

Chris Matthews
National Instruments
0 Kudos
Message 2 of 2
(3,180 Views)