LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Hardware timing

Hi,

I have a PCIe-6321 installed. I need to control de time elapsed in a loop, but i need more precision that the function Timer(), i want to use the internal clock of the device but i dont know how to read it. I supose that is using some of the counter function but i dont know how exactly do it.

 

Regards,

 

Bruno

0 Kudos
Message 1 of 5
(3,272 Views)

 Hello Bruno1

 

why do you want meassure the elapsed time in a loop?

 

the problem is that if you use the device clock, you will meassure only the elapsed time since your acquisition start, not the total aplication elapsed time

0 Kudos
Message 2 of 5
(3,242 Views)

 Hello Bruno1

 

why do you want measure the elapsed time in a loop?

 

the problem is that if you use the device clock, you will measure only the elapsed time since your acquisition start, not the total application elapsed time

 

0 Kudos
Message 3 of 5
(3,241 Views)

I work in auditory/visual research, so i need that, for example, a red light appears in the screen in a certain time with respect to other thing, and also that appears for a certain amount of time. In the legacy DAQ drivers this is possible using the function CounterEventOrTimeConfig, and using CounterStart, CounterRead and CounterStop to start, read and stop counting the device clock.

0 Kudos
Message 4 of 5
(3,235 Views)

GetTickCount();

by using this youcan find elapsedtime

elapsed time=strttickcount-endtickcount

0 Kudos
Message 5 of 5
(3,117 Views)