| Data Acquisition Toolbox | Search  Help Desk |
Setting the Sampling Rate
The sampling rate is given by theSampleRate property and is defined as the number of samples output per second for each hardware channel. The maximum rate that channels can be sampled at depends on the specific hardware you are using and is discussed on page 4-17.
If you are using simultaneous sample and hold (SSH) hardware such as a sound card, then the maximum sampling rate for each channel is given by the maximum board rate. For example, suppose you create the analog output object AO for a sound card, configure it for stereo operation, and set the sampling rate to 44,100 Hz.
AO = analogoutput('winsound');
addchannel(AO, 1:2);
set(AO, 'SampleRate', 44100);
Both channels are sampled at 44,100 Hz.
Note: