04-27-2015 07:38 AM
Is it possible to execute all the iterations of the inside for loop for each iteration of the outside for loop? I have attached a screenshot of my program if it helps. If it is possible could you tell me how to do it plz?
Solved! Go to Solution.
04-27-2015 07:51 AM
What do you mean by "all the iterations"? The way you wrote it, it'll execute the inner For loop "Section Number" times for each zero to "MAX L".
04-27-2015 08:14 AM - edited 04-27-2015 08:15 AM
I have 30 sections and the max L is 40. I want to get sum of the 30 sections for each 0-40 L and then to plot all the sums. The program doesnt work. It gives me nothing.
04-27-2015 08:42 AM
What do you mean by "nothing"? The values are 0? The outputs do not show anything?
04-27-2015 09:10 AM - edited 04-27-2015 09:11 AM
Yes the outputs do not show anything. There is something wrong with it but i cant find the problem. Could you help?
04-27-2015 09:17 AM
Activate highlight execution and retain values and you might be able to spot what goes wrong. E.g. if the array is empty it will calculate 0 times.
Else it'll be alot easier to help you if you post the VI with some typical values set as Default values.
/Y
04-27-2015 09:33 AM
One thought I have is that I think you want those feedback nodes reinitializing for each iteration of the outter loop. Personally, I would change them to be shift registers (it would clean up your diagram a little bit).
04-27-2015 09:40 AM - edited 04-27-2015 09:41 AM
Ok. I attcached the VI. My system has 300 sections. The formula node provides me the power of each section. With the inner loop I get the power for all the sections. The sum is the power of all the sections together. One of the input values in the formula node is the "L". I want the program to calculate all the power sums for all the "L" different values.
04-27-2015 10:03 AM
crossrulz your suggestion worked. Thx a lot.