Why do I receive the error "MCC: Background operation already in progress" from the DAQ Toolbox with an MCC USB-1208FS-PLUS?

MCC confirmed to me that the usb-1208fs-plus model allows for concurrent AO/AI/DIO, so the background operation error should only occur, for example, if I try to start a new AO while one is already running. However, even if I explicitly call, stop(AO), before calling, start(AO), I still get this error. The only way to solve it is to restart Matlab.
In my application, I have a loop of stop(AO), putdata(AO,x), and start(AO) commands. The error is nearly guaranteed to occur at some point during the loop, but it seems random: it could be, for example, during the first iteration, the 83rd, or the 1001th.
I'm running 2014b. I assume this is a bug in the Matlab mcc driver. Can someone help me solve this? Also, why does restarting Matlab fix the problem?
Thanks!

Categories

Asked:

on 21 Dec 2015

Edited:

on 15 Mar 2018

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!