05-01-2011 08:36 PM
I have a problem and would really appreciate your help...
I have some communications im trying to monitor using labiew, it is TTL communications, which ive managed to convert to serial/RS232 using some simple hardware.
The problem i have is - Before the data is converted to RS232 the data travels through a 'HEX inverter buffer' chip 74xx series.
So the data im reading on the serial prt via Visa serial in inverted 😞
Is there a vi or simple method of un-inverting the Hex date which hase been inverted by the IC so that i can read it?
Im not sure if these chips invert the stop bits etc
The solution needs be in software as apposed to a hardware change.... if possible.
Thanks a lot in advance!
05-01-2011 11:58 PM
The inverter would not be inverting the stop bits since, by definition, you said it occurs before the RS232 conversion. All you need to do at the software end is to take the read data from VISA Read and convert it to a series of bytes using the String to Byte Array function. Then, just wire the 1D array of U8 to a Boolean Not.
05-02-2011 12:15 AM
The boolean NOT would also work directly on U8 byte arrays. (Inflating to a boolean array is a detour involving 8x larger data structures)
05-02-2011 12:22 AM
@altenbach wrote:
The boolean NOT would also work directly on U8 byte arrays. (Inflating to a boolean array is a detour involving 8x larger data structures)
Not sure if this was directed at me or the poster. If it's to me, I made no mention of Boolean arrays. Confused.
05-02-2011 12:40 AM - edited 05-02-2011 12:43 AM
Ah sorry, I wasn't paying attention and read it wrong. 😉
(I should have looked at the author name, your answers are always flawless.)
05-02-2011 08:53 AM
@altenbach wrote:
Ah sorry, I wasn't paying attention and read it wrong. 😉
(I should have looked at the author name, your answers are always flawless.)
Now you're making me blush.