07-24-2012 03:52 PM
Hi everybody,
I want to join this two numbers and convert them from hex to dec. I have tried using joint and conversion but I still couldn't work it. In the following screen shot I took it suppose to be 3E8 in hex which equals to 1000 in dec. I need suggestion from you how to approach this.
Thanks
Solved! Go to Solution.
07-24-2012 03:55 PM
Post what you did that isn't work for you.
Taking those two array elements and using Join Numbers will give you an integer use value is 1000. Assuming those elements are U8 integers.
07-24-2012 03:57 PM
This is my program.
07-24-2012 04:02 PM
Your code makes no sense. What's the purpose of the while loops?
There are missing subVIs.
I cannot locate your failed attempts to join two numbers. Do you want to join the two specific elements you mentioned?
07-24-2012 04:07 PM - edited 07-24-2012 04:09 PM
Try this:

You don't need to "convert" from hex to dec. This is a cosmetic property of the indicator, and has nothing to do with the underlying data.
07-24-2012 04:08 PM
Your code makes no sense. What's the purpose of the while loops?
There are missing subVIs.
I cannot locate your failed attempts to join two numbers. Do you want to join the two specific elements you mentioned?
I guess I can get rid of the while loop, but the whole purpose of this program is to read a value from the device I'm using which Laurels tachometer. It is reading the tachometer as long as I use the right address. Do you want to join the two specific elements you mentioned? Yes I want to join both those two specific elements and convert them to decimal.
07-24-2012 04:10 PM
Thank you very much
01-24-2013 11:17 PM - edited 01-24-2013 11:26 PM
As I was reading all the answers about converting Hex to Dec,I found out that many of you are making it so complicated.To make it easier for a learner or beginner,this is what it takes:
You can do the same process reverse for dec to hex.But you must know that what we did for "numeric control" on (Hex to Dec) will be done to "numeric indicator" on (Dec to Hex).This same process can apply to octal and binary without the use of complicated array,string while loop and so on...
I'm a beginner in Labview and I understand that you need to explain more to understand better.
01-25-2013 07:04 AM
@SOBGA wrote:
As I was reading all the answers about converting Hex to Dec,I found out that many of you are making it so complicated.To make it easier for a learner or beginner,this is what it takes:
- Open a blank VI
- Click on numeric control
- Right click on the same numeric control
- Scroll down to "Representation"
- Click on "U8"
- Go to numeric indicator and repeat step 4 and 5
- Then right click again on numeric control
- Scroll down to "Properties" and click
- Click on "Data entry",if necessary,change the minimum and maximum
- Pass to "Display format"
- Click on "Hexadecimal" then you are done.The rest is to go on the block diagram to wire the numeric control to the numeric indicator and it works.
You can do the same process reverse for dec to hex.But you must know that what we did for "numeric control" on (Hex to Dec) will be done to "numeric indicator" on (Dec to Hex).This same process can apply to octal and binary without the use of complicated array,string while loop and so on...
I'm a beginner in Labview and I understand that you need to explain more to understand better.
If you really read all of the comments, you would see that Altenbach already stated this (saying it is just a cosmetic property for the indicator).