06-23-2025 09:49 AM
Hi,
I have a device that generates random frames, and I only want to retrieve the last frame that was sent.
Full frame: 0112 FF03 EBDF 0374 E701 12FF 03C8 7D10 BD80 0112 080F 0000 1B58 0200 0004 0E02 0100 0100 00F3 FE
Frame to be sent in the last position: 0112 080F 0000 1B58 0200 0004 0E02 0100 0100 00F3 FE
Does anyone have an idea how to automatically detect and extract this last frame?
Thanks in advance for your help!
Solved! Go to Solution.
06-23-2025 10:17 AM
Does every frame start with 0112 ? (and is that unique? mean it does not show up in the data again?)
Anything more you know from the format? (frame length encoded? check sum? )
What do you mean by last frame? Last complete frame at request time?
06-23-2025 11:19 AM
All frames start with 0112.
0112 FF03 EBDF 0374 E7
0112 FF03 C8 7D10 BD80
0112 080F 0000 1B58 0200 0004 0E02 0100 0100 00F3 FE
The difference lies in the frame size and in the second packet. The last frame is the third one, but sometimes it can appear in the fourth position because it’s random. However, the largest frame always comes in the last position.
06-23-2025 11:45 AM
What is the delimiter for this data? Is there a delimiter or is it one big string?
06-23-2025 11:57 AM
Here is an example that should get you started:
06-23-2025 12:18 PM
@Fredo123Danzel wrote:
Hi,
I have a device that generates random frames, and I only want to retrieve the last frame that was sent.
Full frame: 0112 FF03 EBDF 0374 E701 12FF 03C8 7D10 BD80 0112 080F 0000 1B58 0200 0004 0E02 0100 0100 00F3 FE
Frame to be sent in the last position: 0112 080F 0000 1B58 0200 0004 0E02 0100 0100 00F3 FE
Does anyone have an idea how to automatically detect and extract this last frame?
Thanks in advance for your help!
They are NOT "random" frames; each one means something. I would suggest that, instead of asking a zillion of questions about these messages, you should look up the definitions of the messages themselves. Your knowledge will then leap forward and you may no longer even need us to answer your questions.
06-23-2025 12:19 PM
Also, just FYI, this appears to be directly related to https://forums.ni.com/t5/LabVIEW/Hexadecimal-to-Decimal-Conversion/td-p/4442655 but not enough to be in the same topic.