spacetoon34 Posted January 14, 2007 Report Share Posted January 14, 2007 Hello, I have faced a problem with For Loop by the attatched file I want the result OUTSIDE the loop either booleen or number NOT INSIDE help me please, thanx, Download File:post-6479-1168807787.vi Quote Link to comment
LAVA 1.0 Content Posted January 14, 2007 Report Share Posted January 14, 2007 I have faced a problem with For Loop by the attatched fileI want the result OUTSIDE the loop either booleen or number NOT INSIDE I didn't exactly understand what you are asking for. Please describe in more detail what do you want to do with your VI and what would you expect as a result. Then we can help you. Quote Link to comment
spacetoon34 Posted January 15, 2007 Author Report Share Posted January 15, 2007 hello, This is a ploblem i have faced when i implement any program contain this problem, the problem is a for loop is doing a function or any thing else but i want the result of this function outside the loop to use it for another thing , but it said that there is an error that the result or output of my function when ejected outsid the loop it converted from number to 1-D array and i want the number not arry to diplay it or process it. How can i solve it. pleeeeeeeeeeeease help. thanx, Quote Link to comment
Albert Geven Posted January 15, 2007 Report Share Posted January 15, 2007 hello,This is a ploblem i have faced when i implement any program contain this problem, the problem is a for loop is doing a function or any thing else but i want the result of this function outside the loop to use it for another thing , but it said that there is an error that the result or output of my function when ejected outsid the loop it converted from number to 1-D array and i want the number not arry to diplay it or process it. How can i solve it. pleeeeeeeeeeeease help. thanx, rightclick on the output of the loop and disable indexing is what you need. please try to read a book on LV. Jim Krings book covers all this. Quote Link to comment
spacetoon34 Posted January 15, 2007 Author Report Share Posted January 15, 2007 Thank u very much for help Quote Link to comment
LAVA 1.0 Content Posted January 15, 2007 Report Share Posted January 15, 2007 Thank u very much for help By the way, that program of yours doesn't make any sense. Whas this part of some real program of yours? Quote Link to comment
spacetoon34 Posted January 16, 2007 Author Report Share Posted January 16, 2007 i thank you for your help but the program does not display the output in the indicator that outside the loop WHY ????? and this is a new problem , how can i solve it??? Quote Link to comment
Mellroth Posted January 16, 2007 Report Share Posted January 16, 2007 i thank you for your help but the program does not display the output in the indicator that outside the loopWHY ????? and this is a new problem , how can i solve it??? HI, didn't the suggestion from Albert and others solve your issues? If I edit the Problem.vi as suggested, I get the result outside the loop (note that only the last value is available). On the other hand, if you want all calculated values available after the loop has finished, then you'll have to use array indicators instead of scalars. Indexing output = array to display = all valuesnon-indexing output = scalar to display = only last value If this VI is part of a larger program, I think you will have to explain a bit more want you want to do, before you can get any more help. /J Quote Link to comment
spacetoon34 Posted January 16, 2007 Author Report Share Posted January 16, 2007 I test this suggestion and solve my problem and i understand thank u Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.