What is "firstPacket" in streams? | LabJack

What is "firstPacket" in streams?

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


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: