From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
03-07-2012 08:42 AM
Hi I got a problem with storing data of cluster into the array. The input to the case structure is a cluster of 4 different elements. I need to plug all generated clusters in the array output, as you can see the error in the attached file. With the lower one, I tried to use "bulid array" but it sends only the last cluster data to the array, so I think it is probably not working.
Could you please try to replace something in the file for any suggestion 🙂
Thank you
03-07-2012 08:47 AM
look up shift registers, used to feed the output of the previous loop back into the current loop. great for building arrays
hope it helps
03-07-2012 08:51 AM - edited 03-07-2012 08:52 AM
Also look into autoindexing. That will fix many of your problems as LV automatically builds and indexes into arrays for you. You're working too hard.
Mike...
03-07-2012 08:53 AM
Could you please show me the solution where to add shifts register in the file?
Thanks
03-07-2012 09:03 AM
I would suggest searching the ni website for them so you understand how they work before trying to use them, it will make you life easier. To enable a shift register or auto-indexing, where a wire leaves a loop (for or while) right click on the square and choose enable auto-indexing or shift register, if you select shift register it will ask you to place it on the other side of the loop. then you need to wire the shift register in again. As i say look for the tutorials, it will make it much easier
03-07-2012 09:18 AM
@Akiel wrote:
look up shift registers, used to feed the output of the previous loop back into the current loop. great for building arrays
hope it helps
But be careful there. Building arrays in loops can lead to memory issues. Be sure your array is predefined with a known number of elements, and that it can not keep growing out of control for long periods of time.
03-07-2012 09:23 AM
true, it does open another set of problems hence the advice to understand what is happening before using them, but they are a reasonable solution to the problem.
I add to the research list optimising labview search as there are a number of good documents on controlling the memory usage of labview
03-08-2012 02:45 AM
Hi Bombbooo,
You should think about attending a LabVIEW Class -> ni.com/training
Christian
03-08-2012 02:49 AM
labview core 1 and core 2 would be a real help too you
03-08-2012 07:28 AM