DAQSDK error with MCC Daq device
Mostrar comentarios más antiguos
Hello, I recently purchased a MCC USB-1608G to run in matlab and I cant get the start or startForeground or read functions to work, they all produce the same error.Matlab does recognize the device.
I have Matlab 2025a, toolboxes:Data Aqusition,MCC support(Data Acquisition Toolbox Support Package for Measurement Computing Hardware).
error:
Warning: DAQSDK Warning: Ignored call to method 'stop' in state 'ReadyState'.
> In matlabshared.asyncio.internal/Channel/execute (line 414)
In daq.sdk.internal/ChannelGroup/stopChannel (line 452)
In daq.sdk.internal/ChannelGroup/doStop (line 301)
In daq.sdk.internal/ChannelGroupStateRunning/stop (line 30)
In daq.sdk.internal/ChannelGroup/stop (line 158)
In daq.sdk.internal/ChannelManager/stopChannelGroup (line 438)
In daq.sdk.internal/ChannelManager/stop (line 235)
In daq.sdk/Session/stopImpl (line 512)
In daq/Session/doStartForeground (line 2716)
In daq.internal/StateReadyToStart/startForeground (line 125)
In daq/Session/startForeground (line 1772)
In daq.interfaces/DataAcquisition/doForegroundOperation (line 2228)
In daq.interfaces.internal/DaqStateInputChannelsOnly/read (line 91)
In daq.interfaces.internal/DaqStateProxy/read (line 55)
In daq.interfaces/DataAcquisition/read (line 666)
In Daqfunc (line 21)
Error using Daqfunc (line 21)
Timeout expired before operation could complete.
Just frusterating, because I just got it and costed 500$ and right out the gate I have issues......
Basic setup and run code:
devices = daqlist;
disp(devices);
d = daq('mcc');
%Add channel
d.addinput('Board0', 0, 'Voltage'); % Example for channel 0
% Configure channels for single-ended mode in future
% for i = 1:length(0)
% ch(i).TerminalConfig = 'SingleEnded';
% ch(i).Range = [-10, 10]; % Example: -10V to 10V range
% end
%Set rate,duration
d.Rate = 1000; % Sampling rate in Hz
duration = 5; % Duration in seconds
% **Acquire Data**
[data, timestamps] = read(d, seconds(duration));
% **Plot the Acquired Data**
figure;
plot(timestamps, data);
xlabel("Time (s)");
ylabel("Voltage (V)");
title("Acquired Data");
grid on;
Respuestas (1)
Spoorthy Kannur
el 14 de Oct. de 2025
Editada: Spoorthy Kannur
el 14 de Oct. de 2025
0 votos
Hi Michael,
I get how frustrating it can be to face such an issue right after purchasing new hardware!
Here are a few troubleshooting steps to help identify the problem:
- You mentioned that daqlist recognizes the device, if you haven’t already – please install the latest version of InstaCal and confirm that the USB-1608G is detected and configured correctly there?
- Do make sure that you have the Data Acquisition Toolbox and Support Package for Measurement Computing Hardware installed and up to date.
- In your code, you use 'Board0', does this match the board ID assigned by InstaCal? Sometimes the board might be named something else.
- Make sure no other application is accessing the device while MATLAB is running.
- If possible, try with MATLAB 2024b or 2024a for comparison.
If you continue to experience issues, share the following:
- The output of daqlist
- The output of ver
- The exact error message (copy-paste the full message)
- Screenshot of InstaCal showing your device
Categorías
Más información sobre Hardware Discovery and Setup en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!