09-16-2010 07:08 AM - edited 09-16-2010 07:09 AM
How to program individual bits in byte frame. Here I am using serial communication.
byte |
bits |
Element name |
0 |
0 |
P3v3error |
0 |
1 |
P3v3error |
0 |
2 |
P3v1error |
0 |
3 |
P3v5error |
0 |
4 |
P3v3error |
0 |
5 |
P3v3error |
0 |
6 |
P3v3error |
0 |
7 |
P3v3error |
1 |
Spare 8 bits |
Spare 8 bits |
|
|
|
09-16-2010 08:55 AM
Your question is far too vague, almost to the point of being meaningless. What is the context? In a serial communication you send bytes. What are you communicating with. What is your code? What message are you trying to create. If you expect an answer then please form a good question first.
09-16-2010 08:56 AM
Assuming LabVIEW, you can typecast a U8 to a string. There is also the Byte Array to String.