From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

flip hex signal

Solved!
Go to solution

Hi!

 

I'm using a DB9 contact and re232 to comunicate to a device, the device needs a five byte long signal in hex (2A00 1582 55). However when I send the signal by using labVIEW it gets inversed. I'v tried to invers it by my selfe but no sucess. I'm ading a picture on my signal (top) and the right one (bottom) and as you can se it should also be idel high. How can I flip my signal in LabVIEW?

 

Download All
0 Kudos
Message 1 of 6
(3,038 Views)

You can't "flip the signal" in LabVIEW.  The polarity of the signal for 0's and 1's is part of the RS-232 protocol.  It is all handled by the serial port.  A zero is represented by a positive voltage relative to ground, a one by a negative voltage relative to ground.

 

Where are your two displays coming from?  Are you sure you have the polarity of your wiring set up correctly?  Why are you even looking at the raw electrical waveform?

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

Hi!

 

I'm trying to design a test jig for a device that has no or at least very little documentation regarding serial port comunication. I have found out what signal to send to the device so that I can conduct my test but it is not working, so I looked at the signal using a USB-6251 and LabVIEW signalExpress and the result was the top signal in the picture (previous post), then I found an old device that can make the same test as I'm trying to do and looked at the signal that this old device sends out (the lower signal). So I'm basically trying to copy the lower signal and then send it out with the help of LabVIEW, but as you can see is the signal inverted in some way and I can't figure out how to change this. I'm also pretty shure that my connections are done correctly.

0 Kudos
Message 3 of 6
(2,995 Views)
Solution
Accepted by topic author ollef
It really looks like you are comparing apples to oranges. The bottom signal is not a valid RS-232 signal. The voltage levels are all wrong. If your old device is sending this, you are going to have to do some level translation on the output of the pc's serial port. There is nothing that can be done in software. The UART of the pc is responsible for the voltage levels and they are correct.
0 Kudos
Message 4 of 6
(2,989 Views)

Could the signal and rtn be switched? That would flip the sense of the signal.

 

The first signal does not appear to be referenced to ground. Could that have been captured without a common ground?

 

Just thinking out loud.

 

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 5 of 6
(2,975 Views)

Thanks for pionting the rs232 problem out, I'm cind of new to the serial comunication and would probably not have realysed that for some time. But we fixed the problem by designing a cirkutbourd that will do the thing for us.

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