LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

RS422 Clock Lines

Solved!
Go to solution

Hello

I'm trying to read a PCM Stream that is send from a measurement system via RS422. The device has two data lines (Data+/-) and two Clock Lines (Clock +/-). I have the Moxa Uport 1250 which converts the RS422 to USB.

So far I've dealt with RS232 and I would know how to decode the Stream once I actually receive the data. But I'm struggling here on what to do with the Clock Lines. Do I have to connect them to the TX Lines of the RS-to-USB Converter? Do I have to generate the Clock Signal myself somehow in Labview?

 

Thanks for any Pointers to the correct direction.

0 Kudos
Message 1 of 8
(5,241 Views)

Hi Slaxx,

 

are you in the same team as hauserr?

 

Do you mind to attach (or link to) specific information about your "measurement system"?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 8
(5,232 Views)
Solution
Accepted by topic author Slaxx

First, let's note that RS-422 defines the hardware requirements (differential pair, etc).  However, if you have clock lines then your device is not using a UART protocol.  Therefore, your Uport 1250 is useless.  You need to find a device that does PCM decoding or use an FPGA board or sbRIO or cRIO (really need that FPGA) to do your own PCM decoder.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 3 of 8
(5,227 Views)

Ah ok now I understand.

I was assume out of pure naivety that this could be done on any device. Then I guess it's a bigger topic if it doesn't exist already.

0 Kudos
Message 4 of 8
(5,215 Views)

Ah yes, I didn't know he did a board topic on that. I was assuming that he contacted NI support directly.

My fault then.

But with the feedback of crossrulz I think therefore it would also not be possible with the NI 9871?

0 Kudos
Message 5 of 8
(5,212 Views)
Solution
Accepted by topic author Slaxx

@Slaxx wrote:

But with the feedback of crossrulz I think therefore it would also not be possible with the NI 9871?


Nope.  The 9871 is for UART communications.  But if you are going with a cRIO, I would go with a 9401 and program the PCM decoder in the FPGA.  It might also be worth making a small circuit before it to convert the RS-422 lines into single ended digital lines.  Something like a TI AM26LV32CDR might do the trick.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 6 of 8
(5,195 Views)

But shouldn't it then also work with the 9401 installed in a cDAQ and a computer with Labview running which functions as the FPGA?

0 Kudos
Message 7 of 8
(5,188 Views)

@Slaxx wrote:

But shouldn't it then also work with the 9401 installed in a cDAQ and a computer with Labview running which functions as the FPGA?


No.  Why?  Timing.  A PC will not have the determinism you need in order to properly decode this.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 8 of 8
(5,184 Views)