06-17-2014 03:42 AM
Hi
I want to create an array. which made by up coming values from a multioication. Because whenever i am taking values in array it replace old value at index 0. and i want to set coming value at next index and so on.
Plz help me.
Thanks
Solved! Go to Solution.
06-17-2014 03:49 AM
Please show the code that you have developed.
06-17-2014 04:00 AM
This is the portion. here in that array i want values. And I am attaching my vi file.
06-17-2014 05:14 AM
If you have marked the above post as a solution you are not going to get much of a look. Can you get the data inside a loop and do your manupulation inside the loop .
06-17-2014 06:48 AM - edited 06-17-2014 06:54 AM
Welcome to the forum abhishek24121985!
I believe you overused "concatenating arrays" primitive. For the suggested solution below you can also use the feedback node, but, IMO, the shift registers are better for understanding the thing.
Sugggestion for the "next time". Nobody can run your example, unless they have the approriate file. You can make your VI standalone in fews steps:
- by moving the "read from spreadsheet" outside the loop
- generating the "all rows" by running th VI
- changing the "all rows" to control and removing the "read from spredsheet"
- saving the values in "all rows" to default
This way everybody, who opens your VI, can run it with the data you see.
06-17-2014 07:57 AM
Actually sir as u can see in image 20140617_180554.jpg i want to take data in array of numeric control. but as in 2.png, 3.png its only going on first index of array.
06-17-2014 08:02 AM
Ok, so if alpha is a 1D-array and D is a scalar, what is the resultsof the alpha*D? IMO, it is a 1D array. Now, do you want to collect all the alpha*D 1D-arrays in another array? I.e. in 2D array?
06-17-2014 08:03 AM
yes sir
06-17-2014 08:07 AM - edited 06-17-2014 08:08 AM
Ok, so my suggestion in Message 5 works for this too. Just increase the size of the Empty Array and you are good.
Edit:
06-17-2014 08:10 AM
I think you are over-complicated the code. Post an isolated example of your code for suggestions.