01-26-2009 06:17 PM
Hello friends!
I am building a VI to break apart a string of characters and convert each to binary code. Please see the attached example. When verifying the input string against the output boolean array, I notice that each 8bit code is transposed from left to right when compared against any standard ASCII to Binary table. Am I understand that binary is usually read from right to left? My concern is how other systems will translate this code after it is transferred. The main question is this: Do I leave it be, or transpose it before data transfer?
Any advice or comments would be greatly appreciated!
Thanks,
Zach
Solved! Go to Solution.
01-26-2009 08:45 PM
Remember you are looking at an array. Index 0 of an array (which corresponds to bit 0 of the number) will be to the left. As long as you are just doing standard computer functions and bit manipulations, don't worry about it.
If you are doing something where you want to graphically show on the front panel to a user what the bits look like and have the 0th bit on the right, then you will need to manipulate the array so that the 0th bit will be in index 7 and the 7th bit will be in index 0, and so on.