03-23-2010 07:43 AM
This will do:
A + 1, then
B + 1, then
C + 1, then repeat until stopped.
Is this what you are after????????
03-23-2010 07:51 AM
Hi Lucither,
thanks for your advice, but i intend to 2 of +1 and 1 of -1.
Hi Mike,
there will be 3 variables. 2 of which i intend to add 1 and 1 to subtract by 1.
best,
MC
03-23-2010 08:08 AM - edited 03-23-2010 08:12 AM
This will first:
A - 1, then
B + 1, then
C + 1, then repeat until stopped.
You can play around with the order to suit your needs.
03-23-2010 08:15 AM
YMC wrote:Hi Mike,
C follow by B then A. This sequence will then loop in the 'for' loop accordingly to the loop count.
best,
MC
But your sketch shows A, then B, then C.
Why do you need them to be executed in a particular order? Nothing about the 3 values are dependent on each other. What else are you doing with these values besides incrementing them N times in the For Loop?
03-23-2010 08:19 AM
Hi Mike and Lucither,
thanks for your help! I am able to carry on with my vi!
thanks again!
cheers,
MC
03-23-2010 08:22 AM
The last vi i posted wouldnt of worked well, here is a better version.
03-23-2010 08:36 AM - edited 03-23-2010 08:37 AM
How does that in any way look like the sketch drawn in message 5?
All of the proposed solutions show the shift register being used with the extra history terminals. The sketch does not indicate that at all, and just shows 3 independent variables.
This is what the sketch shows.

And if this isn't what the OP wants, then he needs to adequately describe his problem.
03-23-2010 08:40 AM - edited 03-23-2010 08:43 AM
He does not want them incrementing at the same time. He wants one to increment only per iteration, thats why the history terminals are added. So they go in order, A then B then C then loop forever.
He also changed what he wanted from sketch 5 later on. he wants the last one to - 1 not + 1.
03-25-2010 08:59 AM
hi Guys,
Any way to set a delay btw each addition/subtraction ?
best.
mc
03-25-2010 09:01 AM
Hi YMC,
yes it's possible. You can use a state mashine. Create a case for every addition of one variable and min. one case for the delay case. Initialize your state mashine with the first case and jump then from case to case as needed.
Mike