ni daq InputRange
Show older comments
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
Answers (1)
Walter Roberson
on 11 Aug 2011
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.
Categories
Find more on National Instruments Frame Grabbers in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!