read function in DAQ is hidden by a built in function
이전 댓글 표시
I want to run read in DAQ toobox but get an error message:
Incorrect number of types of input or output for function 'read'.
When I type "help read" I get:
read - read one or more video frames
when I run "which read"
read is a built in method
So the daq read function is shadowed by something else how can I get rid of the shadowing so that I can use read from DAQ toolbox?
댓글 수: 6
Steven Lord
2024년 1월 30일
Can you show us a short code segment that shows how you're trying to call the read function (including how you create the variables or variables that you pass into read)?
Walter Roberson
2024년 1월 31일
You should use
which read(DAQ)
where DAQ is the data acquisition device that was opened.
Lars Eriksson
2024년 1월 31일
Walter Roberson
2024년 1월 31일
As an experiment, try
[out, mytime] = read(s);
Hmmmm... or perhaps try
s = daq("ni");
instead of
s=daq.createSession('NI');
Lars Eriksson
2024년 2월 1일
Walter Roberson
2024년 2월 1일
s = daq("ni");
potentially creates a different kind of object.
I agree that read(s) does not permit you to specify the number of scans. The point is to test whether read(s) will give the error about incorrect number of parameters.
답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Data Acquisition Toolbox Supported Hardware에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!