LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to convert decimal to binary


Parthabe: "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... "


Hi Parthabe,  Perhaps your comment here was referring to my post where I said "I don't understand your problem with Altenbach's VI."

We happened to be posting at about the same time.  I was responding to Playmaker's post where he said that Altenbach's results were incorrect.  Your post got in a minute before mine, so it sounded like I was referring to your inability to open it by not having LV 8 or 8.2.  That wasn't what I intended at all.  Smiley Happy

Playmaker,  you should definitely post a VI for others to look at.  Altenbach's VI seems to work exactly as you asked for in you original post which is the basic concept of how to do the data manipulation.  Now it sounds like you have a few more requirements to add on.  That means Altenbach's VI needs to be modified from a quick example into a larger program structure.  Sending what you have so far will help everyone see what you are trying to do and help guide you into what your ultimate goal is for this VI.

Message Edited by Ravens Fan on 03-23-2007 10:06 AM

Message 21 of 32
(5,312 Views)
I made a mistake by saying that Altenbach's VI was incorrect. It was definitely correct by concept. Thank You Altenbach.  I now am trying to modify that small part to the requirements of my VI by saying "if the value of "string" changes, increment "string 1" by 1.
0 Kudos
Message 22 of 32
(5,293 Views)
Hello again how are you?

I am in need of your expertise once again. Thank ylou for helping me the first time.

I currently have two problems with my program.
  •     Every time I have an input, I have to click outside of the string (input) box to see my output.
  •     I have string and string 2. String 2 is a number which I set. I need something to say..."whenever the value of "string" changes, increment "string2" by one.
    • From there the new value of string two will be converted to the 36 bit binary. So the concept was correct.
      • I will basically need a string that can have a set value, and that value be overriden by the event structure
Any suggestions?


Thanks, I really appreciate it.
0 Kudos
Message 23 of 32
(5,288 Views)


@playmaker wrote:
  •     Every time I have an input, I have to click outside of the string (input) box to see my output.


String controls have several options that you can set by right-clicking. If you want the string to accept the new value whenever you hit enter, select "limit to single line". If you want a change to be detected whenever you add or delete a character, set "update values while typing". Maybe you want to set both (See attached) ;).


playmaker wrote:
  •     I have string and string 2. String 2 is a number which I set. I need something to say..."whenever the value of "string" changes, increment "string2" by one.


Well, first of all you can possibly simplify the code by using a numeric indicator set to binary display. Also the start count could be numeric. I you really need a string, use the method from the previous code.

Attached is a simple draft. See if this can point you in the right direction.

0 Kudos
Message 24 of 32
(5,287 Views)


@Ravens Fan wrote:


Parthabe: "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... "


Hi Parthabe,  Perhaps your comment here was referring to my post where I said "I don't understand your problem with Altenbach's VI."

We happened to be posting at about the same time.  I was responding to Playmaker's post where he said that Altenbach's results were incorrect.  Your post got in a minute before mine, so it sounded like I was referring to your inability to open it by not having LV 8 or 8.2.  That wasn't what I intended at all.  Smiley Happy


Hi Ravens,

I knew where the just criticism was headed to... Smiley Wink

Didnt U see the Wink smiley at the end of the line... ?! Smiley Very Happy

No offence, no defence personally... only subject apart... Smiley Happy

- Partha ( CLD until Oct 2027 🙂 )
0 Kudos
Message 25 of 32
(5,280 Views)
Thanks.

Ok, I see what you mean, but is there a way to actually see the value of "set number" change whenever the value of "string" changes. Currently, it  will increment the binary but not the "set number". Well I can try just to have another string or something else to prove that the actual number is being changed.


Thanks again and hope all is well.
0 Kudos
Message 26 of 32
(5,273 Views)
Thank you for the vi. I do not need it to update while typing, because for every new value entered into the string, it will increment again. I have long pieces of information as my input. Here is an example "17V45XE41PABC-1234567890S10002". So everytime there is a new value of "string" , it needs to automatically update without me having to click outside the box called "string". 

Thanks
0 Kudos
Message 27 of 32
(5,268 Views)


@playmaker wrote:
Ok, I see what you mean, but is there a way to actually see the value of "set number" change whenever the value of "string" changes. Currently, it  will increment the binary but not the "set number". Well I can try just to have another string or something else to prove that the actual number is being changed.

Well, set number is a control, setting the start value for the counting. Why should it change???. You are looking for a decimal indicator for the current value. 

Simply create a second numeric indicator and connect it also the the blue wire, right next to the binary indicator. Set it to decimal display. Voila!

(You can even do both formats in the same indicator by setting an advanced numeric format.
see e.g.http://forums.ni.com/ni/board/message?board.id=170&message.id=222263 see attached quick example) 🙂

0 Kudos
Message 28 of 32
(5,263 Views)

ty

0 Kudos
Message 29 of 32
(3,998 Views)

How to convert this  decimal 234803224258 to binary

0 Kudos
Message 30 of 32
(3,310 Views)