PDA

View Full Version : LabView Example?



rramage7
01-05-2006, 09:49 AM
I am new to mappoint and using LabView 7.1. Have not found any examples on using MapPoint (MP2004 on any LabView forum and not finding any examples using LabView on this forum. Hoping someone here will provide an example to get me started. Thanks in advance for your help.

Eric Frost
01-05-2006, 11:19 AM
Is this the software? http://www.ni.com/labview/whatis/

What do you want to do with MapPoint? Maybe we can help you with that approach.

Eric

rramage7
01-05-2006, 04:31 PM
Hi Eric,

Yes, you have the correct web site, Labview is an NI product.

My project requires use of a GPS, MapPoint 2004 NA, LabView and either Win2k or WinXP platform. The added use of MapPoint with very large existing LabView program prevents me from looking at other development options at this time. Since the computer may not have access to the internet, we need to use stand alone MapPoint installations instead of using web access. However, the web access may be an alternative with a corporate license, but I have not checked on the cost??

Basically I want to input lat-lon, specify a size and pull up map of the area, with capability to zoom in and out. We also plan to overlay data on the map. I planned to use MapPoint ActiveX control to accomplish this, but am open to other suggestions. Mainly trying to get an example to get started with.

Would appreciate any help you can provide.

Thanks.

Wilfried
01-06-2006, 06:44 AM
Hi,

This example get a Location object form a given coordinates, place a pushin on that point, give is a symbol and some text in balloon, then it pan/zoom the map to a given coordinate. I think this will get you start. mp is the activeX control.


Location loc = mp.ActiveMap.GetLocation(lat, lon, alt);
Pushpin pp = mp.ActiveMap.AddPushpin(loc, "Hello");
pp.Symbol = 1;
pp.Note = "test\r\n" + "and next line";
pp.BalloonState = GeoBalloonState.geoDisplayBalloon;
pp.Highlight = true;
mp.ActiveMap.GoToLatLong(lat, lon, alt);

rramage7
01-17-2006, 09:46 AM
Do you have a sample vi that shows how to implement this text based code in Labview? I appologize, but am relatively new to both LabView and MapPoint and have not implemented text based code with the LabView G type programming .... not yet anyway.

Wilfried
01-17-2006, 01:14 PM
Hi,

Sorry no. But I did take a _very_ quick view to their website and it seems a kind of graphical programming environment, and is compatible with acitveX components, so it should be possible to use mappoint direcly from it. Is this your intention ?

If it is then (maybe I'm completely wrong here) I should discourage it and make the mappoint application from a popular programming language to ge more support and use the develped program as an API for labview.

I dont want to shoot you in the foot, but it seems reasonable to me. You develop in C# or Delphi or VB or whatever and in fact you develop an API for labview. Working as sutch you get optimal support I think

Sorry if I'm completely wrong hre but please if others have a better idea then please speak and your mouth will go open :) (Flemish proverb)