Hi Andy,
The clock() function returns the amount of processor time your program
has used, not the elapsed time. If you want elapsed time, use Timer().
Hope this helps,
Reed.
andy elliott wrote in message <3989e176@newsgroups.ni.com>...
>
>I'm trying to trigger digital outputs on a DIO-16 using a straightforward
>loop and using the clock() func to synchronise timings. However the return
>values from clock don't seem to behave as I would expect, hence I never get
>to set the output bits. Any clues as to why ?