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
(3,378 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:

https://www.ni.com/en/support/documentation/supplemental/21/using-ni-daqmx-in-text-based-programming...

 

NI-DAQmx timing section of this doc:

https://www.ni.com/en/support/documentation/supplemental/06/learn-10-functions-in-ni-daqmx-and-handl...

 

Thanks,

Joel C

National Instruments

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

Thanks for the info Joel.

 

Have you found anything yet.

 

Thanks

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

Hello wewe,

 

I have been unable to find such a function. This might be the best you can get:https://www.ni.com/docs/en-US/bundle/ni-daqmx-c-api-ref/page/mxcprop/attr2996.html

 

Maybe this is one of those things LabVIEW excels at.

 

Thanks,

Joel C

National Instruments

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