built-in getdata function in imaqdevice is broken

5 ビュー (過去 30 日間)
gujax
gujax 2024 年 10 月 7 日
コメント済み: Stephen23 2024 年 10 月 7 日
I am getting this error on running the following:
start(v);%v is a gige/gentl object
[recording1, time, metadata] = getdata(v, numFrames);%4D image
Operands to the logical AND (&&) and OR (||) operators must be convertible to logical scalar values. Use the ANY or ALL functions to reduce operands to logical scalar values.
its pointing to getdata whose source code I am not allowed to change because it is a Matlab inbuilt function.
No issues when I just do
recording1 = getdata(v, numFrames);%4D image
Please help

採用された回答

gujax
gujax 2024 年 10 月 7 日
Here is the answer:
Change to the following (i.e., replace && by & below):
if ~isChunkModeActive && ~any(startsWith(fieldnames(meta), "Chunk"))
return
end
Because I am unable to make this change in Matlab due to permission issues, I just generated a copy script in my local folder. And it worked
  2 件のコメント
gujax
gujax 2024 年 10 月 7 日
Ideally this script should be fixed by Matlab. It is their built-in function.
Stephen23
Stephen23 2024 年 10 月 7 日
"Ideally this script should be fixed by Matlab."

サインインしてコメントする。

その他の回答 (0 件)

製品


リリース

R2024a

Community Treasure Hunt

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

Start Hunting!

Translated by