MATLAB: Am I unable to set the SampleRate or use the START command with the NI-PCI6703 card in Data Acquisition Toolbox 2.5 (R14)

Data Acquisition Toolboxnipci6703start

When I try to use simple Data Acquisition Toolbox commands, I receive error messages.
For example, when I try to use:
ao = analogoutput('nidaq',1);
ch = addchannel(ao,0:1);
set(ao,'SampleRate',1000);
I receive the error:
??? Error using ==> daqdevice.set
Unable to set SampleRate above maximum value of 0.
Also, when I use the commands:
data = linspace(0,1,10000)';
Putdata(ao,[data data])
start(ao)
I receive the error:
??? Error using ==> daqdevice.start
NI-DAQ: The specified device does not support the requested action (the
driver
recognizes the device, but the action is inappropriate for the device).

Best Answer

The ability to use the START command or set the SampleRate property is not available with the NI-PCI6703, because this board does not have an on-board clock.
To work around this, you need to use the PUTSAMPLE command to send one sample of data to the board.
If you would like to continuously send the data to the board, you can create a TIMER object and put the PUTSAMPLE command in the TIMER callback function. Alternatively, you can call PUTSAMPLE in a loop. However, the timing of the loop is not as precise as in the TIMER object.