What is "firstPacket" in streams? | LabJack
 

What is "firstPacket" in streams?

2 posts / 0 new
Last post
Raphaël
Raphael's picture
What is "firstPacket" in streams?

Hello,

The key 'firstPacket' in streams data packet seems to be a counter which is incremented at each new packet received. Do you confirm? I can't find anything in the documentation about this field.

I want to use this field to test if a packet is the first packet received, is there any risk to see it going back to zero for some reason? Even after 40 hours of execution?

Thanks for your help!

LabJack Support
LabJack Support's picture
In Python, we define

In Python, we define 'firstPacket' as being equal to byte 10 from the low level stream data return. This is a counter for the packet number, it should roll after it exceeds 255:

https://labjack.com/support/datasheets/ue9/low-level-function-reference/...