03-15-2014 05:23 PM
I have a project where as well as capturing data via an ADC to a Surface Pro, I also require the GPS coordinates. Whilst it would be easy to attach an external GPS senesor I remembered that the Surface Pro has built in Geolocation via this (in Visual Studio)
http://code.msdn.microsoft.com/windowsapps/Geolocation-2483de66/view/Discussions
Now in c,VB.NET etc you can access this. Is there a way to access this in LabView direct without making a dll etc
I have tested LabView on a Surface Pro btw in it works fine.
03-17-2014 06:14 PM
Hi tomnz
The best way to use this in LabVIEW is to call Windows.Devices.Geolocation.namespace using a constructor node, it is the only way LabVIEW can access this Windows assembly.
Here is more information about constructor nodes.
Regards
06-14-2016 10:38 AM
Hi,
you may need to configure LabVIEW to use .Net framework 4.0 (see LabVIEW.exe.config related pages)
then, you can use the GeoCoordinateWatcher() constructor node in System.Device(4.0.0.0)>System.Device.Location.
02-23-2017 02:24 AM
Hey,
when I try to read the gps data I always get NaN but there is no error displayed. Is there anyone who has an idea??
Thanks for your help.
02-23-2017 03:56 PM
Hi Sebko,
Are you able to post your LabVIEW code as to how you're using the constructor node?
Is your setup the same as the original poster in this forum?
03-01-2017 02:54 AM
Now it works. I attached an image of my code.
Thank you.
07-09-2023 04:34 PM
Hello,
I'm attempting to accomplish a similar task, in accessing the geolocation from Windows. This approach seems to work if I setup the code like the picture that was submitted by the user sebko. The problem that I have is that I get only one geo position and then it no longer updates until I restart the VI.
Any ideas?
07-10-2023 04:14 AM
From the GeoCoordinateWatcher Class documentation:
The Status property can be checked to determine if data is available. If data is available, you can get the location one time from the Position property, or receive continuous location updates by handling the PositionChanged event.
You have to create an event handler VI to get continuous position updates. Here is an example: Register Callback VIs for .NET Events in LabVIEW
Basically, you need the Register Event Callback node and create the callback VI.
07-10-2023 10:02 AM