addchannel missing or incorrect argument
4 次查看(过去 30 天)
显示 更早的评论
In not sure when this ni daq code was written because when I search some of the functions used like addchannel() almost no examples show up. Is this from an older version of matlab or from a no longer supported package.
here is the code:
addchannel(handles.AI, 0:total_chans-1, 1:total_chans); % (obj,hwch,index)
0 个评论
回答(1 个)
Sindhu Karri
2021-7-16
Hii,
addchannel function is from older versions of MATLAB and is no longer supported .Instead you can use addinput function to add the channel and returns a channel object.
Refer to below information for more info
Transition Your Code to Session-Based Interface - MATLAB & Simulink (mathworks.com) - modify older coder to match with latest relase.
Hope this helps!
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Acquisition Using Image Acquisition Explorer 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!