LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How does array obtained in a for loop?

Hi
I went previosly my question as below.

"Firstly thanks for help,
I want to obtain array from the y value calculated in the for loop .at every loop, and in same for loop these different arrays are operated.so with one for loop the calculates are obtained.

Thanks"

Now could you give me one sample program?
Thanks a lot.
0 Kudos
Message 1 of 4
(2,819 Views)
I want to help, but i dont understand what you want.

Please tell me what inputs you have, and what outputs you want (sizes of arrays), and an outline of the calculation. Then i will try and make the diagram for you.

Kim
0 Kudos
Message 2 of 4
(2,819 Views)
Hi
soory bad english.So I doesnt understood clearly.
My problem is
İn the for loop with 9, I am calculating y scalar value.at every iteration,I want to obtain 1-d array from these y values.In same for loop, obtained array will be input of 2-d waveform graph.

For example
k=2*a
a=[4;5; 9; 3; -2; -4; 8]

y=sum(k)/7

array y

b=[0;1;2;3;4;5;6;7;8]

obtain 2-d waveform graph according to array y and array b.
I hope you will help
Thanks
0 Kudos
Message 3 of 4
(2,819 Views)
I have created a vi (in LV 6.0) to show what i think you have asked for. Let me know if i am wrong, and how, and i will try again.

I hope this helps..

Kim
0 Kudos
Message 4 of 4
(2,819 Views)