From 04:00 PM CDT – 08:00 PM CDT (09:00 PM UTC – 01:00 AM UTC) Tuesday, April 16, 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: 

how to set date and time fro GPS UTC time

My aim is to get UTC time from a gps and to set computer time according to
that.
Do you know any function related to this ?


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

"Daniel" <Tango@argentino.it> wrote in message news:e56kb8$ng2$1@daniel-new.mch.sbs.de...
My aim is to get UTC time from a gps and to set computer time according to
that.
Do you know any function related to this ?





Hi,


What do you have so far?


You'll have to split up the problem in several functions:


1) Read UTC form GPS:
Do you have a GPS? Can you read the UTC? What protocol does your GPS support? Does it use RS232 or bluetooth? Is it NMEA183 or something else?


2) Convert the UTC from the GPS to windows data and time.


3) Set the windows data and time:
Use a windows API. SetSystemTime would do the trick.


Please specify where you have problems.


Regards,


Wiebe.


0 Kudos
Message 2 of 2
(2,391 Views)