From 11:00 PM CDT Friday, Nov 8 - 2:30 PM CDT Saturday, Nov 9, 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: 

Simulating GPS Sentences

Hi,

I understand that GPS NMEA sentences could be collected serially using COM ports. I also know that the sentences are updated sentences by sentences. If there any way I could use a log file of the NMEA sentences and make it run like it was from the GPS receiver?

Could anyone demostrate this?

Thanks alot

From
Donny
0 Kudos
Message 1 of 4
(2,681 Views)
Sure, and I'll try to answer a couple of your other posts on the same/similar subjects that you've posted today. First, in regards to saving NMEA strings, there are functions on the File I/O palette that can be used. Write Characters to File should work just fine. Once you have a file saved, you can them simulate the reception of data. If your GPS would noramlly be connected to Com1, connect it to another com port with a null modem cable (tx and rx swapped). Then, in a separate VI, read the saved file and then transmit it out line by line over Com2.
Message 2 of 4
(2,673 Views)
Could u show me the connection of the write function to the serial port? I'm rather new to this LabView. I'm glad if you could show me the way...Thanks
0 Kudos
Message 3 of 4
(2,670 Views)
It's just a VISA Wite as shown in the attached picture. For other details on how to configure the serial port (baud rate, etc.) look through the shipping examples. There's even one called Basic 2 Port Serial Write and Read that writes on one port and reads another.

Message Edited by Dennis Knutson on 04-20-2005 10:30 AM

Message 4 of 4
(2,664 Views)