LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Continuous serial communication.

It's a VI snippet. Download it and drag the file to the block diagram

0 Kudos
Message 11 of 17
(819 Views)

Hi Raj,

 


@Rajsakthi wrote:

Can you please share this as a VI file.


Do you see the reason why I asked YOU to provide a VI?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 12 of 17
(806 Views)

I have the access to download but not to share. Sorry for the inconvenience.

0 Kudos
Message 13 of 17
(803 Views)

@Rajsakthi wrote:

Rajsakthi_3-1707383667213.pngRajsakthi_4-1707383689749.png

 

Rajsakthi_5-1707383811016.png

 

I need the substring as 5A A5 2B 00 D1 FF 2F 95 30 6C


Since you are dealing with binary data, you should turn the Termination Character off (input on the top of the VISA Configure Serial Port).

 

Could you give a better definition on the messaging protocol being used here?  I suspect we can make life a lot easier for you by using the actual protocol instead of just grabbing as much as possible and then searching.


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 14 of 17
(784 Views)

Hi,
     Here iam using  UART protocol with 38400 Baud rate for each 5ms iam receiving the ascii message continuously. that ascii should be converted to hex.

0 Kudos
Message 15 of 17
(745 Views)

@Rajsakthi wrote:

iam receiving the ascii message continuously. that ascii should be converted to hex.


From the data you have shown so far, you are not getting ASCII data.  It looks like it is raw/binary/hex data.


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 16 of 17
(695 Views)

There is this repeating 5A A5 pattern. My suspicion is that 5AA5 is either the start of a message or alternatively A5 is indicating start and 5A is indicating end.

 

Of course there is the next question: since this protocol is obviously binary (and not ASCII as the OP claims) how is the protocol dealing with the possibility of 5A and/or A5 appearing as part of the data? That has to be explained by the protocol documentation which the OP has failed to provide so far, and if it is not explained, or even worse, such a protocol documentation does not even exist, the protocol is simply useless!

Rolf Kalbermatter
My Blog
0 Kudos
Message 17 of 17
(684 Views)