09-25-2023 09:52 AM
lots of variant Vi doesn't work
09-25-2023 10:04 AM
@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.
09-26-2023 02:49 AM
@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.