06-03-2015 07:35 PM
Hello, im new in labview and i have a problem.
I have an Input String and i need a binary exit.
For example: if i write at the input HELLO WORD the result is: 01001000010001010100110001001100010011110010000001010111010011110101001001000100
And viceversa, if i have in the input 01001000010001010100110001001100010011110010000001010111010011110101001001000100 the result must be: HELLO WORD
Please let me know if any more info is needed, thank you for the help!
06-03-2015 07:48 PM
Have you tried searching the forums?
This question has been asked hundreds of times before. A search with browsing through the first page or two of results should give you a clue as to how to do it.
06-04-2015 02:00 AM
It looks like a basic homework assignment. 🙂
Try to take a look on the function palette and check how the "type cast" and "number to binary array" functions work.
06-04-2015 05:59 AM
CsabaF wrote:
Try to take a look on the function palette and check how the "type cast" and "number to binary array" functions work.
The String To Byte Array and then a FOR loop with Format String would be a lot easier.
06-04-2015 06:20 AM - edited 06-04-2015 06:24 AM
crossrulz wrote:
The String To Byte Array and then a FOR loop with Format String would be a lot easier.
Ahh, great idea! I have just tried it during my coffee break and that method simplifies the conversion quite much - I should spend a bit more time playing around with the string formatting vis, those are very efficient in some cases.