09-16-2007 09:54 PM
09-16-2007 11:21 PM - edited 09-16-2007 11:21 PM
Message Edited by Bill@NGC on 09-16-2007 09:27 PM
09-16-2007 11:29 PM
09-16-2007 11:52 PM
FF01 (=2 bytes) cannot be "converted" into 11111111 (=1 byte) without loss in information. Seems you want to keep only the first byte, so if the FF01 is a 16bit numeric, you can use "split number" and only take the high order byte as U8.
If FF01 is a 2 byte binary string, use "string subset" to get the first byte.
How it is formatted for human consumption on the front panel is irrelevant for the underlying data. FF and 11111111 are the same. If you want it displayed differently, use Bill's advice above.
If you could explain in a bit more detail what you actually want, we can offer more specific advice. 🙂
09-17-2007 12:58 AM
Hi guys,
Thx for the response. What i doing now is monitor each bit being set high or low when the device return back hex data through com port. If received FF01, then i know all 9 bit set high (111111111), same for 0000, then all bit set low(000000000). Attach with my test.vi.
regards,
09-17-2007 02:00 AM - edited 09-17-2007 02:00 AM
Message Edited by altenbach on 09-17-2007 12:01 AM
09-17-2007 02:09 AM
09-17-2007 05:52 AM
Related to HEX & Binary [little endian]...
http://forums.ni.com/ni/board/message?board.id=170&message.id=45083&query.id=168952#M45083
http://forums.ni.com/ni/board/message?board.id=170&message.id=270217&query.id=168952#M270217