DAQSDK error with MCC Daq device

조회 수: 20 (최근 30일)
michael
michael 2025년 9월 12일
편집: Spoorthy Kannur 2025년 10월 14일 9:49
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;

답변 (1개)

Spoorthy Kannur
Spoorthy Kannur 2025년 10월 14일 9:49
편집: Spoorthy Kannur 2025년 10월 14일 9:49
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:
  1. 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?
  2. Do make sure that you have the Data Acquisition Toolbox and Support Package for Measurement Computing Hardware installed and up to date.
  3. In your code, you use 'Board0', does this match the board ID assigned by InstaCal? Sometimes the board might be named something else.
  4. Make sure no other application is accessing the device while MATLAB is running.
  5. 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

카테고리

Help CenterFile Exchange에서 Hardware Discovery and Setup에 대해 자세히 알아보기

제품


릴리스

R2025a

Community Treasure Hunt

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

Start Hunting!

Translated by