NI Home > Community > NI Discussion Forums

LabVIEW

Showing results for 
Search instead for 
Do you mean 
Reply
Member
pacotisme
Posts: 55
0 Kudos

Re: Google map API

hi everybody

 

I am currently doing a program to display a map labview via several "red marker" in order to obtain a tracking of GPS data.
At the beginning I made a program for a single point (red marker) (with its latitude and longitude) on google map, my program worked.
Then I wanted to add other points on the map, so I changed my basic program by creating a for loop to display several points on google map, I put two arrays correspond to latitudes and longitudes.
Then I created two arrays, an array for the longitudes and an array for the latitudes to read a measurement file automatically without having to complete the array by hand.
Until here my main program is working but I have an issue :

Firstly when I'm using my main programe with "Highlight execution" my program works for many points
But when I run my program without "Highlight execution" , it's working juste for at least 20 points and if I add a file with so many points ( more than 20 points ) I have an error message

So I don't know why....

Someone could help me?

 

cheers

 

 

please find attached the error message

Knight of NI
RavensFan
Posts: 15,688
0 Kudos

Re: Google map API

What does the error message say?

Member
Garousi
Posts: 44
0 Kudos

Re: Google map API

Hi cheers if you use 100 ~ 300 mili s delay in your for loop , this error will solved . Garousi
M.Garousi
Member
pacotisme
Posts: 55
0 Kudos

Re: Google map API

hi Girousi

 

""you use 100 ~ 300 mili s delay in your for loop , this error will solved""

 

I have already tried this solution but without sucess.... :/

 

 

have you got an other suggestion?

 

 

cheers

Knight of NI
RavensFan
Posts: 15,688
0 Kudos

Re: Google map API

You still haven't told us what the error message actually says.
Member
pacotisme
Posts: 55
0 Kudos

Re: Google map API

hi my LabVIEW is in deutch language , so I have tried to translate to english the erroe message:

 

information on invoking just-in debugging
instead of this dialog box you will find at the end of this release.

Exception Text ************** **************
System.InvalidOperationException: Collection was modified. Enumeration operation may not execute.
   at System.ThrowHelper.ThrowInvalidOperationException (Exception Resource resource)
   at System.Collections.Generic.List `1.Enumerator.MoveNextRare ()
   at System.Collections.Generic.List `1.Enumerator.MoveNext ()
   (g Graphics) at GMap.NET.WindowsForms.GMapControl.OnPaintEtc
   at GMap.NET.WindowsForms.GMapControl.OnPaint (PaintEventArgs e)
   at System.Windows.Forms.Control.PaintWithErrorHandling (PaintEventArgs e, Int16 layer, Boolean disposeEventArgs)
   at System.Windows.Forms.Control.WmPaint (Message & m)
   at System.Windows.Forms.Control.WndProc (Message & m)
   at System.Windows.Forms.ButtonBase.WndProc (Message & m)
   at System.Windows.Forms.Control.WndProc (Message & m)
   at System.Windows.Forms.UserControl.WndProc (Message & m)
   at System.Windows.Forms.Control.ControlNativeWindow.OnMessage (Message & m)
   at System.Windows.Forms.Control.ActiveXImpl.System.Windows.Forms.IWindowTarget.OnMessage (Message & m)
   at System.Windows.Forms.Control.ControlNativeWindow.WndProc (Message & m)
   (IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam) at System.Windows.Forms.NativeWindow.Callback


************** Loaded Assemblies **************
mscorlib
    Assembly Version: 2.0.0.0.
    Win32 Version: 2.0.50727.4961 (win7RTMGDR.050727-4900).
    CodeBase: file :/ / / C :/ Windows/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll.
----------------------------------------
NationalInstruments.LabVIEW110
    Assembly Version: 8.50.11.24514.
    Win32 version: 11.0.0f2.
    Code Base:
----------------------------------------
msvcm90
    Assembly Version: 9.0.30729.6161.
    Win32 version: 9.00.30729.6161.
    Code Base:
----------------------------------------
System
    Assembly Version: 2.0.0.0.
    Win32 Version: 2.0.50727.4962 (win7RTMGDR.050727-4900).
    CodeBase: file :/ / / C :/ Windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll.
----------------------------------------
GMap.NET.WindowsForms
    Assembly Version: 1.5.5.5.
    Win32 Version: 1.5.5.5.
    CodeBase: file :/ / / C :/ Users / student / Desktop / gmap_mk / Map / GMap.NET.WindowsForms / GMap.NET.WindowsForms.dll.
----------------------------------------
System.Windows.Forms
    Assembly Version: 2.0.0.0.
    Win32 Version: 2.0.50727.4961 (win7RTMGDR.050727-4900).
    Code Base:
----------------------------------------
System.Drawing
    Assembly Version: 2.0.0.0.
    Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900).
    CodeBase: file :/ / / C :/ Windows/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll.
----------------------------------------
GMap.NET.Core
    Assembly Version: 1.5.5.5.
    Win32 Version: 1.5.5.5.
    CodeBase: file :/ / / C :/ Users / student / Desktop / gmap_mk / Map / GMap.NET.WindowsForms / GMap.NET.Core.DLL.
----------------------------------------
System.Configuration
    Assembly Version: 2.0.0.0.
    Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900).
    Code Base:
----------------------------------------
System.Xml
    Assembly Version: 2.0.0.0.
    Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900).
    CodeBase: file :/ / / C :/ Windows/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll.
----------------------------------------
Accessibility
    Assembly Version: 2.0.0.0.
    Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900).
    CodeBase: file :/ / / C :/ Windows/assembly/GAC_MSIL/Accessibility/2.0.0.0__b03f5f7f11d50a3a/Accessibility.dll.
----------------------------------------
System.Web.Services
    Assembly Version: 2.0.0.0.
    Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900).
    Code Base:
----------------------------------------
jtpadbv2
    Assembly Version: 1.5.5.5.
    Win32 Version: 2.0.50727.4962 (win7RTMGDR.050727-4900).
    CodeBase: file :/ / / C :/ Windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll.
----------------------------------------
System.Windows.Forms.resources
    Assembly Version: 2.0.0.0.
    Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900).
    Code Base:
----------------------------------------

************** JIT Debugging **************
To the JIT debugging (just-in-time) to activate, must be in the
Application configuration file or the computer
(Machine.config) jitDebugging the value in the system.windows.forms section are defined.
The application must be compiled with debugging enabled.

For example:

<configuration>
    <system.windows.forms jitDebugging="true" />
</ Configuration>

When JIT debugging is enabled, any unhandled
Exceptions to the JIT debugger sent on the
Computer is registered and handled by this dialog box.

Member
pacotisme
Posts: 55
0 Kudos

Re: Google map API

Hi
I really need your help, because If I'm using my main program with "Highlight Execution " my program works and I can see the tracking of my GPS data but it takes a long time to be displayed each point

 

here are two  tracking I made , the green tracking there are at least 300 points and the red tracking there are at least 200 points, with Hight execution wich point by point , It take me at least 40 minutes for to display the whole points, , so image if I have 1000 points to display

Member
pacotisme
Posts: 55
0 Kudos

Re: Google map API

here is two  tracking I made

 

thanks for your futur helping

Member
dcarvalho86
Posts: 4
0 Kudos

Re: Google map API

Hi Garousi,

I saw and download your project to use de Gmap dll in Labview it's great.
But now I need to save a picture (.BMP) of map select area is it possible?

Best regards,

 

Diego Carvalho

Member
dcarvalho86
Posts: 4
0 Kudos

Re: Google map API

Hi guys,

I need to save a image of GMapControl (Static map picture).

Someone can help me?

Best Regards,

Diego Carvalho.