11-13-2015 12:55 AM
Hi All,
Now I have a problem I wanna solve. Inside a while loop I have two (2) flat sequence structures. It is apparent that if I have different values for X any Y, they will arrive at the destination after different times. Is there a way I can make X and Y get to the final destination at the same time say after 5 seconds if they have different values? Any suggestion or clues will be highly appreciated. Attached is my simple Vi
Kind Regards,
Opuk
11-13-2015 03:36 AM - edited 11-13-2015 03:37 AM
the data flow paradigm means, that your hardware-write will wait until both inputs have arrived,
so there really is no need to have the flat-sequence structures for this,
i use them to only check the STOP var at the end (which might be useful for long-execution-loops)
11-13-2015 07:02 AM
Opuk wrote: It is apparent that if I have different values for X any Y, they will arrive at the destination after different times. Is there a way I can make X and Y get to the final destination at the same time say after 5 seconds if they have different values?
What exactly do you mean by "destination"? The final value of the output?
You could do the math to see how large of steps you need in order to reach your destination in N steps. Store that value in a shift register and keep stepping by that value until you reach your final value.