LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Invoke node - Get all control values - Unflatten string array

I'm using invoke nodes to run a VI and return two indicator values. The indicators are a 1-D array of strings and a 2-D array of strings. Is there any way to unflatten and reconstruct these arrays? I will attach my code.
'Test.vi' is the main VI. Thanks!
0 Kudos
Message 1 of 3
(2,958 Views)

Hi,

Use the 'Unflatten from String' function from the Advcanced >> Data Manipulation palette. For the 'Type' input, you'll need to wire the type of the indicator. The best error-free way to do this is to right-click on your control/indicator (for which the flattened data it is), create a constant, and then wire this constant to the 'type' input.

This should unflatten the data for you. Right-click on the 'Value' output of the above function and create an indicator to see the values.

See attached diagram.

Hope this helps.

Khalid

Message 2 of 3
(2,958 Views)
Great; thanks very much for your help.
0 Kudos
Message 3 of 3
(2,958 Views)