05-21-2016 09:26 AM
Hi,
I am quite new to LabVIEW and this is my first post. I have attached the screen shot of my VI as well as the VI. What I want to do is, run the While Loop 1, which has a time delay of 6 second between each iteration and then, I want each iteration of While Loop 2 (which runs the For Loop 2 inside it for 3 iterations) to start 3 seconds after each iteration of While Loop 1 starts. Can someone tell me how I can do that? Thanks in advance. Please let me know if my question is unclear.
Tanveer
05-21-2016 10:27 AM
For example you can use notifier
Notifier can be any type but good idea send number of iteration
05-21-2016 10:30 AM
1. If they are dependent on each other (time wise), why not have them in the same loop?
2. You might benefit from learning the State Machine architecture.
05-21-2016 10:31 AM
Hi mdts,
Sounds like you'd be best off using one while loop with 2 for loops inside it? Alternativly you can use a Producer Consumer Design. Your producer loop will run at a rate of 6 seconds and then the consumer loop will wait until the other loop has completed before it starts. Using the wait functions should get you what you want.
http://www.ni.com/white-paper/3023/en/
Thanks
Dan CLD