LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Dynamically append 2D array to Multicolumn ListBox

Solved!
Go to solution

Here you go inspector!,.. I'd like to see what you have in mind...

0 Kudos
Message 11 of 14
(143 Views)

Sorry, I have no idea what this is supposed to do.

 

  • You have a cluster that never changes and that only gets defined if the outer case is false. If the VI is run first with write=true, all cluster values will be zero until the first time the write=false case executes. Since it never changes, maybe it should not even be in a shift register, but just a diagram constant.
  • It this is supposed to be an action engine, why are none of the connectors assigned?
  • Cases 1, 2, 3 only differ by the unbundle. Why triplicate all that other code?
  • Can you explain in simple words what the VI should do based on input. What are possible inputs (# of rows, values, etc.)
  • What should happen if the first row element is not 1, 2, or 3?
  • What is the max size of the input and output arrays?
  • Is the number of rows fixed for each group number, but can differ for different groups?
  • so. many. questions.
0 Kudos
Message 12 of 14
(124 Views)
Solution
Accepted by topic author SolPS

Assuming each group has a fixed number of rows as defined in the diagram constant (8,6,6 here), here's what you could do.

 

altenbach_0-1731521642317.png

 

Since we use a globally initialized feedback node, this will need to be called from a running toplevel. Example included.

 

0 Kudos
Message 13 of 14
(106 Views)

Thanks Altenbach. The code you attached was very helpful. Much appreciated!

0 Kudos
Message 14 of 14
(94 Views)