03-11-2010 02:48 AM
Hi...
I need to display the numbers as 1, 2, 3,.. continously using for loop at every iteration(i.e out of the loop by using wires). I generated numbers 1 2 3... using feed back node.. i can read the final value after the last iteration of the for loop.
i wired an indicator out of the for loop. that indicator displays the value as 4 if the for loop count as 4. I couldnt display 1 2 3 4 using a element indicator at every iteration..
i am in a situation to read the value of the variable at every iteration out of the loop. please help me out fromthis regard..
Thanks in advance..
Solved! Go to Solution.
03-11-2010 02:51 AM
That's data flow. No wires leaving a loop will be updated until the loop terminates. If you want to update the display while the loop is running, you need an indicator in the loop or you need to use some mechanism to transfer the data out of the loop (like a queue for instance).
03-11-2010 03:03 AM
Is this you talking about
03-11-2010 03:22 AM
03-11-2010 03:24 AM
03-11-2010 03:33 AM
Actually, I am programming for the multiplication of two, 2-D array.
I need to select the particular code to perform the action using case structure. thats why i am in need to give the select value as 1,2,3 to a case selector switch,thereby i complete the task.Do u got my point?
thanks for the reply
03-11-2010 05:16 AM
And how you solved it?
03-11-2010 05:44 AM
In my prblm of implementing for 2d array, i am calling the 1D Array multiplication vi as a function. I had problem in the feedback node i used. Can u give me some ways to solve this problm?
Thank you03-11-2010 10:39 PM
Hi.. I am implementing the 1D array multiplication. In that, i ve to create values as 1, 2,3 etc with some time delays continously. This value is to be applied for the case structure which will be executed according to the value which is applied into it.
I had designed a structure for this. I am having one problem in this. i used a feedback node in it. While the vi executes for the second time,the feedback node doesnt starts from the value of 0 instead it starts from the value where it stops at the time of first execution.How to clear the value of the fedback node at the end of execution?This is myquestion.
I had attached the structure.please look into it and give a good suggestion..
thank you in advance.
03-11-2010 10:59 PM
Wire a value into the initializer terminal of the feedback node.
You may need to right click on the feedback node and move the initializer out 1 loop. But try it out and look in the help file for feedback nodes for more details.