I had an array of 2000 datas, however i only want to extract bit 0 and bit 1 of the data in the array and store them into a new array. the source will be something like the following
(i=0; i++; i<2000)
{
temp = buffer[i];
temp = temp && 0000 0011b;
temp = temp ^ 0000 0011b; /* exclusive or as i want to invert bit0-1*/
data[i] = temp;
}
l had tried using the formula node to do the boolean operation as above, however, i seem to miss out something as the vi prompt me an error. attached is my vi
1. how to carry out "Exclusive OR" on a byte? i wanted to invert bit0 and bit 1 of the data, however i'm not very sure about the command and source code.
2. how do i solve the error prompted by my vi.
thks and best regards
lyn