read function in DAQ is hidden by a built in function
Ältere Kommentare anzeigen
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 Kommentare
Steven Lord
am 30 Jan. 2024
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
am 31 Jan. 2024
You should use
which read(DAQ)
where DAQ is the data acquisition device that was opened.
Lars Eriksson
am 31 Jan. 2024
Walter Roberson
am 31 Jan. 2024
As an experiment, try
[out, mytime] = read(s);
Hmmmm... or perhaps try
s = daq("ni");
instead of
s=daq.createSession('NI');
Lars Eriksson
am 1 Feb. 2024
Walter Roberson
am 1 Feb. 2024
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.
Antworten (0)
Kategorien
Mehr zu Data Acquisition Toolbox Supported Hardware finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!