LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

problems with clock() func & triggering

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 ?
0 Kudos
Message 1 of 2
(2,974 Views)
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 ?
0 Kudos
Message 2 of 2
(2,974 Views)