12-16-2005 12:48 PM
12-16-2005 01:06 PM
12-16-2005 01:19 PM - edited 12-16-2005 01:19 PM
Message Edited by altenbach on 12-16-2005 11:20 AM
12-16-2005 01:22 PM
12-16-2005 01:29 PM
@DanNatCorning wrote:
So if the operator sets the front panel controls for a 2 minute duration and a one second interval, the FOR loop will execute 121 times ((2 x 60)+1) to provide 2 minutes' worth of saved data, once the "save" button on the front panel is pressed.
THe acquisition rate is entirely controlled inside the while loop. Placing a delay inside the FOR loop does not do anything except delaying the samve operation. The data is already in an array and does not have any time information. If you want a determined amount of history data, you only need to control the iteration count.
You just need to generate the correct timestamp as first element, this can be done mathematically.
12-16-2005 01:43 PM