LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

slash codes and string inversion

Ok I know I am missing something here but , I need to invert data being sent out of the serial port. The data is normally viewed in HEX and inverting it seems easy enough if viewed in HEX format but the data is incorrect when I check it wit an oscilliscope. It seems related to the slash codes but cannot get my head round how to get the inverted string to be correct ie \55\55\55\55 in the attached vi.

0 Kudos
Message 1 of 3
(2,864 Views)

Hi Nash,

 

you didn't include any default data in your VI…

 

A slash code of "\55" is the same as an ASCII "U". When I input "AAAA" in your HEX display input I get the correct answer "UU" in the slash code output.

What else do you expect?

 

Please provide examples (for input and expected output), if you think your VI doesn't work correctly!

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 3
(2,840 Views)

knew i was missing something. Labview is converting the HEX to ASCII when valid to display and cause I'm thinking in HEX I missed it.scope probably the stop/start bits.   

0 Kudos
Message 3 of 3
(2,827 Views)