From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

How to programatically get an array of availble clock sources for a device

Does anybody know how to get an array/list of all available clock sources programatically in C/C++.  I know in LabView if you drop the control on the front panel it is already populated with the available sources.

 

For instance to get the available channels in C you would call DAQmxGetDevAIPhysicalChans.  Is there a similar function or any other way of doing the same with Clock sources.

 

Thanks

0 Kudos
Message 1 of 4
(2,901 Views)

Hello wewe,

 

I am unable to find a function that can accomplish this at this moment.

 

Here are some examples and information that I can find on configuring clock sources, maybe they can give you some clues

 

Check out the "Configure the Timing Parameters" section of this white paper:

http://www.ni.com/white-paper/5409/en

 

NI-DAQmx timing section of this doc:

http://www.ni.com/white-paper/2835/en#toc5

 

Thanks,

Joel C

National Instruments

0 Kudos
Message 2 of 4
(2,884 Views)

Thanks for the info Joel.

 

Have you found anything yet.

 

Thanks

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

Hello wewe,

 

I have been unable to find such a function. This might be the best you can get:http://zone.ni.com/reference/en-XX/help/370471W-01/mxcprop/attr2996/

 

Maybe this is one of those things LabVIEW excels at.

 

Thanks,

Joel C

National Instruments

0 Kudos
Message 4 of 4
(2,847 Views)