08-27-2012 02:23 AM
HI guys....
I want to convert the number from hex string to number converter but when i am connecting integer to default it is not changing the value (like if you write "EC78" you should get "-5000" but i am getting value in range of 60 thousend)...
Any ideas????
Thanks in advance.....
Niladri...
Solved! Go to Solution.
08-27-2012 02:55 AM
Hey Newbee,
If you're expecting -5000 from a EC78 hex. value, then you're expecting the convert the string into a complemented U16 :
- "EC78" = 60536 so the complement U16 would be 65535 - 60536 = 4999
The you just have to take the opposite number 😉
Hoping this was it.
Regards,
Eric
Eric M. - Senior Software Engineer
Certified LabVIEW Architect - Certified LabVIEW Embedded Systems Developer - Certified LabWindows™/CVI Developer
Neosoft Technologies inc.
08-27-2012 04:09 AM
08-27-2012 08:19 AM
Just to expand on what others have said. Use the Hex String to Number. The key is that the representation you use for the "default" terminal will dertermine the representation of the output. So if you wire in an I16 into the default, you will get an I16 out and you should get the results you are looking for.
08-27-2012 11:09 PM
Thanks everybody for their reply but I think I will use Mr.. GerdW method, as it is much simpler