LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Decode analog waveform into serial data

Greetings everyone. I started out what seemed to be a pretty straightforward endeavor, but I'm stumped at how little documentation I have found so far, maybe not looking for the right keywords.

 

Either way, I have a batch of captured oscilloscope samples, that accurately match a serial (RS232/UART) communication. The signal has a 500 baudrate, Even parity, 1 start 1 stop bit and 8 data bits for a total of 11 data bits. 

 

So far I have managed to translate it to a waveform and digital waveform files by simply inputing one half (timestamp/signal) of the 2D array into the build waveform, with a known dt of 0.002, but how do I go about into decoding the RS232 data? Thought it would be easier but all predetermined VIs expect physical ports, which are, IMO, not required for my project. Is there a VI or addon that converts the analog waveform into the RS232 data?

 

Thanks in advance.

0 Kudos
Message 1 of 3
(993 Views)

Hi Daikataro,

 


@Daikataro wrote:
how do I go about into decoding the RS232 data? Thought it would be easier but all predetermined VIs expect physical ports, which are, IMO, not required for my project. Is there a VI or addon that converts the analog waveform into the RS232 data?

Just some weeks ago there was a discussion about exactly the same problem: getting the RS232 data from an analog measurement of the transmission signal. Maybe you start searching the forum for that thread?

Best regards,
GerdW


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

Thanks and sorry for the delayed response. I've searched in the forums and I believe this is the thread you're refering to?

 

https://forums.ni.com/t5/LabVIEW/RS232-Protocol-Decode/m-p/4289859#M1252125

 

I've tried their attached code and solutions, but several segments are either entirely missing from the code (such as baudrate), or not used into the actual code and just placeholders (parity, flow control).

 

Would you happen by some chance to have another example that takes these into account for the decoding? As it currently is, I can display the graphs on a digital waveform chart, but they don't seem to make much sense at all.

0 Kudos
Message 3 of 3
(961 Views)