03-13-2012 10:16 AM
Hello. I would like to know how to delete elements from a cluster. I got stuck with this problem. There is its own order of each element in a cluster. I tried to initiate an array but it seems like too complicated. In the attached file, I want to obtain only the data from "flow" not "pressure". I try to use array programming but it doesn't work. Would be nice if you help me to fix the file. Thanks
Solved! Go to Solution.
03-13-2012 10:23 AM
You cannot delete elements from a cluster, they are fixed size at runtime. It seems you want to create an array of all values where save=true. This can be done with one simple loop.
03-13-2012 10:25 AM
I'm pretty new with the software. Do you have any suggestions in this case? I would appreciate if you fix my programming in the file. 🙂
03-13-2012 10:28 AM
Try something like this.
03-13-2012 10:30 AM - edited 03-13-2012 10:31 AM
Hi Bombboo,
you consequently don't use autoindexing for loop inputs, do you? I tried to clean up your VI (see attachment), but kept the single steps in separate loops. Christian probably shrinked the BD even more...
Btw. why did you replace an array element by itself (highly Rube-Goldberg)?
03-13-2012 10:43 AM
Thank you so much. Your solution is the way better than my confusing file. 🙂
03-13-2012 11:02 AM
What about if I want to store data into the pressure array too? Do I have to create another loop or it can be done in the same loop as the flow loop?
03-13-2012 11:11 AM
03-13-2012 11:53 AM - edited 03-13-2012 11:53 AM
@Bombbooo wrote:
What about if I want to store data into the pressure array too? Do I have to create another loop or it can be done in the same loop as the flow loop?
Try this, for example. Modify as needed.