05-16-2012 07:50 AM
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
05-16-2012 09:42 AM
What does the error message say?
05-17-2012 03:36 AM
05-21-2012 04:02 AM
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
05-21-2012 10:03 AM
05-22-2012 03:26 AM
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.
05-24-2012 04:50 AM
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
05-24-2012 04:53 AM
here is two tracking I made
thanks for your futur helping
05-24-2012 09:12 AM
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
05-28-2012 03:02 PM
Hi guys,
I need to save a image of GMapControl (Static map picture).
Someone can help me?
Best Regards,
Diego Carvalho.