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!