LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Data filtering

Solved!
Go to solution

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!

0 Kudos
Message 1 of 7
(232 Views)

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? 

Greetings from Germany
Henrik

LV since v3.1

“ground” is a convenient fantasy

'˙˙˙˙uıɐƃɐ lɐıp puɐ °06 ǝuoɥd ɹnoʎ uɹnʇ ǝsɐǝld 'ʎɹɐuıƃɐɯı sı pǝlɐıp ǝʌɐɥ noʎ ɹǝqɯnu ǝɥʇ'


0 Kudos
Message 2 of 7
(214 Views)

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.

0 Kudos
Message 3 of 7
(194 Views)

What is the delimiter for this data? Is there a delimiter or is it one big string?

Tim
GHSP
0 Kudos
Message 4 of 7
(186 Views)

Here is an example that should get you started:

Tim
GHSP
0 Kudos
Message 5 of 7
(181 Views)
Solution
Accepted by topic author Fredo123Danzel

@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.

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
0 Kudos
Message 6 of 7
(167 Views)

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.

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
0 Kudos
Message 7 of 7
(166 Views)