LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to convert decimal to binary

Sorry, I just simply don't get your lingo. What is "compiled information"??? Where is it coming from?
 
Here's a quick example that would increment the binary formatted string whenever a certain button is pressed. See if this helps.
(Of course you could use U64 controls/indicators directly, with the display format set to binary.)
 
 

Message Edited by altenbach on 03-22-2007 07:08 PM

Message 11 of 32
(7,010 Views)
Do you have an email or a phone number that I can talk you though my program while you look at it? I can not explain it through message like I can through voice. That way I can walk you though the whole program.  Do you have aol instant messenger or yahoo instant messenger?


When you show binary representation for 12345678901, your output will be 1011011111110111000001110000110101. That is 34 characters. I need to fulfill 36 characters, so my output needs to be 001011011111110111000001110000110101 for that input string. I have an input string that has information to be filtered and translated. From there this  information  will be added to the information which I already have and output to a string.


On your quick example...the binary output was different. It was 001011011111110111000001110000111000 when it should have been 001011011111110111000001110000110101. The bold parts of the two are the differences of the strings.
0 Kudos
Message 12 of 32
(7,003 Views)
Hello again,  I was wondering if my last post was more clear.
0 Kudos
Message 13 of 32
(6,999 Views)


playmaker wrote:

On your quick example...the binary output was different. It was 001011011111110111000001110000111000 when it should have been 001011011111110111000001110000110101. The bold parts of the two are the differences of the strings.



Ya, windows calc gives the result U ve stated. I dont ve LV 8.2 to see Altenbach's VI. But as he has stated in the earlier reply, U can pad Zeroes to the left side of the Numeric indicator, after putting it to Bin format. That way it ll show 36 characters.

Reply if understood Ur doubt clearly. Smiley Wink

- Partha ( CLD until Oct 2024 🙂 )
0 Kudos
Message 14 of 32
(6,995 Views)
Altenbach's VI works just fine for me.
 
On the initial run, it gives 001011011111110111000001110000110101 just like you want.  If you click "new input" it increments by 1 just like I would expect it to in binary.  If you click the "new input" 3 times, it gives the .....1000.
 
I don't understand your problem with Altenbach's VI.
0 Kudos
Message 15 of 32
(6,994 Views)
Is there a way that someone can email me directly, so that I can send them my program so far, and they can guide me in the right direction as to what I am trying to accomplish in this phase? What he sent really helped....I tried to apply the same concept to my current program and it was not compatible.

I can be contacted at dae_carrington@yahoo.com or dae_carrington for yahoo messenger
0 Kudos
Message 16 of 32
(6,984 Views)
I think you should give anyone a stab at it. Why don't you simply post it here?
0 Kudos
Message 17 of 32
(6,979 Views)
You can attach the file here.  Below the edit text box there is a spot to attach.  Unless I am reading something wrong, it looks like altenbach's code is what you were looking for.  What else is going on that creates a problem?

~milq
0 Kudos
Message 18 of 32
(6,978 Views)

I think U people are not scolding "Me" for not being able to open Altenbach's VI, due to not having LV 8.0 or 8.2... Smiley Wink

 

- Partha ( CLD until Oct 2024 🙂 )
0 Kudos
Message 19 of 32
(6,985 Views)
For concept, it is what I am looking for. I can not interface it with what I already have to produce the final output that I am looking for. I am adding 60 more bits of information, with the 36 bits to get a 96 bit data construct. Each time there is a new input to the 60 bits, I need the number being translated into binary to increment by one. So each time there is a new input to the whole program, this number needs to increment. The output is being added to another output to produce the final output of that part of the program.
0 Kudos
Message 20 of 32
(6,966 Views)