Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

How to convert U16 to 12 bit unsigned number (U16>>4)

How can I convert an unsigned 16bit number to an unsigned 12bit number. Do I have to convert my U16 number to binary, shift the bits to the right and then reconvert binary in decimal? Or there is a much simple solution?  If it's that, how can I do that?

Thank you

Francois
0 Kudos
Message 1 of 3
(3,207 Views)
Easy solution:

AllFunctions/Advanced/DataManipulation/logical shift, x=U16 and  y=-4...




0 Kudos
Message 2 of 3
(3,204 Views)
Or divide the array by 16 that is the same, you should only use the quotient & remainder function in the numeric palette to keep the integer world
connect the array to the top left and the 16 to the bottom left input. the array comes out of the bottom right output
greetings from the Netherlands
0 Kudos
Message 3 of 3
(3,199 Views)