Re: How to send 12 bit on serial port
- From: Ravens Fan <x@xxxxxxxx>
- Date: Fri, 30 May 2008 21:10:05 -0500 (CDT)
When you read in from the serial port, even if you are only sending/receiving 6 data bits, the result from the VISA read will still be a string where each character will be the ASCII value of the 6 bit portion of the character set. (ASCII 0 to 63). Once you've determined which is the high byte and which is the low byte, you will need to convert the character to a U8. Then multiply the high byte by 64 (2^6) and add the low byte. There are probably better ways to do this programmatically using Join numbers and bit shifts and rotates, but I'll leave it up to others to suggest that.
ziad h. wrote:
My last question is how labview deals with strings when plotting them on a graph. Does it read the whole string and plot it because ;than I think their will be no problem or it divide it into (8,16 or 32 bits) and in that case it will be a problem to make it understand 12 bits.
This question makes no sense. You can't plot "strings" to a graph.:smileysurprised:
.
- References:
- How to send 12 bit on serial port
- From: ziad h .
- Re: How to send 12 bit on serial port
- From: ziad h .
- How to send 12 bit on serial port
- Prev by Date: Re: Key Binding in Three Button Dialog
- Next by Date: Re: Plotting 2 arrays
- Previous by thread: Re: How to send 12 bit on serial port
- Next by thread: Re: How to send 12 bit on serial port
- Index(es):