LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

problem using a third party .net control, iGrid from 10tec

I am actually evaluating an interesting third party .net control : the iGrid.net control from 10tec (http://www.10tec.com) to represent my test result. (the control can be download for free)
 
My problem is that i can't see in Labview all of the methods or attributes that the control expose. For example (see the attached vi), if i want to populate the grid with data, from the main igrid interface, i got the cells (of the grid) interface which expose the method get_item(N° Row, N°Col) to read a particular cell or the set_item(N° Row, N°Col)  to write to a particular cell. In LabVIEW i am able to see and to use the first method but i am not able to see the second method. Why ?
 
I have ask an engineer of 10tec and they answer me this :
 

And thanks a lot for your interest in our control!

 

(1) My problem is I doesn't see the cells(row, col) matrix property ?! (see the attach picture).

 

As I can guess from your screen shot, LabView does not correctly manage (display) index properties. In core all properties are replaced with corresponding methods during compilation. These methods has names get_[PropertyName] and set_[PropertyName]. The first one is used to access a property value, the second one to assign property value. The metadata of an assembly just stores the name of the property and the methods which are used as the property’s accessors. In your case, you should use the get_Item method (it corresponds to the Item property of the iGCellCollection class) which will return you a cell by its row and column index or key:

 

fGrid.Cells.get_Item(rowIndex, colIndex)

 

Has someone got an idea

 

thank you

 

derek

0 Kudos
Message 1 of 4
(4,104 Views)

Hi Derek,

Is it possible to get an evaluation copy of the control  from the company/you so we may reproduce the problem? Also, what version of LabVIEW and .NET are you using?

Regards,

Ankita

0 Kudos
Message 2 of 4
(4,089 Views)
The proper way to do this is to obtain a reference to a grid cell object like you did in the while loop and then set the value property of the grid cell object to the desired value.

To do this, drop the To Object.vi (vi.lib\Platform\dotnet.llb\To Object.vi) on your diagram, wire the value that you with to display in the cell to the Anything input of that VI and wire the .NET Object output into the value property of the grid cell.

Hope this helps,

Volker
0 Kudos
Message 3 of 4
(4,087 Views)

Thank you Volker for your ideas. Now it works fine.

Hello Ankita. You can get a copy (evaluation copy) of the .net control at http://www.10tec.com. There are also an ActiveX control but the .net has much capability. The product name is iGrid.net. You will see this product is really amazing and it's not expensive for all his possibility it offers. I was searching on the web for a sort of control (all in one lost cost control) to configure my test system and to represent my test data when i have see this control. Like i have some problems to make it run in LabVIEW, i have ask the 10tec team and they are very interested to make it work for the LabVIEW community (LabVIEW example library or at www.lavag.org). They doesn't know LabVIEW but they will download an evaluation copy and try to make some example work in LabVIEW. So if never you got some free time on any body else, you can participate. I give you the name of developpers working on it an 10tec : Serge Gorbenko and Igor Katenev. They can be contact on the support email : support@10tec.com

Derek

 

0 Kudos
Message 4 of 4
(4,075 Views)