02-08-2024 04:47 AM
It's a VI snippet. Download it and drag the file to the block diagram
02-08-2024 05:09 AM
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?
02-08-2024 05:11 AM
I have the access to download but not to share. Sorry for the inconvenience.
02-08-2024 07:31 AM
@Rajsakthi wrote:
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.
02-08-2024 10:44 PM
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.
02-12-2024 07:07 AM
@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.
02-12-2024 08:03 AM
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!