LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I convert ASCII into binary?

How do I read a text file in LabVIEW and get its binary equivalent?

i.e.
Text file contains "ABC".  (Hex = 41 42 43, Binary = 01000001 01000010 01000011)
I read in the file and want to see "010000010100001001000011".
I then convert these bits into characters and save them into another text file.
The newly created text file contains "010000010100001001000011".

Which blocks do I use to do this?
0 Kudos
Message 1 of 5
(5,284 Views)
Hello Raine,
one way to do this is shown below.
Greets, Dave


Message Edited by daveTW on 02-06-2007 08:56 PM

Greets, Dave
Message 2 of 5
(5,277 Views)
Hi Dave,

Thank you very much for your reply.  I was unable to open the VI you attached because I am using an older version of LabVIEW, but I successfully reconstructed the VI using the handy image you included.  Works like a charm.  😃

Thanks again!
0 Kudos
Message 3 of 5
(5,267 Views)
With todays price of copper, you can save a few wires as follows. 😄
 

Message Edited by altenbach on 02-06-2007 12:57 PM

Message 4 of 5
(5,257 Views)
Haha thanks! 😉
0 Kudos
Message 5 of 5
(5,249 Views)