ni daq InputRange
显示 更早的评论
when I do : out = daqhwinfo(ai); >> out.InputRanges
ans =
-20.0000 20.0000
-10.0000 10.0000
-5.0000 5.0000
-4.0000 4.0000
-2.5000 2.5000
-2.0000 2.0000
-1.2500 1.2500
-1.0000 1.0000
It means my hardware has several InputRanges, but when I try to change it I have this error:
set(ai.Channel(1),'InputRange',[-2 2])
Warning: This hardware could not support the requested values [-2.000000
2.000000] for InputRange. InputRange has been set to [-10.000000
10.000000].
Somebody has a good answer to resolve this problem?
wilson
回答(1 个)
Walter Roberson
2011-8-11
I suggest trying
set(ai.Channel(1),'InputRange', out(6).InputRanges)
I am working here on the basic hypothesis that the 2.0000 and -2.0000 that you see in the display might be display-rounded values of the actual ranges returned; the above code should pass back the actual range returned.
类别
在 帮助中心 和 File Exchange 中查找有关 National Instruments Frame Grabbers 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!