LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Hex inverting problem...

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! 

0 Kudos
Message 1 of 6
(2,993 Views)

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.

0 Kudos
Message 2 of 6
(2,978 Views)

The boolean NOT would also work directly on U8 byte arrays. (Inflating to a boolean array is a detour involving 8x larger data structures)

0 Kudos
Message 3 of 6
(2,975 Views)

 


@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.

 

0 Kudos
Message 4 of 6
(2,970 Views)

Ah sorry, I wasn't paying attention and read it wrong. 😉

 

(I should have looked at the author name, your answers are always flawless.)

0 Kudos
Message 5 of 6
(2,966 Views)

 


@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. Smiley Wink

 

a08.gif

0 Kudos
Message 6 of 6
(2,948 Views)