LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to separate two GPS signal in one COM Port

Please post your code so we can take a look at it.
0 Kudos
Message 51 of 60
(2,044 Views)
The garmin.vi uploaded before has this prob.
0 Kudos
Message 52 of 60
(2,039 Views)
I don't know where you got that from.  Did you try the ones I posted?
0 Kudos
Message 53 of 60
(2,032 Views)

Hi.

I want to share this sample VI for your reference and something you can start with. My case is a Novatel GPS, but it will not differ too much with a Garmin GPS. Like you i am getting two serial data at the same time (GPRMC and GPGGA).

Have fun. Hope this will help.

0 Kudos
Message 54 of 60
(2,020 Views)
Oh i meant Garmin Comms.llb  that u posted! Strangely i'm geting one sec difference in time. 
0 Kudos
Message 55 of 60
(2,003 Views)
Well, since the data is send serial, I'd expect a time difference between
the two messages. One second is a bit much though, but it might be the
cause.

We have also noticed a difference between the messages. I think the GPGGA is
the last "known" time the GPS received from the satellite. The other time in
the messages is the internal time, that is based (synchronized) with the
last known time. But if there is no communication, the gpgga will be frozen,
the other times keep on running.

I'm not working on it myself, so I don't know the exact details. If this is
the case, it should be documented somewhere.

Regards,

Wiebe.


0 Kudos
Message 56 of 60
(1,972 Views)

Hi, I got a prob when using the 'write to spreadsheet.vi'. I've got an array of two numbers (2D). One I need it to be with 8 decimal places, (%8f), however another one i need it to be without any decimal places. The  'write to spreadsheet.vi' 'format' will apply for both. Hence both will be in together as either one type as stated within the format wire. Is there anyway to solve this. 

0 Kudos
Message 57 of 60
(1,906 Views)
There might be a better way than this hack, but you could index the array to get each column individually.  Format each 1-D array to the desired format.  Then build the 2 columns back to a 2-D string string array for writing to the file.
0 Kudos
Message 58 of 60
(1,901 Views)
hi thanks for replying. Do u mean don't use the write to 'spreadsheet.vi' to write to the text file? cos if u format the column individually then combine back and use the write to 'spreadsheet.vi', it will still follow a single format that is at the 'spreadsheet.vi' format wire.
0 Kudos
Message 59 of 60
(1,898 Views)


@1000 wrote:
hi thanks for replying. Do you mean don't use the write to 'spreadsheet.vi' to write to the text file? because if you format the column individually then combine back and use the write to 'spreadsheet.vi', it will still follow a single format that is at the 'spreadsheet.vi' format wire.



Correct.  I would just use the write text file functions to build your own strings from the array data and write it out to the file.
You may even want to open up the spreadsheet .vi's to see how they are internally doing and try to model your programming after that.  Modify their code to structure the strings the way you want and save them as new VI's under a new name to use.
0 Kudos
Message 60 of 60
(1,892 Views)