01-20-2013 01:51 PM
Hello,
I wanted to try out the Gmap .NET in LabView. I cannot see some properties of the object. I have read there are some issues with generic names, and that I need to create a wrapper.
The .NET object can be found here
I can place the .NET map object into the .NET container but I cannot access some of its properities. Can someone please say why and what to do about it ?
Solved! Go to Solution.
01-21-2013 02:17 AM - edited 01-21-2013 02:17 AM
Well I assume you know what Generics are? Bascially any datatype that contains <something>. Unfortunatly I couldn't find a quick documention file anywhere for the GMap API, and I do not plan to install it on my system just to check, but if you have methods that use any generic datatype, LabVIEW can not interface to it. Same for constructors that use generic datatypes.
And the solution is to write a .Net wrapper for those methods and objects that translates between the generic datatypyes to explicit datatypes. It ain't be pretty but adding support for translation between .Net Generics and LabVIEW strict datatypes would be not just some major work for the LabVIEW developers, but a true hassle for the user too, as there would have to be some extra configuration dialog level when trying to use such objects and the necessary knowledge to operate those dialogs would be at least as large as what you need to write those wrappers.
01-21-2013 12:41 PM
@rolfk wrote:
Well I assume you know what Generics are? Bascially any datatype that contains <something>.
No I do not, but that is perfectly OK, Mr. Google will give answers. I have no knowledge of classes, inheritance or genereic properities or methods.
Also there is no documentation for the library. I figured out that there are missing properities based on some tutorials I found (for C# devels) where ppl were accessing properities of an object, that I had a wire to, but the property was missing.
I guess the best way to work this, is to learn Csharp and start from point zero.
Why is the .NET library called .dll ?
01-21-2013 03:15 PM
03-08-2013 04:09 PM - edited 03-08-2013 04:10 PM
Hello, so finally, I found out how to construct generics in LabView without the need of wrapper !
I was trying to do this :
List<PointLatLng> list = new List<PointLatLng>();
So the way to do this in labview is to use methods in mscorelib System GetType method + Activator method
Look in StackOverflow, there it is described for Csharp.
The code in LabView looks like this:
The example posted is making a strong typed generic for .NET Map window, and indeed... it works (it is a route on map) !
07-31-2023 12:48 AM
I have some confusions regarding the Block Diagram code of Bublina that generated a route on a map.
1. What is the .NET Constant wired to the GetType method node?
2. What is the .NET Constant wired to the "to more Specific Class" node?
3. How to place System.Collection.Generic.List method node?
4. How to place PointLatLng constructor node?