07-21-2016 09:12 AM
Hi there,
I want to fill my array depending if the radiobutton is clicked.
But the array does not grow.
Here is part of my VI.
07-21-2016 09:20 AM
Hi Xeno,
which "array" do you want to grow?
In general: to "grow" an array you need an older version of the array data, then you attach new values (with BuildArray), then you store the new data set in a wire. (This is called THINK DATAFLOW!)
General hint 2: You store data in wires or shift registers.
This is pretty basic LabVIEW stuff about array handling - did you take the free online resources to learn LabVIEW?
07-21-2016 09:28 AM
I want to grow append array.and also that the filenames are correctly transfered into the array, but thanks for the hint.
07-21-2016 09:32 AM
You'll need to maintain the array somewhere. You'll want to use either a variable of some time or a shift register. Typically, I'd prefer the latter.
You'll also want to get into the habit now of creating an icon for subVIs you create. The default icon with a 1 is something that will plague you as you start to develop more complex applications.
07-21-2016 09:53 AM
I understand what you mean, but I have make nearly a screenshot of the whole diagram and hopefully you will see my problem.
07-21-2016 10:09 AM
07-21-2016 10:11 AM - edited 07-21-2016 10:14 AM
Please stop attaching screenshots and attach the actual VI. Thanks!
Most of the code makes very little sense.
07-21-2016 10:11 AM
Which problem are you wanting us to see?
You still aren't using shift registers/variables?
You still have default icons?
You have wires running behind your structures?
They're all easy to fix.
1) Create a shift register to maintain your array.
2) Double click on the icon and edit it
3) Right-click on the wire and choose "clean up wire"
07-21-2016 11:44 AM
07-22-2016 02:41 AM - edited 07-22-2016 02:43 AM
Hey there,
thank you all for your help, I have found a solution. It was yesterday too hot, so my brain was a little bit damaged:)
Here is my vi:
Sry for asking again, but now I have a little problem with the multicolumn listbox, where I want to add string values depending on the radiobutton which works, but no string is transfered into the box.
And the gui: