07-09-2012 10:34 AM
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
Solved! Go to Solution.
07-09-2012 01:04 PM
Cant get data from numeric indicators onto table b/c indicators don't have an output for the wire..:(
07-09-2012 01:25 PM
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.
07-09-2012 03:02 PM
Can you explain what %x and %b means?
Thanks!
07-09-2012 03:22 PM
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.