LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Converting to binary and entering data on a table

Solved!
Go to solution

So I'm trying to do 2 things:

1. Generate a random number, convert it to hexadecimal, and display it on a table.

2. Convert the hexadecimal to binary and display that on a table as well

 

Just started using labview so my block diagram is probably completely wrong

 

 

0 Kudos
Message 1 of 5
(2,953 Views)

Cant get data from numeric indicators onto table b/c indicators don't have an output for the wire..:(

0 Kudos
Message 2 of 5
(2,925 Views)
Solution
Accepted by topic author ABC123WEEEEE

Look at the Format Into String function.  You can define all kinds of formatting rules.  %x will take a number and format it into a Hex string.  %b will take a number and format it into a Binary string.  You will want to use the build array function to write to your table.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
Message 3 of 5
(2,912 Views)

Can you explain what %x and %b means?

Thanks!

0 Kudos
Message 4 of 5
(2,895 Views)

Use them in the format input.  Here is a link to the LabVIEW help about the Format Specifier Syntax.  I actually have this tacked up in my cube since I reference it constantly.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
Message 5 of 5
(2,879 Views)