Have any of the functions from the toolbox worked at all or is it only this particular task that is not working? You also mentioned that the same board has been used with LabVIEW, was this on the same computer? I am wondering if the toolbox is correctly associated with the DAQmx driver?
Take a look at
this other forum post, where customers have successfully used the toolbox with M series devices. Please make sure that the correct DLLs are loaded into the environment.
Start by loading the NI dll:
funclist = loadlibrary('nicaiu.dll','nidaqmx.h','alias','myni')
(You can choose any alias as long as it is a legal variable name.)Also, what is the version of Matlab that you are using?
Regards,
Raajit L
National Instruments