06-23-2017 03:53 PM
How do you find the maximum AO rate for multiple channels programmatically? I have two AO channels in a task, request the Maximum AO Rate from a timing property node, and it returns the max for a single channel. Specifically, for a PCIe 6351, the specs are 2.86MS/s for 1 channel and 2.00 MS/s for 2 channels. The max rate property node returns 2.86MS/s.
If it is not available directly, is there a way to calculate it for any board.
06-24-2017 01:53 AM
Although you probably already know this, you can use the Task Property Node to get a number of channels, and use that with a select node if you have a look-up table of pairs of values for each board you're using. However, if some tasks might have inputs from different boards, that also becomes more tricky.
I don't know of a general way, and as you already found (copied from the help file):
Sample Clock:Maximum Rate Property
Indicates the maximum Sample Clock rate supported by the task, based on other timing settings. For output tasks, the maximum Sample Clock rate is the maximum rate of the DAC. For input tasks, NI-DAQmx calculates the maximum sampling rate differently for multiplexed devices than simultaneous sampling devices.