Does MATLAB support above 96000Hz sampling frequencies of winsound?
이전 댓글 표시
Why MATLAB 2012a (7.14.0.739) does not support 192000Hz and maybe higher sampling frequency of the winsound while my PCs have this sampling frequency? Is there a solution for this? I make 2 analog output channels and then propinfo(ao,'SampleRate') only shows me [5000 96000] and I receive an error trying to set it to 192000. I have this problem with two laptops, one is running windows XP SP3 32bit and the windows 7 32bit, both with same version of MATLAB. I want to get a sound card with even higher sampling frequencies, so I also need to know if those frequencies (above 96000) are supported by MATLAB? Thanks
ao=analogoutput('winsound');
addchannel(ao,1:2);
propinfo(ao,'SampleRate')
setverify(ao,'SampleRate',96000);
setverify(ao,'RepeatOutput',0)
t=0:0.001:10;
f=500;
T=1/f;
x=sin(2*pi*f*(0:T/80:10000*T));
y=cos(2*pi*f*(0:T/80:10000*T));
putdata(ao,[x',y'])
start(ao)
propinfo(ao,'SampleRate') only shows frin [5000,96000] no sign of 192000! And I can not set 'SampleRate' to 192000 either. Why?
댓글 수: 3
Jan
2014년 3월 9일
Please show us, what "I make 2 analog output channels" mean in terms of Matlab code.
Jan
2014년 3월 10일
Please post the error message you receive.
Walter Roberson
2014년 3월 11일
There are different possible messages for attempting to set an unsupported value, and the details of the messages can give clues about the solution. Please post the exact error message.
Also, keep in mind that people will not generally have the exact same hardware as you have available to them to run your program to see exactly what it gives. Furthermore, some of the volunteers have some hardware experience but do not have access to the toolbox you are using, and so might be able to recognize the condition given the message while not being able to test the code themselves.
채택된 답변
추가 답변 (1개)
Jan
2014년 3월 9일
0 개 추천
Did you search in the net or in this forum already? Does this help: http://www.mathworks.com/matlabcentral/answers/1352 ?
카테고리
도움말 센터 및 File Exchange에서 Simulation, Tuning, and Visualization에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!