07-05-2013 09:13 AM
hi
i want to stop while loop in specific condition. it is a part of my project.
for example i want to stop while loop after the i is 12. i can do it but the problem is that while start again from 0 after the i is 12. i want campletely stop it after the i=12 that i never change
i attach a pic to clear.
thank you so much.
Solved! Go to Solution.
07-05-2013 09:39 AM
07-05-2013 10:09 AM
hi my dear Dennis_Knutson
thank you so much for your help i dont understand that run continuously is reason.
i hope dont repeat this silly work
thank you for your answer
07-05-2013 10:14 AM
07-05-2013 10:26 AM
Oh, I think the OP wants to SAVE the twelve in a shift register. Like this:
Of course there is no way to make a while loop iterate 0 times so we would need a for loop and a feedback node set to "initiallize on compile or load" like thus.
07-05-2013 10:27 AM
but a question remain that if i want while loop stop but want to chek some other function with control number
What should I do?
07-05-2013 10:54 AM
@hamedi wrote:
but a question remain that if i want while loop stop but want to chek some other function with control number
You need to be much more specific. What is "other function"? What is "check"? Is the "check" part of the termination condition or should it occur after the loop stops? Where does the "control number" come from?
hamedi wrote:What should I do?
Use LabVIEW.
07-05-2013 10:55 AM
07-06-2013 03:07 AM
dear Dennis_Knutson and other friends
my is problem that want to use each value in while loop, and fill a matrix with them.
i want to creat a 128*128 matrix that each element of it is depended to i and j.
and after the matrix is full i want to use it.
but i can't do this.
i attached my project.
thank you for help
07-06-2013 07:38 AM - edited 07-06-2013 07:39 AM
Use a FOR loop inside of a FOR loop. Use autoindexing to build the 2D array.