05-22-2012 05:11 AM
Hi,
In the attached VI,Iam giving temperature input from a string array,then converting it to binary and again converting to a decimal inorder to display in the thermometer.But while running it is giving incorrect values.what to do with this VI??
05-22-2012 05:18 AM
Where the temperature comes from and why is it in an array?
I'm not sure the code below is what you need, but what I'm pretty sure about is that you use too many conversion operation, only one should be enough.
Hope this helps
We have two ears and one mouth so that we can listen twice as much as we speak.
Epictetus
05-22-2012 05:31 AM
Hi Tito,
You have given a simple display.But Iam trying to pack them in a particular frame.That's why Iam trying to convert it to binary and then reconverting it and displaying.My VI works fine when Iam entering numbers below 10(Ah).So please give some suggestions in that way.
05-22-2012 05:53 AM - edited 05-22-2012 05:57 AM
Hi Danil,
again you created a new thread instead of sticking with the original one. I think I recommended more than once to not create double posts. All you do is creating irritated users as others don't know the origins of your VI examples. DON'T CREATE DOUBLE POSTS!!!
You also didn't learn to write good questions: "My VI works fine when Iam entering numbers below 10(Ah)"
What does not work?
Which results are wrong/unexpected?
Which results do you expect?
Can't you give good examples?
Your VI also works for "numbers" greater than 10, for instance "10" (hex) gets converted to 16 (decimal).
The VI is limited to U8 values (00 to FF in hex), which allows 0 to 255 in decimal...
05-22-2012 06:10 AM
Sorry,
I mean,when I enter 50.The thermometer indicates 80.That result is unexpected.Inorder to get 50 as 50,what have to be changed in the VI?
05-22-2012 06:24 AM - edited 05-22-2012 06:25 AM
Hi Danil,
in your example VI you used (and always wanted to use, as is clearly written in the first message of you original thread as linked before) the function "Hexadecimal string to Number". Now you wonder why a string of "50" is converted to a (decimal) number of 80???
Come on, sometimes it really helps to read the context help for all the functions used, even for such a small VI...