LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

While Loop with Delay

I am working on a program that needs to record data for a given time, undergo a delay, and then record data after the given delay time again. I have the delay working with a loop within the main loop, but it only records one set of data, i.e. 1 value for each channel, before delaying and continuing the same process. Any comments or suggestions as to the best way to achieve the goal or alleviate the problem?
0 Kudos
Message 1 of 5
(2,917 Views)
Checkout this code. It will run for a period of time specified in the sample period length, pause for the period of time specified in the delay between sample periods, and repeat the process until you stop it...

Mike...

Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 2 of 5
(2,917 Views)
can you provide an example?

Beth_K wrote in message
news:506500000008000000923D0000-1012609683000@exchange.ni.com...
> I am working on a program that needs to record data for a given time,
> undergo a delay, and then record data after the given delay time
> again. I have the delay working with a loop within the main loop, but
> it only records one set of data, i.e. 1 value for each channel, before
> delaying and continuing the same process. Any comments or suggestions
> as to the best way to achieve the goal or alleviate the problem?
0 Kudos
Message 3 of 5
(2,917 Views)
Sequence structure? Record data in the first frame, delay in frame two,
record some more in frame three.

In article <506500000008000000923D0000-1012609683000@exchange.ni.com>, Beth_K wrote:

> I am working on a program that needs to record data for a given time,
> undergo a delay, and then record data after the given delay time
> again. I have the delay working with a loop within the main loop, but
> it only records one set of data, i.e. 1 value for each channel, before
> delaying and continuing the same process. Any comments or suggestions
> as to the best way to achieve the goal or alleviate the problem?
0 Kudos
Message 4 of 5
(2,917 Views)
The coding and instrument set up will be very different depending of your hardware.(gpib,daq,sxci etc..) It would be helpful to see your program.

guindon_jp@hotmail.com
0 Kudos
Message 5 of 5
(2,917 Views)