LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

legacy function CounterEventOrTimeConfig in DAQmx

Hi,

 

I have a program written in the older DAQ drivers (legacy) and i'm converting this program to use with DAQmx drivers. In the program i use the function CounterEventOrTimeConfig to count time using the internal clock (100.000Hz),  and i use the CounterStart to begin, CounterRead to read the time, and CounterStop to stop the time. How i can make the same in the new DAQmx?. I'm not native English so correct me please if a make a mistake with the words. 

 

Regards,

 

Bruno

0 Kudos
Message 1 of 3
(4,718 Views)

Hello Bruno,

 

Here you will find the documentation about all new NI-DAQmx functions for text based programming:

 

"Using NI-DAQmx in Text Based Programming Environments"
https://www.ni.com/en/support/documentation/supplemental/21/using-ni-daqmx-in-text-based-programming...

 

"NI-DAQmx C Reference Help"
https://www.ni.com/docs/en-US/bundle/ni-daqmx-c-api-ref/page/cdaqmx/help_file_title.html

 

 

Regards!

 

 

Daniel.

0 Kudos
Message 2 of 3
(4,698 Views)

Thanks for the response. I only want to know if there is any form to measure time intervals with more precision that the Timer() function. In the older DAQ drivers i use the CounterEventOrTimeConfig to measure time using the internal clock of the device, but i don't know how to make the same with DAQmx. Can i use the GetCurrentCVIAbsoluteTime function? The Labwindows/CVI help say that it has a resolution of 2^(-64) seconds, but i don't know how it works. It use the internal clock?? 

 

regards,

 

Bruno

0 Kudos
Message 3 of 3
(4,669 Views)