LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

i want use google map api in VI . i tried so mutch to do it.i used google earth plugin and google static map but i need only google map api .

Solved!
Go to solution

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

0 Kudos
Message 31 of 134
(3,794 Views)

What does the error message say?

0 Kudos
Message 32 of 134
(3,788 Views)
Hi cheers if you use 100 ~ 300 mili s delay in your for loop , this error will solved . Garousi
M.Garousi
0 Kudos
Message 33 of 134
(3,776 Views)

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

0 Kudos
Message 34 of 134
(3,759 Views)
You still haven't told us what the error message actually says.
0 Kudos
Message 35 of 134
(3,751 Views)

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.

0 Kudos
Message 36 of 134
(3,743 Views)

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

0 Kudos
Message 37 of 134
(3,727 Views)

here is two  tracking I made

 

thanks for your futur helping

0 Kudos
Message 38 of 134
(3,726 Views)

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

0 Kudos
Message 39 of 134
(3,715 Views)

Hi guys,

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

Someone can help me?

Best Regards,

Diego Carvalho.

0 Kudos
Message 40 of 134
(3,687 Views)