07-18-2006 06:14 AM
07-18-2006 06:22 AM
07-18-2006 06:42 AM
07-18-2006 06:44 AM
This sounds strange. Could you post the vi? I assume you are trying to do something and have some code.
As always - without deeper knowledge of what you're trying to accomplish, it's not that easy to help.
07-18-2006 06:54 AM
07-18-2006 06:59 AM
07-18-2006 07:05 AM
07-18-2006 07:18 AM - edited 07-18-2006 07:18 AM
Message Edited by Johan.svensson on 07-18-2006 07:18 AM
07-18-2006 07:30 AM
Well, actually there are several possibilities:
1. You right click the orange square where the double value gets out of the loop and select "enable indexing". This results in an array of all values you get while this inner loop is running.
2. You add a shift register to the outermost loop and use the "build array" function after the inner while loop. This results in an array of the last value after the inner while loop has stopped.
3. You combine both ways described above. Then you get a 2D-array.
You can see this in the attached vi. In every case you have to be aware of what happens with the memory. In case 2 and 3 the array grows steadily. This could leed to problems, so you have to take care to empty it, if possible.
Now it depends on what kind of data you need.
07-18-2006 08:38 AM
Thanks!
Very good example!
Understand and got it to work... Just didn't think of that soloution...