LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Need information about the "Get All Control Values" method

From a top-level VI, I need to get a list of controls/indicators that are on a sub-vi. I need to know the type of data it handles and feed it values based on the data type and range.

I was looking at the "Get All Control Values" method and it seems to have a lot of information, but I can't find any information about the data supplied in it's cluster - especially the 1-D array. The online help's information wasn't sufficient.

Does anyone know what the cluster values are? particularly the 1-D array. or does anyone know of a better way to accomplish what I mentioned above?

Thanks in advance!
Chuck
0 Kudos
Message 1 of 2
(2,558 Views)
Well it is quite simple!! The first is the name of the control, the second is the type descriptor as it is also returned by the Flatten to String function and the third is tha actually flattened data.

The format of the type descriptor is documented in the LabVIEW Reference Manual and also in an Application Note by National Instruments but it is not a trivial task to parse this as it is really a recursive data structure.

On OpenG www.OpenG.org is a "lvdata" library with heavy work by Jean-Pierre Drolet inside the OpenG Toolkit, which does this and also allows to retrieve and assign data through variants from the flattened string.

Rolf K
Rolf Kalbermatter  My Blog
DEMO, Electronic and Mechanical Support department, room 36.LB00.390
Message 2 of 2
(2,558 Views)