MATLAB Answers

Write 24-bit binary

13 views (last 30 days)
Hi, I wonder if it is possible to write a binary file (ie: fwrite) with 24-bit precision in Matlab (2010b)? I use Matlab for generating a waveform which is later being read by Labview and presented through a NI 24-bit DAC (NI PCI-4461) with 200 kHz.
Thanks a lot for your support,
Pribislav

  0 Comments

Sign in to comment.

Accepted Answer

Walter Roberson
Walter Roberson on 2 Jul 2012
Have you tried using a specification of bit24 for the precision in fwrite() ?

  1 Comment

Pribislav
Pribislav on 2 Jul 2012
Ah,merci, obviously I didn't read the help for "fwrite" properly. "bitn" for precision is the solution. Problem solved - thanks a lot
Pribislav

Sign in to comment.

More Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!