10-24-2019 09:36 AM
Hello,
I am trying to shift a decimal number by 16 bits to left, using Logical Shift function in LabVIEW. To cross-check the result, I used an online converter that is showing the correct result. But, the same conversion is not happening with the logical left shift function. Can't figure it out, whats happening. Any idea?
Attached is the screenshot.
Solved! Go to Solution.
10-24-2019 09:56 AM
Change your Value1 to U32 representation.
10-24-2019 10:09 AM
Thanks@aputman!. It worked.
10-24-2019 10:52 AM - edited 10-24-2019 10:52 AM
You are using an unsigned 16 bit integer, change that to an unsigned 32 bit integer and you will get the correct result.
mcduff
EDIT: Beaten to an easy solution. 🙂
10-24-2019 11:45 AM
Thanks @mcduff!.