LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Openg Get Cluster Element Names__ogtk.vi

yanzhanglin_0-1695653443930.png

 

 

lots of variant Vi doesn't work

0 Kudos
Message 11 of 13
(591 Views)

@pincpanter  ha scritto:

@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.


Aha, I see my mistake: the OpenG vi receives a value as input (as a Variant) and not a reference.

Hence to do further processing it's mandatory to identify the data type of each member.

yanzhanglin, unfortunately you need to replace all those OpenG vi's with new ones that take into account the existence of Maps.

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

@UliB wrote:

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


Make that "a lot older". Maps and Sets were introduced in 2019 I believe. The OpenG VIs were released in the timeframe of 2003 to 2008 or so and have since only received minor bug fixes sometimes. You could say it is an attest to the quality of the code that they are still heavily used after 20 years with only minor updates.

 

Adding Maps or Sets would not be impossible but the library doing the heavy lifting for this (the OpenG LabVIEW Data Library from Mr. J.P. Drolet) is a rather involved one. It's not a trivial thing to do and so far nobody seemed to be compelled enough to spend time on that and release it to the community for free.

Rolf Kalbermatter
My Blog
0 Kudos
Message 13 of 13
(535 Views)