From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
01-19-2010 03:26 PM - edited 01-19-2010 03:28 PM
Hello all
When we have to run twice a For Loop to perform "almost" the same operation (with just a slight difference), what is the best way to do that?
The real operation that occurs inside the loop is not that easy. I just used this example to explain my problem. The question is: using the i terminal to select a case structure is the best choice?
Thanks
Dan07
Solved! Go to Solution.
01-19-2010 07:49 PM
01-19-2010 09:53 PM
Sorry, my computer crashed whe I tried to embed the picture above. Since I prefer to show it embedded, I post again.
01-20-2010 02:50 PM
Yes, you are right about your suggestion. But, my code is not that easy. I run a whole array of values over a for loop twice and inside this for loop there is another for loop getting value by value of the array and doing some calculations. I will work in my code and as soon as I have it finished I will send you.
Thanks
01-20-2010 03:49 PM
01-21-2010 12:59 AM
hi
you can use state mechine concept . have a look at the VI attached.
01-21-2010 11:23 PM
Hello
Could you save the file in the 8.5 version?
Thanks
01-22-2010 03:23 AM
01-28-2010 12:53 AM - edited 01-28-2010 12:54 AM
I modified the State Machine just a little and it is working perfect.
Thanks