From d643fbef6a29474d1830dff05de27ef6e22397f1 Mon Sep 17 00:00:00 2001 From: Douglas Clowes Date: Mon, 9 Oct 2006 12:22:28 +1000 Subject: [PATCH] ignore periodicity if not given r1122 | dcl | 2006-10-09 12:22:28 +1000 (Mon, 09 Oct 2006) | 2 lines --- site_ansto/hardsup/Monitor/Pulser.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/site_ansto/hardsup/Monitor/Pulser.c b/site_ansto/hardsup/Monitor/Pulser.c index c465353b..bcd92ef3 100644 --- a/site_ansto/hardsup/Monitor/Pulser.c +++ b/site_ansto/hardsup/Monitor/Pulser.c @@ -162,7 +162,10 @@ int main(int argc, char* argv[]) /*********************************************/ DAQmxErrChk (DAQmxStartTask(taskHandle)); - sleep(sleep_time); + do { + sleep(sleep_time); + } while (range == 0); + DAQmxStopTask(taskHandle); DAQmxClearTask(taskHandle); taskHandle = 0;