DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

Convert a channel from Hexidecimal to Decimal

Is there an easy way to convert a channel from HEX to Decimal without having to change every individual measurement. 

I am currently using the following command:

 HEXnumCOVNVERTED = (CLng("&h" & HEXnumTOconvert))

Just curious if there was an easier way around this. 
BBANACKI
0 Kudos
Message 1 of 4
(4,128 Views)
Sure,
and you can use the same command for it. Simply use the DIAdem Calculator, which is capable of doing the calculation for a complete channel - row by row.
The syntax would be something like: ch("dec") = CLng("&h" & ch(1))
In the formula, replace Ch(1) with the channel you would like to convert.
Ingo Schumacher
Systems Engineering Manager CEERNational Instruments Germany
0 Kudos
Message 2 of 4
(4,123 Views)

Hi All,

Note that the Channel Calculator can only execute string parsing in DIAdem 10.1 or higher.  This capability and the new VBScript syntax Ingo suggested will only work in DIAdem 10.1 or higher.

Brad Turpin
DIAdem Product Support Engineer
National Instruments

0 Kudos
Message 3 of 4
(4,107 Views)
Thank you.

That is exactly what I needed.....
BBANACKI
0 Kudos
Message 4 of 4
(4,102 Views)