LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Openg Get Cluster Element Names__ogtk.vi

it seems doesn't work if cluster contain map or set

yanzhanglin_0-1695646862463.png

 

0 Kudos
Message 1 of 13
(741 Views)

Check if the elements in your cluster constants have non-null labels.

0 Kudos
Message 2 of 13
(732 Views)

yanzhanglin_0-1695647926007.png

 

map cann‘t be null???

 

0 Kudos
Message 3 of 13
(726 Views)

I don't have the OpenG Toolkit, but when I use the built-in functions, it works for me.

0 Kudos
Message 4 of 13
(705 Views)

thank you,but i use lots of OPENG VI,This troubles me

 

0 Kudos
Message 5 of 13
(695 Views)

@yanzhanglin wrote:

thank you,but i use lots of OPENG VI,This troubles me

 


Look inside the OpenG code.  See if you can find where things are going wrong.

0 Kudos
Message 6 of 13
(681 Views)

As far as I know, the OpenG VIs are older than maps and sets and therefore cannot handle maps and sets.

0 Kudos
Message 7 of 13
(678 Views)

I don't know how to fix

0 Kudos
Message 8 of 13
(676 Views)

@UliB  ha scritto:

As far as I know, the OpenG VIs are older than maps and sets and therefore cannot handle maps and sets.


This is true, but on the other hand the Label.Text property is rather basic, implemented in the Control class.

And Maps are undoubtedly controls.

Paolo
-------------------
LV 7.1, 2011, 2017, 2019, 2021
0 Kudos
Message 9 of 13
(648 Views)

Hi,

 

This question has been asked and resolved many times already like in this post:

https://forums.ni.com/t5/LabVIEW/Get-the-name-of-each-element-in-my-cluster-in-a-1D-array-of-9/m-p/4...

 

Simply use the VIs present in the Data Type Parsing palette:

 

raphschru_0-1695651876392.png

@ pincpanter

Not that simple, if you look at the implementation of "Get Data Name from TD__ogtk.vi", the Pascal string containing the name of the data starts at different offsets in the type descriptor, depending on the data type. The Map/Set case is clearly not implemented (at least in the last OpenG version for LV2021, which I have tested).

 

Regards,

Raphaël.

0 Kudos
Message 10 of 13
(637 Views)