For Programmers: Free Programming Magazines  


Home > Archive > Matlab > January 2008 > BitsPerSample cannot be 24









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author BitsPerSample cannot be 24
Bethany

2008-01-28, 8:19 pm

I am using the data acquisition toolbox (v. 2.11) with
R2007b+ and the winsound adaptor. I need 24 bits per
sample, but when I set 'BitsPerSample' on my
analogoutput/input objects to anything over 16, I get the
following error on the "start" command:
[color=darkred]
??? Windows Multimedia: The specified format is not
supported or cannot be
translated. Use the Capabilities function to determine the
supported formats.

This error goes away if I manually set the 'BitsPerSample'
back to 16 or 8. I haven't been able to learn what
the "Capabilities function" is.

I confirmed with the daqhwinfo(ao) command that 'bits' had
changed to 32 and the 'NativeDataType' had changed from
int16 to int32, so the "set" command seems to have been
successful, but the object won't run. Any help or
explanation would be helpful.

Thanks in advance!




Sherryl Radbil

2008-01-30, 8:20 pm

Hello Bethany,

Please contact tech support with this issue at
http://www.mathworks.com/support/contact_us/index.html

There are some winsound limitations listed at
http://www.mathworks.com/access/hel...q/f5-54943.html

All the best,
Sherryl
Bethany

2008-01-30, 11:14 pm

Thanks, Sherryl. I read the winsound info, but my issue
seems to be independent of the sampling rate. I took your
advice and opened a tech support case, and if the answer
turns out to be broadly relevant, I'll update this thread
when it's resolved.
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com