From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Generated GPS waveform file doesn't seem to be complete

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. 

wesoli_0-1575620429758.png

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. 

0 Kudos
Message 1 of 2
(1,795 Views)

So as things tend to go... as soon as you've explained what's going wrong you start to see things more clearly. I've edited the "niGPS Streaming From File (5671)" VI and have successfully completed a test. I've circled my mod in red.

wesoli_1-1575629439264.png

The VI was doing something there that I don't quite understand. I thought it was how the VI calculated when the end of the binary file had been reached and to be helpful just looped back to the beginning. 

 

My mod isn't elegant, because it causes an error when the EOF is reached, but it does stop the stream. I'll tidy it up when I have time. Just wanted to share my findings.

0 Kudos
Message 2 of 2
(1,764 Views)