| Data Acquisition Toolbox | ![]() |
Specify whether the valid sample rates snap to a small set of standard values, or if you can set the sample rate to any value within the allowed bounds
Description
StandardSampleRates can be On of Off. If StandardSampleRates is Off, then it is possible to set the sample rate to any value within the bounds supported by the hardware. For most sound cards, the lower bound is 8.000 kHz, while the upper bound is 44.1 kHz. For newer sound cards, an upper bound of 96.0 kHz might be supported. The specified sample rate is rounded up to the next integer value.
If StandardSampleRates is On, then the available sample rates snap to a small set of standard values. The standard values are 8.000 kHz, 11.025 kHz, 22.050 kHz, and 44.100 kHz. If you specify a sampling rate that is within one percent of a standard value, then the sampling rate snaps to that standard value. If you specify a sampling rate that is not within one percent of a standard value, then the sampling rate rounds up to the closest standard value.
Regardless of the StandardSampleRates value, if you specify a sampling rate that is outside the allowed limits, then an error is returned.
Characteristics
| Vendor |
Sound cards |
| Usage |
AI, AO, Common |
| Access |
Read/write |
| Data type |
String |
| Read-only when running |
Yes |
Values
| Span | StopTriggerChannel | ![]() |