Streaming data with timestamp | LabJack
 

Streaming data with timestamp

2 posts / 0 new
Last post
cristian.ccd
cristianccd's picture
Streaming data with timestamp

Hi there! I would like to ask you if there is any example out there how to get the timestamp from the streamed data. I know it can be done by hardware and I am getting the streamed data correctly and showing it in a chart. However the values do not have their own timestamp and thus I cannot make a time dependent graphic.

I appreciate your help!

LabJack Support
labjack support's picture
Since stream is hardware

Since stream is hardware timed you know the relative time of any scan without needing to reduntantly store such a timestamp with the data:

TimeSinceStart = ScanRate * ScanNumber

If you simply add the start time to the relative time, you can then get absolute time if that is what you want.