Why do I receive the error "MCC: Background operation already in progress" from the Data Acquisition Toolbox with a Measurement Computing USB-1208LS/FS, USB-1408FS, or Minilab 1008?
3 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
MathWorks Support Team
il 22 Gen 2010
Modificato: MathWorks Support Team
il 23 Dic 2023
When I run the following MATLAB code (assuming that the USB-1208LS is device 2) I receive the error:
ai = analoginput('mcc',2);
addchannel(ai,0);
dio=digitalio('mcc',2);
addline(dio,0,'out');
start(ai);putvalue(dio,0);
ERROR: MCC: Background operation already in progress
The same error also occurs with a USB-1208FS if I start both analog input and analog output objects at the same time.
Risposta accettata
MathWorks Support Team
il 23 Dic 2023
Modificato: MathWorks Support Team
il 23 Dic 2023
This is a limitation of the Measurement Computing device. This limitation affects a number of MCC devices including:
USB-1208LS (formerly PMD-1208LS)
USB-1208FS (formerly PMD-1208FS)
USB-1408FS
Minilab 1008
These devices have limited or no support for concurrent operations. This means that after an analog input or output object has been started, you will not be able to perform other analog or digital I/O operations.
This limitation also applies to the Analog Input and Analog Output blocks in Simulink. This means that with these boards, you can not have 2 types of blocks for the same board in a Simulink model when using these boards. For example you could not have an Analog Input and Analog Output block or an Analog Input block and a Digital Input block.
As a workaround, you may use a different acquisition device or to use 2 devices (for example, one to acquire analog data, and one to set/get digital I/O).
Devices other than the ones listed above may also not support concurrent operations. For details on your device, you should review MCC's Universal Library User's guide available here:
0 Commenti
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Data Acquisition Toolbox Supported Hardware in Help Center e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!