Hi folks,
I am reading a binary string from a campbell sonic anemometer. It is transmitted via RS 232 9600 baud. The problem is as follows:
I am reading the input buffer once in a while(every 300 ms). The outpit of the sonic is much faster(every 30ms). Then there are a certain amount of bytes stored which I read. To get a proper value I have to find 2 termination bytes HEX AA and HEX 55. A complete sentence consists of 12 bytes 10 bytes each U8 values and 2 bytes termination. How do I search for them?
My idea was to see how much bytes I read, convert each to a binary array and then show them as boolean array all together(see attached VI). this works but I can't find the right binary expression for Hex AA and 55. And it is also interersting that the first collumn(bit 0) and the last one (bit 7) always stay "false". Am I doing something wrong?