Some setup info:
- LabVIEW 2018 SP1
- NI-RFSQ 18.1
Hardware used:
- NI PXI-5671 made up of
- -- NI PXI-5610
- -- NI PXI-5441
VIs used:
- niGPS Write Waveform To File (Trajectory Script, Automatic Mode) [To generate the file]
- niGPS Streaming From File (5671) [To stream the file to my GPS receiver]
Trajectory file:
Custom file using the format
waypoint constant_heading lat long altitude duration=seconds
example: waypoint constant_heading -33.88693926 18.57398093 0 duration=30
niGPS --> Trajectory Script Climb Enabled = FALSE
My problem
The streamed GPS data isn't the full trip. The total generated trip should be about 55 minutes. When streaming the generated file the trip stops after about 7 minutes then loops back to about 3 minutes into the trip and this carries on until I stop the streaming.
I can confirm, looking at the generated lat and long values, that the "niGPS Write Waveform To File" VI generates data right up until the last expected GPS point.
Also, when looking at the time difference between "Current GPS Time of Week" and "Initial Time of Ephemeris" I get to the expected travel time of approx 55min.
I'm not sure where to dig around now. I can see that, according to the "offset (in bytes)" value that the VI has read through the entire binary file. It's a 19GB file. Does that sound right? Is my binary file missing data and the streaming VI is correct? If the VI streams the 19GB in 7 minutes then info must be being chopped off. When watching the live position the GPS receiver correctly moves along the expected path until the looping beings to happen. When the looping happens the "offset (in bytes)" jumps back - so I've guessing the cursor in the binary file is moved backwards.
Any advice or guidance would be great. Not sure where to look now.