05-15-2012 05:19 AM
Can we initialize a loop(for,while or shiftregisters) with a value other that zero??
Suppose if we want our loop to start iteration with a value greather than zero,how can we configure it??
05-15-2012 05:21 AM
Yes you can do that for shift register (also feedback nodes). Whatever value you want to make it as initial value make it as a constant but what do you mean by Initializing for loop and while loop?
05-15-2012 05:24 AM
that means setting an initial value like:-
for(i=2;<10;i++)
{
}
05-15-2012 05:57 AM
You cannot directly do it here but you can indirectly do by this way. Give any value you want to initialize before the for loop the same case with the while loop.
Good luck
05-15-2012 07:29 AM
works fine.Thanks
05-15-2012 08:58 AM - edited 05-15-2012 08:59 AM
@P Anand wrote:
You cannot directly do it here but you can indirectly do by this way. Give any value you want to initialize before the for loop the same case with the while loop.
Good luck
How is this supposed to work without a loop count or auto-index terminal? Unless LV2011 does things differently than 2010.
05-15-2012 09:32 AM
05-15-2012 09:32 AM
05-15-2012 10:17 AM
Perhaps he is, but not all OPs would be. I'm just used to giving people something that works and not broken.
05-15-2012 11:10 AM
Good. Thats my style. 🙂