03-07-2024 10:33 AM
Hey there I have a doubt if labview have a function for 2 numeric numbers with lenght 0-65535 each, One number is high so have 65536 value but between 32768 and 65535 the value is negative , and other just sum after , so I would like to know if have a simple way to get exact decimal number I had made part of VI to do this , I just want a simplyfied mode.
Solved! Go to Solution.
03-07-2024 10:35 AM
Hi Chris,
@Chris9823Alb wrote:
Hey there I have a doubt if labview have a function for 2 numeric numbers with lenght 0-65535 each, One number is high so have 65536 value but between 32768 and 65535 the value is negative , and other just sum after , so I would like to know if have a simple way to get exact decimal number I had made part of VI to do this , I just want a simplyfied mode.
All your explanations are quite unclear: why don't you provide an example with real numbers?
I guess oyu want to work with I16 entities!?
03-07-2024 11:06 AM
Example
High number = 0 Low number= 1 Result number = 1
High number = 65535 Low number= 65535 Result number =-1
High number = 1 Low number= 0 Result number = 65536
03-07-2024 11:19 AM
Hi Chris,
@Chris9823Alb wrote:
High number = 0 Low number= 1 Result number = 1
High number = 65535 Low number= 65535 Result number =-1
High number = 1 Low number= 0 Result number = 65536
So you have two U16 values and you want to join them to an I32 entity?
Use JoinNumbers and ToI32 and you're done!
03-07-2024 11:26 AM
I had used join numbers before and give me just positive integer numbers but where is tool 32 to convert that
03-07-2024 11:31 AM
03-07-2024 02:57 PM - edited 03-08-2024 01:33 PM
@Chris9823Alb wrote:
Hey there I have a doubt if labview have a function for 2 numeric numbers with lenght 0-65535 each, One number is high so have 65536 value but between 32768 and 65535 the value is negative , and other just sum after , so I would like to know if have a simple way to get exact decimal number I had made part of VI to do this , I just want a simplyfied mode.
So you seem to have an array of two U16 number (we cannot tell from the picture how big the array is or what the datatype is!)
You are operating in integers (input and result!), so there should not be any orange anywhere, right?
If the array has exactly two U16 elements and the first element is LO (guessing from your convoluted code), Here's all you probably need (two possibilities, but there are many more, of course).
03-08-2024 07:45 AM
Thank you for suport! it worked both