LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

get control values

I have a VI (callee) which is being called from a main vi (caller).  The callee has 2 doubles to return to the caller.  I'm trying to use a property node to "Get All Control Values".  According to the error dialog box that pops up when I try to attach something to it, it indicates the values are a 1D array of clusters.  I've been trying everything to put the values into something I can read.  I don't get it.
0 Kudos
Message 1 of 2
(2,488 Views)

Jim,

The "Get All Control Values" invoke node returns an array of clusters, each cluster containing "name," "type desc," and "flat data." Wire the array to a For loop, inside the loop place an Unbundle By Name, and wire the "flat data" string to the "Unflatten From String" function. Wire a constant of type Double to the "type" input of the "Unflatten From String" function.  Wire the output of this function to the border of the For loop and you will have an array of doubles. 

Allen

0 Kudos
Message 2 of 2
(2,479 Views)