Hello,
I've run into a problem I can't think of a solution to.
I have two remote sensors (Labview based) sending the following data to a PC running Labview:
- UTC to nearest millisecond
- Phase Angle (the data payload)
One sensor is nearby and has a latency of ~1ms. The other is far away and has a latency of ~120ms. The sampling rate for the sensors is 10Hz (i.e. one packet every 100ms).
I have a Labview VI receiving both streams of data and displaying on two individual charts. The problem is, I need to compare one stream of data with the other and find the difference in the Phase Angle. For example,
Sensor 1 data: Sensor 2 data:
0.0s, 20deg 0.0s, 14deg
0.1s, 25deg 0.1s, 18deg
0.2s, 30deg 0.3s, 27deg
0.3s, 35deg --PACKET LOSS--
0.4s, 40deg 0.5s, 40deg
0.5s, 45deg 0.2s, 25deg
I would need Labview to align the timestamps and then subtract the angles (either skipping when data is missing or interpolating). The output of this function is for use in realtime control, so saving to a file and post-processing is out unfortunately.
Thanks in advance for any suggestions.