MATLAB: Do I receive a Visual C++ runtime error when I try to output a signal through the NI PCI 6221 board at a high sampling rate using the Data Acquisition Toolbox

Data Acquisition Toolboxnidaq

When I try to output a signal at a high sampling rate using the Data Acquisition Toolbox to my National Instruments PCI 6221 board, I receive the following error:
microsoft visual C++:
matlab.exe has caused a runtime error
I do not receive the error when I use a lower sampling rate.

Best Answer

There is an issue with memory underflow from the National Instruments PCI 6221 board at high sampling rates. This is a hardware dependent issue which can be determined by running the board at the desired sampling rate using the software provided by the board manufacturer.
To work around this issue, you must select a board that can handle high sampling rates.