05-23-2017 04:35 AM
HI ,
I am running 6 parallel while loops for generating 6 digital Wave form. I need to give a 15 seconds delay in between these 6 while loops. Could please any one help me in creating the delay?
Regards
Sagar S
Solved! Go to Solution.
05-23-2017 04:52 AM
Hello,
do you mean that the 6 loops should be running the one after the other but 15 seconds delayed?
Like in a sequence?
Greetings and Regards,
James
05-23-2017 04:58 AM
Not in a sequence.
Scenario is when vi runs 1st wave form will generate and after 15 seconds 2nd will generate and after 15 seconds 3rd will generate etc for 6 waveform.
All 6 has to run parallel.
05-23-2017 05:09 AM
your problem description reads like you only need one loop,
that produces all 6 waveforms consequitively, while waiting for 15s after eacht "iteration" is completed.
so far nothing from your description needs parallelism.
regards
05-23-2017 05:15 AM
Hi,
Thank you for the reply. I tried in one loop but wave form generation is not happening and also i was unable to give the time delay. Could u please help me with any idea?
Regards
05-23-2017 05:18 AM
something like this comes to mind
what you need to take care of is how you want to display your waveforms,
if you want it in (6) seperate graphs, then you must have a case structure,
which is selected by the iteration counter (i) for example
05-23-2017 05:24 AM
what you also could do is just to have a data-flow-connection between each while-loop, that has the "wait-miliseconds" in between, like so:
05-23-2017 05:26 AM
I need 6 different waveforms
05-23-2017 05:28 AM - edited 05-23-2017 05:28 AM
with the picture from your first post,
the waveform generation doesnt seem to depend on previous waveform,
therefor you could just have the values for generation before the loop in something like an array and index with the iteration counter (i)
05-23-2017 05:30 AM
Reading your second problem description it looks like a sequence structure could do what you need.
Jwscs gave you an example already.
And if you want the waves to be generated continuously, you could use a while loop
This was my first idea, an example for 2 wave forms...
but still you can improve it..